diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c b/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c index 60d96419a1..5f1b59a546 100644 --- a/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c +++ b/c/src/lib/libbsp/powerpc/mvme5500/pci/pcifinddevice.c @@ -1,13 +1,13 @@ /* pcifinddevice.c * - * Copyright 2001, Till Straumann <strauman@slac.stanford.edu> + * Copyright 2001, Till Straumann <strauman@slac.stanford.edu> * * find a particular PCI device * (we assume, the firmware configured the PCI bus[es] for us) * - * + * * Kate Feng <feng1@bnl.gov>, modified it to support the mvme5500 board. - * + * */ #define PCI_INVALID_VENDORDEVICEID 0xffffffff @@ -30,7 +30,7 @@ int BSP_pciFindDevicePrint(unsigned short vendorid, unsigned short deviceid, BSP_pciDebug = 0; return 0; -} +} int pci_find_device( unsigned short vendorid, unsigned short deviceid, int instance, int *pbus, int *pdev, int *pfun ) @@ -44,7 +44,7 @@ int pci_find_device( unsigned short vendorid, unsigned short deviceid, pci_read_config_byte(bus, dev, 0, PCI_HEADER_TYPE, &hd); hd = (hd & PCI_MULTI_FUNCTION ? PCI_MAX_FUNCTIONS : 1); for (fun=0; fun<hd; fun++) { - /* + /* * The last devfn id/slot is special; must skip it */ if (PCI_MAX_DEVICES-1==dev && PCI_MAX_FUNCTIONS-1 == fun) @@ -54,8 +54,8 @@ int pci_find_device( unsigned short vendorid, unsigned short deviceid, continue; if (BSP_pciDebug) { printk("pci_find_device: found 0x%08x at %2d/%2d/%2d ",d,bus,dev,fun); - printk("(Physically: PCI%d %2d/%2d/%2d)\n", - (bus>= BSP_MAX_PCI_BUS_ON_PCI0)? 1:0, + printk("(Physically: PCI%d %2d/%2d/%2d)\n", + (bus>= BSP_MAX_PCI_BUS_ON_PCI0)? 1:0, (bus>= BSP_MAX_PCI_BUS_ON_PCI0)? bus-BSP_MAX_PCI_BUS_ON_PCI0:bus, dev, fun); } |