diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/shared/pci')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/pci/pci.c | 40 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/pci/pci.h | 2 |
2 files changed, 0 insertions, 42 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pci.c b/c/src/lib/libbsp/powerpc/shared/pci/pci.c index ba5a97d44d..b822100f3d 100644 --- a/c/src/lib/libbsp/powerpc/shared/pci/pci.c +++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.c @@ -216,22 +216,9 @@ const pci_config_access_functions pci_direct_functions = { direct_pci_write_config_dword }; - - - - - - - - - - - - #define PRINT_MSG() \ printk("pci : Device %d:%02x routed to interrupt_line %d\n", pbus, pslot, int_name ) - /* ** Validate a test interrupt name and print a warning if its not one of ** the names defined in the routing record. @@ -269,16 +256,11 @@ static int test_intname( return 0; } - - - - struct pcibridge { int bus,slot; }; - static int FindPCIbridge( int mybus, struct pcibridge *pb ) { int pbus, pslot; @@ -321,19 +303,11 @@ static int FindPCIbridge( int mybus, struct pcibridge *pb ) #endif } - } } return -1; } - - - - - - - void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) ) { unsigned char cvalue; @@ -406,7 +380,6 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) ) } } - if( !ismatch ) { /* @@ -444,7 +417,6 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) ) */ if( tbus ) int_pin = (*swizzler)(tslot,int_pin); - /* ** int_pin points to the interrupt channel ** this card ends up delivering interrupts @@ -476,7 +448,6 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) ) } } - if( !ismatch ) { struct pcibridge pb; @@ -511,27 +482,16 @@ void FixupPCI( const struct _int_map *bspmap, int (*swizzler)(int,int) ) } donesearch: - if( !ismatch && int_pin != 0 && int_name == 255 ) { printk("pci : Unable to match device %d:%d with an int routing table entry\n", pbus, pslot ); } - } } } } - - - - - - - - - /* * This routine determines the maximum bus number in the system */ diff --git a/c/src/lib/libbsp/powerpc/shared/pci/pci.h b/c/src/lib/libbsp/powerpc/shared/pci/pci.h index 4ce74f7307..3385dac78e 100644 --- a/c/src/lib/libbsp/powerpc/shared/pci/pci.h +++ b/c/src/lib/libbsp/powerpc/shared/pci/pci.h @@ -1153,7 +1153,6 @@ pci_write_config_dword(unsigned char bus, unsigned char slot, unsigned char func extern unsigned char BusCountPCI(); extern void InitializePCI(); - struct _pin_routes { int pin, int_name[4]; @@ -1166,7 +1165,6 @@ struct _int_map void FixupPCI( const struct _int_map *, int (*swizzler)(int,int) ); - /* scan for a specific device */ /* find a particular PCI device * (currently, only bus0 is scanned for device/fun0) |