Changeset 2045 for Whitix/trunk

Show
Ignore:
Timestamp:
04/03/09 19:05:52 (3 years ago)
Author:
mwhitworth
Message:

Remove unused ASCII description of classes, scan bridges.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/devices/pci/pci_core.c

    r2021 r2045  
    108108} 
    109109 
    110 static char* classes[]= 
    111 { 
    112         "Unclassified device", 
    113         "Mass storage controller", 
    114         "Network controller", 
    115         "Display controller", 
    116         "Multimedia controller", 
    117         "Memory controller", 
    118         "Bridge", 
    119         "Communication controller", 
    120         "Generic system peripheral", 
    121         "Input device controller", 
    122         "Docking station", 
    123         "Processor", 
    124         "Serial bus controller", 
    125         "Wireless controller", 
    126         "Intelligent controller", 
    127         "Satellite communications controller", 
    128         "Encryption controller", 
    129         "Signal processing controller", 
    130 }; 
    131  
    132110static int PciConvertResFlags(int flags) 
    133111{ 
     
    319297                if (device->headerType == 1) 
    320298                { 
    321                         DWORD bus; 
    322                          
    323                         PciReadConfigDword(device, PCI_PRIMARY_BUS, &bus); 
    324                                                                          
    325                         //PciScanBus(busNumber); 
     299                        DWORD busInfo, busNum; 
     300                         
     301                        PciReadConfigDword(device, PCI_PRIMARY_BUS, &busInfo); 
     302                         
     303                        busNum = (busInfo >> 8) & 0xFF; 
     304                         
     305                        PciScanBus(busNum); 
    326306                } 
    327307        } 
     
    438418int PciInit() 
    439419{ 
    440         struct Thread* thread; 
    441420        int type=PciCheckConfig();       
    442421