]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] janitor: convert to pci_name()
authorRandy Dunlap <rddunlap@osdl.org>
Fri, 1 Aug 2003 08:07:01 +0000 (01:07 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 1 Aug 2003 08:07:01 +0000 (01:07 -0700)
[ GregKH has already done this is USB and PCI core. ]

From: "Warren A. Layton" <zeevon@debian.org>

Based on a request from Matthew Wilcox, convert instances of
pci_dev->slot_name to use pci_name() instead:

  "In order to support PCI Domains, we have to stop using slot_name.
   It's related to driver model transition too since pci_dev->slot_name
   was redundant with pci_dev->dev.bus_id.  So I introduced the inline
   function pci_name().  Now there's about 300-400 places in the tree
   that're using slot_name which need to be converted to use pci_name().
   once that's done, we can remove the slot_name pointer in pci_dev and
   save a (void *) per pci_dev."

95 files changed:
arch/alpha/kernel/pci.c
arch/arm/common/sa1111-pcipool.c
arch/arm/kernel/bios32.c
arch/arm/mach-footbridge/netwinder-pci.c
arch/i386/pci/fixup.c
arch/i386/pci/i386.c
arch/i386/pci/irq.c
arch/i386/pci/numa.c
arch/ia64/pci/pci.c
arch/ia64/sn/io/machvec/pci.c
arch/mips/pci/common.c
arch/mips/pci/ops-ev64120.c
arch/mips/pci/ops-ocelot.c
arch/mips/pci/pci-cobalt.c
arch/mips/pci/pci-ip27.c
arch/mips/pci/pci-ocelot-c.c
arch/mips/pci/pci-ocelot-g.c
arch/parisc/kernel/pci.c
arch/ppc/kernel/pci.c
arch/ppc64/kernel/eeh.c
arch/ppc64/kernel/pSeries_pci.c
arch/ppc64/kernel/pci.c
arch/sh/boards/mpc1211/pci.c
arch/sh/boards/overdrive/galileo.c
arch/sh/kernel/cpu/sh4/pci-sh7751.c
arch/sh/kernel/cpu/sh4/pci-st40.c
arch/sh/kernel/pci.c
arch/sh/kernel/pcibios.c
arch/v850/kernel/rte_mb_a_pci.c
arch/x86_64/kernel/pci-gart.c
drivers/acpi/pci_irq.c
drivers/char/agp/generic.c
drivers/char/rocket.c
drivers/eisa/pci_eisa.c
drivers/ide/pci/amd74xx.c
drivers/ide/pci/via82cxxx.c
drivers/ide/setup-pci.c
drivers/input/gameport/cs461x.c
drivers/input/gameport/emu10k1-gp.c
drivers/input/gameport/fm801-gp.c
drivers/input/gameport/vortex.c
drivers/isdn/hisax/hisax_fcpcipnp.c
drivers/isdn/hisax/hisax_hfcpci.c
drivers/media/common/saa7146_video.c
drivers/media/video/bttv-driver.c
drivers/media/video/saa7134/saa7134-core.c
drivers/media/video/saa7134/saa7134-ts.c
drivers/media/video/saa7134/saa7134-video.c
drivers/mtd/maps/pci.c
drivers/net/3c59x.c
drivers/net/8139cp.c
drivers/net/8139too.c
drivers/net/acenic.c
drivers/net/amd8111e.c
drivers/net/b44.c
drivers/net/dl2k.c
drivers/net/e100/e100_main.c
drivers/net/e1000/e1000_ethtool.c
drivers/net/eepro100.c
drivers/net/epic100.c
drivers/net/fealnx.c
drivers/net/hamachi.c
drivers/net/ioc3-eth.c
drivers/net/ixgb/ixgb_ethtool.c
drivers/net/natsemi.c
drivers/net/ne2k-pci.c
drivers/net/ns83820.c
drivers/net/pci-skeleton.c
drivers/net/pcnet32.c
drivers/net/r8169.c
drivers/net/sis900.c
drivers/net/starfire.c
drivers/net/sundance.c
drivers/net/sungem.c
drivers/net/tg3.c
drivers/net/tulip/de2104x.c
drivers/net/tulip/dmfe.c
drivers/net/tulip/tulip_core.c
drivers/net/tulip/winbond-840.c
drivers/net/tulip/xircom_tulip_cb.c
drivers/net/typhoon.c
drivers/net/via-rhine.c
drivers/net/wireless/orinoco_pci.c
drivers/net/wireless/orinoco_plx.c
drivers/net/wireless/orinoco_tmd.c
drivers/net/yellowfin.c
drivers/parisc/lba_pci.c
drivers/parisc/superio.c
drivers/pcmcia/yenta_socket.c
drivers/scsi/ips.h
drivers/scsi/nsp32.c
drivers/serial/8250_pci.c
drivers/video/matrox/matroxfb_base.c
include/linux/ethtool.h
include/linux/videodev2.h

index 1fcc0ac7312e31b057f842fb24fb052b65ccf85a..36193fdc9842caac31012da4ef39bed5cc210620 100644 (file)
@@ -335,7 +335,7 @@ pcibios_enable_device(struct pci_dev *dev, int mask)
 
        if (cmd != oldcmd) {
                printk(KERN_DEBUG "PCI: Enabling device: (%s), cmd %x\n",
-                      dev->slot_name, cmd);
+                      pci_name(dev), cmd);
                /* Enable the appropriate bits in the PCI command register.  */
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
@@ -354,7 +354,7 @@ pcibios_set_master(struct pci_dev *dev)
        pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat);
        if (lat >= 16) return;
        printk("PCI: Setting latency timer of device %s to 64\n",
-                                                       dev->slot_name);
+                                                       pci_name(dev));
        pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64);
 }
 
index 655151eec84baf9418dd72c6e6986c65664580e3..4362dfdd1e7b8823bb560b8869314b33f1061b93 100644 (file)
@@ -59,7 +59,7 @@ static inline const char *slot_name(const struct pci_pool *pool)
        else if (pcidev_is_sa1111(pdev))
                return "[SA-1111]";
        else
-               return pdev->slot_name;
+               return pci_name(pdev);
 }
 
 
@@ -333,7 +333,7 @@ pci_pool_free (struct pci_pool *pool, void *vaddr, dma_addr_t dma)
 
        if ((page = pool_find_page (pool, dma)) == 0) {
                printk (KERN_ERR "pci_pool_free %s/%s, %p/%lx (bad dma)\n",
-                       pool->dev ? pool->dev->slot_name : NULL,
+                       pool->dev ? pci_name(pool->dev) : NULL,
                        pool->name, vaddr, (unsigned long) dma);
                return;
        }
@@ -346,13 +346,13 @@ pci_pool_free (struct pci_pool *pool, void *vaddr, dma_addr_t dma)
 #ifdef CONFIG_DEBUG_SLAB
        if (((dma - page->dma) + (void *)page->vaddr) != vaddr) {
                printk (KERN_ERR "pci_pool_free %s/%s, %p (bad vaddr)/%lx\n",
-                       pool->dev ? pool->dev->slot_name : NULL,
+                       pool->dev ? pci_name(pool->dev) : NULL,
                        pool->name, vaddr, (unsigned long) dma);
                return;
        }
        if (page->bitmap [map] & (1UL << block)) {
                printk (KERN_ERR "pci_pool_free %s/%s, dma %x already free\n",
-                       pool->dev ? pool->dev->slot_name : NULL,
+                       pool->dev ? pci_name(pool->dev) : NULL,
                        pool->name, dma);
                return;
        }
index b75fecfd8b2d5cf78aaf7963a712ff0db9813aaa..715f24823995b408ffb86a66953d1bf41e102eda 100644 (file)
@@ -460,7 +460,7 @@ static u8 __devinit pcibios_swizzle(struct pci_dev *dev, u8 *pin)
 
        if (debug_pci)
                printk("PCI: %s swizzling pin %d => pin %d slot %d\n",
-                       dev->slot_name, oldpin, *pin, slot);
+                       pci_name(dev), oldpin, *pin, slot);
 
        return slot;
 }
@@ -478,7 +478,7 @@ static int pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
 
        if (debug_pci)
                printk("PCI: %s mapping slot %d pin %d => irq %d\n",
-                       dev->slot_name, slot, pin, irq);
+                       pci_name(dev), slot, pin, irq);
 
        return irq;
 }
@@ -611,7 +611,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
                r = dev->resource + idx;
                if (!r->start && r->end) {
                        printk(KERN_ERR "PCI: Device %s not available because"
-                              " of resource collisions\n", dev->slot_name);
+                              " of resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -628,7 +628,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
 
        if (cmd != old_cmd) {
                printk("PCI: enabling device %s (%04x -> %04x)\n",
-                      dev->slot_name, old_cmd, cmd);
+                      pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
index a5a1bc5a4d6f96631443eca906737e5a14fc2516..01324e12ce79f4ff4568b1ef7fdd1860479d2c32 100644 (file)
@@ -37,7 +37,7 @@ static int __init netwinder_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
 
        default:
                printk(KERN_ERR "PCI: unknown device in slot %s: %s\n",
-                       dev->slot_name, dev->dev.name);
+                       pci_name(dev), dev->dev.name);
                return 0;
        }
 }
index 8247ee721490771c89e0c57e87d2d3c24f0193af..7d2978354c15d5ef3a0fb2184786f626384b11f2 100644 (file)
@@ -15,7 +15,7 @@ static void __devinit pci_fixup_i450nx(struct pci_dev *d)
        int pxb, reg;
        u8 busno, suba, subb;
 
-       printk(KERN_WARNING "PCI: Searching for i450NX host bridges on %s\n", d->slot_name);
+       printk(KERN_WARNING "PCI: Searching for i450NX host bridges on %s\n", pci_name(d));
        reg = 0xd0;
        for(pxb=0; pxb<2; pxb++) {
                pci_read_config_byte(d, reg++, &busno);
@@ -38,7 +38,7 @@ static void __devinit pci_fixup_i450gx(struct pci_dev *d)
         */
        u8 busno;
        pci_read_config_byte(d, 0x4a, &busno);
-       printk(KERN_INFO "PCI: i440KX/GX host bridge %s: secondary bus %02x\n", d->slot_name, busno);
+       printk(KERN_INFO "PCI: i440KX/GX host bridge %s: secondary bus %02x\n", pci_name(d), busno);
        pci_scan_bus(busno, &pci_root_ops, NULL);
        pcibios_last_bus = -1;
 }
@@ -51,7 +51,7 @@ static void __devinit  pci_fixup_umc_ide(struct pci_dev *d)
         */
        int i;
 
-       printk(KERN_WARNING "PCI: Fixing base address flags for device %s\n", d->slot_name);
+       printk(KERN_WARNING "PCI: Fixing base address flags for device %s\n", pci_name(d));
        for(i=0; i<4; i++)
                d->resource[i].flags |= PCI_BASE_ADDRESS_SPACE_IO;
 }
@@ -63,7 +63,7 @@ static void __devinit  pci_fixup_ncr53c810(struct pci_dev *d)
         * Fix class to be PCI_CLASS_STORAGE_SCSI
         */
        if (!d->class) {
-               printk(KERN_WARNING "PCI: fixing NCR 53C810 class code for %s\n", d->slot_name);
+               printk(KERN_WARNING "PCI: fixing NCR 53C810 class code for %s\n", pci_name(d));
                d->class = PCI_CLASS_STORAGE_SCSI << 8;
        }
 }
@@ -77,7 +77,7 @@ static void __devinit pci_fixup_ide_bases(struct pci_dev *d)
         */
        if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE)
                return;
-       DBG("PCI: IDE base address fixup for %s\n", d->slot_name);
+       DBG("PCI: IDE base address fixup for %s\n", pci_name(d));
        for(i=0; i<4; i++) {
                struct resource *r = &d->resource[i];
                if ((r->start & ~0x80) == 0x374) {
@@ -95,7 +95,7 @@ static void __devinit  pci_fixup_ide_trash(struct pci_dev *d)
         * There exist PCI IDE controllers which have utter garbage
         * in first four base registers. Ignore that.
         */
-       DBG("PCI: IDE base address trash cleared for %s\n", d->slot_name);
+       DBG("PCI: IDE base address trash cleared for %s\n", pci_name(d));
        for(i=0; i<4; i++)
                d->resource[i].start = d->resource[i].end = d->resource[i].flags = 0;
 }
index 6b3d6ba39c3f0dade945e54c35c04c6ecdf8100f..2ebc7c6729fce0170dbfca10bd096a5fa9e2ff27 100644 (file)
@@ -112,7 +112,7 @@ static void __init pcibios_allocate_bus_resources(struct list_head *bus_list)
                                        continue;
                                pr = pci_find_parent_resource(dev, r);
                                if (!pr || request_resource(pr, r) < 0)
-                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, dev->slot_name);
+                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, pci_name(dev));
                        }
                }
                pcibios_allocate_bus_resources(&bus->children);
@@ -143,7 +143,7 @@ static void __init pcibios_allocate_resources(int pass)
                                    r->start, r->end, r->flags, disabled, pass);
                                pr = pci_find_parent_resource(dev, r);
                                if (!pr || request_resource(pr, r) < 0) {
-                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, dev->slot_name);
+                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, pci_name(dev));
                                        /* We'll assign a new address later */
                                        r->end -= r->start;
                                        r->start = 0;
@@ -155,7 +155,7 @@ static void __init pcibios_allocate_resources(int pass)
                        if (r->flags & PCI_ROM_ADDRESS_ENABLE) {
                                /* Turn the ROM off, leave the resource region, but keep it unregistered. */
                                u32 reg;
-                               DBG("PCI: Switching off ROM of %s\n", dev->slot_name);
+                               DBG("PCI: Switching off ROM of %s\n", pci_name(dev));
                                r->flags &= ~PCI_ROM_ADDRESS_ENABLE;
                                pci_read_config_dword(dev, dev->rom_base_reg, &reg);
                                pci_write_config_dword(dev, dev->rom_base_reg, reg & ~PCI_ROM_ADDRESS_ENABLE);
@@ -230,7 +230,7 @@ int pcibios_enable_resources(struct pci_dev *dev, int mask)
 
                r = &dev->resource[idx];
                if (!r->start && r->end) {
-                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", dev->slot_name);
+                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -241,7 +241,7 @@ int pcibios_enable_resources(struct pci_dev *dev, int mask)
        if (dev->resource[PCI_ROM_RESOURCE].start)
                cmd |= PCI_COMMAND_MEMORY;
        if (cmd != old_cmd) {
-               printk("PCI: Enabling device %s (%04x -> %04x)\n", dev->slot_name, old_cmd, cmd);
+               printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
@@ -263,7 +263,7 @@ void pcibios_set_master(struct pci_dev *dev)
                lat = pcibios_max_latency;
        else
                return;
-       printk(KERN_DEBUG "PCI: Setting latency timer of device %s to %d\n", dev->slot_name, lat);
+       printk(KERN_DEBUG "PCI: Setting latency timer of device %s to %d\n", pci_name(dev), lat);
        pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat);
 }
 
index 4f9feba2fc95df61a10215f69adddf5c0a7c7409..bb61c234243c5cb64b4dfa49402c2b6c9263c0d2 100644 (file)
@@ -545,7 +545,7 @@ static void __init pirq_find_router(void)
                pirq_router->name,
                pirq_router_dev->vendor,
                pirq_router_dev->device,
-               pirq_router_dev->slot_name);
+               pci_name(pirq_router_dev));
 }
 
 static struct irq_info *pirq_get_info(struct pci_dev *dev)
@@ -589,7 +589,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
        if (!pirq_table)
                return 0;
        
-       DBG("IRQ for %s:%d", dev->slot_name, pin);
+       DBG("IRQ for %s:%d", pci_name(dev), pin);
        info = pirq_get_info(dev);
        if (!info) {
                DBG(" -> not found in routing table\n");
@@ -620,7 +620,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
        newirq = dev->irq;
        if (!((1 << newirq) & mask)) {
                if ( pci_probe & PCI_USE_PIRQ_MASK) newirq = 0;
-               else printk(KERN_WARNING "PCI: IRQ %i for device %s doesn't match PIRQ mask - try pci=usepirqmask\n", newirq, dev->slot_name);
+               else printk(KERN_WARNING "PCI: IRQ %i for device %s doesn't match PIRQ mask - try pci=usepirqmask\n", newirq, pci_name(dev));
        }
        if (!newirq && assign) {
                for (i = 0; i < 16; i++) {
@@ -662,7 +662,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
                } else
                        return 0;
        }
-       printk(KERN_INFO "PCI: %s IRQ %d for device %s\n", msg, irq, dev->slot_name);
+       printk(KERN_INFO "PCI: %s IRQ %d for device %s\n", msg, irq, pci_name(dev));
 
        /* Update IRQ for all devices with the same pirq value */
        while ((dev2 = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev2)) != NULL) {
@@ -679,13 +679,13 @@ static int pcibios_lookup_irq(struct pci_dev *dev, int assign)
                        (!(pci_probe & PCI_USE_PIRQ_MASK) || \
                        ((1 << dev2->irq) & mask)) ) {
                                printk(KERN_INFO "IRQ routing conflict for %s, have irq %d, want irq %d\n",
-                                      dev2->slot_name, dev2->irq, irq);
+                                      pci_name(dev2), dev2->irq, irq);
                                continue;
                        }
                        dev2->irq = irq;
                        pirq_penalty[irq]++;
                        if (dev != dev2)
-                               printk(KERN_INFO "PCI: Sharing IRQ %d with %s\n", irq, dev2->slot_name);
+                               printk(KERN_INFO "PCI: Sharing IRQ %d with %s\n", irq, pci_name(dev2));
                }
        }
        return 1;
@@ -703,7 +703,7 @@ static void __init pcibios_fixup_irqs(void)
                 * Also keep track of which IRQ's are already in use.
                 */
                if (dev->irq >= 16) {
-                       DBG("%s: ignoring bogus IRQ %d\n", dev->slot_name, dev->irq);
+                       DBG("%s: ignoring bogus IRQ %d\n", pci_name(dev), dev->irq);
                        dev->irq = 0;
                }
                /* If the IRQ is already assigned to a PCI device, ignore its ISA use penalty */
@@ -822,7 +822,7 @@ int pirq_enable_irq(struct pci_dev *dev)
                        return 0;
                        
                printk(KERN_WARNING "PCI: No IRQ known for interrupt pin %c of device %s.%s\n",
-                      'A' + pin - 1, dev->slot_name, msg);
+                      'A' + pin - 1, pci_name(dev), msg);
        }
        /* VIA bridges use interrupt line for apic/pci steering across
           the V-Link */
index 73f4f67c9be57a036af8fe0efc8156ee5d3fae65..d774500673f3a643df7d51835cafe92edd32f3ac 100644 (file)
@@ -86,7 +86,7 @@ static void __devinit pci_fixup_i450nx(struct pci_dev *d)
        u8 busno, suba, subb;
        int quad = BUS2QUAD(d->bus->number);
 
-       printk("PCI: Searching for i450NX host bridges on %s\n", d->slot_name);
+       printk("PCI: Searching for i450NX host bridges on %s\n", pci_name(d));
        reg = 0xd0;
        for(pxb=0; pxb<2; pxb++) {
                pci_read_config_byte(d, reg++, &busno);
index e7943d5fff260624bd495cb3df91fc6e55806e0f..a61c6871a34fb316e98edb960b4ce69c81c78fec 100644 (file)
@@ -362,7 +362,7 @@ pcibios_enable_resources (struct pci_dev *dev, int mask)
                if (!r->start && r->end) {
                        printk(KERN_ERR
                               "PCI: Device %s not available because of resource collisions\n",
-                              dev->slot_name);
+                              pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -373,7 +373,7 @@ pcibios_enable_resources (struct pci_dev *dev, int mask)
        if (dev->resource[PCI_ROM_RESOURCE].start)
                cmd |= PCI_COMMAND_MEMORY;
        if (cmd != old_cmd) {
-               printk("PCI: Enabling device %s (%04x -> %04x)\n", dev->slot_name, old_cmd, cmd);
+               printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
@@ -388,7 +388,7 @@ pcibios_enable_device (struct pci_dev *dev, int mask)
        if (ret < 0)
                return ret;
 
-       printk(KERN_INFO "PCI: Found IRQ %d for device %s\n", dev->irq, dev->slot_name);
+       printk(KERN_INFO "PCI: Found IRQ %d for device %s\n", dev->irq, pci_name(dev));
        return acpi_pci_irq_enable(dev);
 }
 
@@ -503,7 +503,7 @@ pcibios_prep_mwi (struct pci_dev *dev)
        current_linesize = 4 * pci_linesize;
        if (desired_linesize != current_linesize) {
                printk(KERN_WARNING "PCI: slot %s has incorrect PCI cache line size of %lu bytes,",
-                      dev->slot_name, current_linesize);
+                      pci_name(dev), current_linesize);
                if (current_linesize > desired_linesize) {
                        printk(" expected %lu bytes instead\n", desired_linesize);
                        rc = -EINVAL;
index 6eba9885d782d38b0e37eae9a30b63a2a9cb0a9f..f47ea2268533a9e739366eb73b39908a0a00b22a 100644 (file)
@@ -104,7 +104,7 @@ pci_fixup_ioc3(struct pci_dev *d)
         *       currently we hack this with special code in 
         *       sgi_pci_intr_support()
         */
-        DBG("pci_fixup_ioc3: Fixing base addresses for ioc3 device %s\n", d->slot_name);
+        DBG("pci_fixup_ioc3: Fixing base addresses for ioc3 device %s\n", pci_name(d));
 
        /* I happen to know from the spec that the ioc3 needs only 0xfffff 
         * The standard pci trick of writing ~0 to the baddr and seeing
index ab6dfd3dd303ea203c4c11bda64f7b982b4b7a22..869f8e45c29db9c47f2641293115171d5d34d971 100644 (file)
@@ -23,7 +23,7 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask)
                if (!r->start && r->end) {
                        printk(KERN_ERR
                               "PCI: Device %s not available because of resource collisions\n",
-                              dev->slot_name);
+                              pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -35,7 +35,7 @@ static int pcibios_enable_resources(struct pci_dev *dev, int mask)
                cmd |= PCI_COMMAND_MEMORY;
        if (cmd != old_cmd) {
                printk("PCI: Enabling device %s (%04x -> %04x)\n",
-                      dev->slot_name, old_cmd, cmd);
+                      pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
index 121805908db07bd677de2fabc9d17c5acc563e66..97be44b19e2c16e55ad7215914c78958d87ec386 100644 (file)
@@ -804,7 +804,7 @@ static void galileo_pcibios_set_master(struct pci_dev *dev)
        galileo_pcibios_read_config_word(dev, PCI_COMMAND, &cmd);
        cmd |= PCI_COMMAND_MASTER;
        galileo_pcibios_write_config_word(dev, PCI_COMMAND, cmd);
-       DBG("PCI: Enabling device %s (%04x)\n", dev->slot_name, cmd);
+       DBG("PCI: Enabling device %s (%04x)\n", pci_name(dev), cmd);
 }
 
 /*  Externally-expected functions.  Do not change function names  */
@@ -829,7 +829,7 @@ int pcibios_enable_resources(struct pci_dev *dev)
                if (!r->start && r->end) {
                        printk(KERN_ERR
                               "PCI: Device %s not available because of resource collisions\n",
-                              dev->slot_name);
+                              pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -839,7 +839,7 @@ int pcibios_enable_resources(struct pci_dev *dev)
        }
        if (cmd != old_cmd) {
                DBG(KERN_INFO "PCI: Enabling device %s (%04x -> %04x)\n",
-                   dev->slot_name, old_cmd, cmd);
+                   pci_name(dev), old_cmd, cmd);
                galileo_pcibios_write_config_word(dev, PCI_COMMAND, cmd);
        }
 
@@ -884,7 +884,7 @@ void pcibios_align_resource(void *data, struct resource *res,
                   addresses kilobyte aligned.  */
                if (size > 0x100) {
                        DBG(KERN_ERR "PCI: I/O Region %s/%d too large"
-                           " (%ld bytes)\n", dev->slot_name,
+                           " (%ld bytes)\n", pci_name(dev),
                            dev->resource - res, size);
                }
 
index db4033ab6e64002f4652b6630193c1475086fd0d..27cfb6aaa6d2a1189a0762d2d9e5a9858efa2165 100644 (file)
@@ -757,7 +757,7 @@ int pcibios_enable_resources(struct pci_dev *dev)
                if (!r->start && r->end) {
                        printk(KERN_ERR
                               "PCI: Device %s not available because of "
-                              "resource collisions\n", dev->slot_name);
+                              "resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -814,7 +814,7 @@ void pcibios_align_resource(void *data, struct resource *res,
                   addresses kilobyte aligned.  */
                if (size > 0x100) {
                        printk(KERN_ERR "PCI: I/O Region %s/%d too large"
-                              " (%ld bytes)\n", dev->slot_name,
+                              " (%ld bytes)\n", pci_name(dev),
                               dev->resource - res, size);
                }
 
index 96bc1329e0889b33076ba0ed37da7486a0da6d31..da701990e68b7125278e2bfec9f6c153a3e6a6ba 100644 (file)
@@ -408,7 +408,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
 
        pci_read_config_word(dev, PCI_COMMAND, &cmd);
        pci_read_config_word(dev, PCI_STATUS, &status);
-       printk("PCI: Enabling device %s (%04x  %04x)\n", dev->slot_name,
+       printk("PCI: Enabling device %s (%04x  %04x)\n", pci_name(dev),
               cmd, status);
        /* We'll sort this out when we know it isn't enabled ;) */
 
index 42453760ab567b53b7ac936d33080dc275d92001..59e536d93f614692b73f9930803998ffa7a0d419 100644 (file)
@@ -267,7 +267,7 @@ static void __init pci_fixup_ioc3(struct pci_dev *d)
        unsigned long bus_id = (unsigned) d->bus->number;
 
        printk("PCI: Fixing base addresses for IOC3 device %s\n",
-              d->slot_name);
+              pci_name(d));
 
        d->resource[0].start |= NODE_OFFSET(bus_to_nid[bus_id]);
        d->resource[0].end |= NODE_OFFSET(bus_to_nid[bus_id]);
@@ -281,7 +281,7 @@ static void __init pci_fixup_isp1020(struct pci_dev *d)
 
        d->resource[0].start |=
            ((unsigned long) (bus_to_nid[d->bus->number]) << 32);
-       printk("PCI: Fixing isp1020 in [bus:slot.fn] %s\n", d->slot_name);
+       printk("PCI: Fixing isp1020 in [bus:slot.fn] %s\n", pci_name(d));
 
        /*
         * Configure device to allow bus mastering, i/o and memory mapping.
@@ -311,7 +311,7 @@ static void __init pci_fixup_isp2x00(struct pci_dev *d)
        unsigned int start;
        unsigned short command;
 
-       printk("PCI: Fixing isp2x00 in [bus:slot.fn] %s\n", d->slot_name);
+       printk("PCI: Fixing isp2x00 in [bus:slot.fn] %s\n", pci_name(d));
 
        /* set the resource struct for this device */
        start = (u32) (u64) bridge;     /* yes, we want to lose the upper 32 bits here */
index d015b6944071dfdb42e4e4ce490672dffd25fa18..581413940201658bcd9b7009dbb064f18b57fad8 100644 (file)
@@ -348,7 +348,7 @@ int pcibios_enable_resources(struct pci_dev *dev)
                if (!r->start && r->end) {
                        printk(KERN_ERR
                               "PCI: Device %s not available because of "
-                              "resource collisions\n", dev->slot_name);
+                              "resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -402,7 +402,7 @@ void pcibios_align_resource(void *data, struct resource *res,
                   addresses kilobyte aligned.  */
                if (size > 0x100) {
                        printk(KERN_ERR "PCI: I/O Region %s/%d too large"
-                              " (%ld bytes)\n", dev->slot_name,
+                              " (%ld bytes)\n", pci_name(dev),
                               dev->resource - res, size);
                }
 
index 7255d230243a26a425930fe7161707bfaa8e0319..35b83d543e74350876e438d9645e7bee076e5868 100644 (file)
@@ -370,7 +370,7 @@ int pcibios_enable_resources(struct pci_dev *dev)
                if (!r->start && r->end) {
                        printk(KERN_ERR
                               "PCI: Device %s not available because of "
-                              "resource collisions\n", dev->slot_name);
+                              "resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -424,7 +424,7 @@ void pcibios_align_resource(void *data, struct resource *res,
                   addresses kilobyte aligned.  */
                if (size > 0x100) {
                        printk(KERN_ERR "PCI: I/O Region %s/%d too large"
-                              " (%ld bytes)\n", dev->slot_name,
+                              " (%ld bytes)\n", pci_name(dev),
                               dev->resource - res, size);
                }
 
index b0b61544f9aa85c3d76dbce00bf842a93d5fa102..f79fbdc1b7fcff19b36fe9aadadeb864e90150a6 100644 (file)
@@ -328,7 +328,7 @@ pcibios_align_resource(void *data, struct resource *res,
        unsigned long mask, align;
 
        DBG_RES("pcibios_align_resource(%s, (%p) [%lx,%lx]/%x, 0x%lx, 0x%lx)\n",
-               ((struct pci_dev *) data)->slot_name,
+               pci_name(((struct pci_dev *) data)),
                res->parent, res->start, res->end,
                (int) res->flags, size, alignment);
 
@@ -397,7 +397,7 @@ pcibios_enable_device(struct pci_dev *dev, int mask)
        if (dev->bus->bridge_ctl & PCI_BRIDGE_CTL_FAST_BACK)
                cmd |= PCI_COMMAND_FAST_BACK;
 #endif
-       DBGC("PCIBIOS: Enabling device %s cmd 0x%04x\n", dev->slot_name, cmd);
+       DBGC("PCIBIOS: Enabling device %s cmd 0x%04x\n", pci_name(dev), cmd);
        pci_write_config_word(dev, PCI_COMMAND, cmd);
        return 0;
 }
index e043c21e7d79cdae7f48e61561f6dee5db64b92b..9bafd505f702de22d9a2f226be978f32d96a43c7 100644 (file)
@@ -117,7 +117,7 @@ pcibios_fixup_resources(struct pci_dev *dev)
        unsigned long offset;
 
        if (!hose) {
-               printk(KERN_ERR "No hose for PCI dev %s!\n", dev->slot_name);
+               printk(KERN_ERR "No hose for PCI dev %s!\n", pci_name(dev));
                return;
        }
        for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
@@ -126,7 +126,7 @@ pcibios_fixup_resources(struct pci_dev *dev)
                        continue;
                if (!res->start || res->end == 0xffffffff) {
                        DBG("PCI:%s Resource %d [%08lx-%08lx] is unassigned\n",
-                           dev->slot_name, i, res->start, res->end);
+                           pci_name(dev), i, res->start, res->end);
                        res->end -= res->start;
                        res->start = 0;
                        res->flags |= IORESOURCE_UNSET;
@@ -144,7 +144,7 @@ pcibios_fixup_resources(struct pci_dev *dev)
                        res->end += offset;
 #ifdef DEBUG
                        printk("Fixup res %d (%lx) of dev %s: %lx -> %lx\n",
-                              i, res->flags, dev->slot_name,
+                              i, res->flags, pci_name(dev),
                               res->start - offset, res->start);
 #endif
                }
@@ -231,7 +231,7 @@ pcibios_align_resource(void *data, struct resource *res, unsigned long size,
 
                if (size > 0x100) {
                        printk(KERN_ERR "PCI: I/O Region %s/%d too large"
-                              " (%ld bytes)\n", dev->slot_name,
+                              " (%ld bytes)\n", pci_name(dev),
                               dev->resource - res, size);
                }
 
@@ -522,7 +522,7 @@ update_bridge_base(struct pci_bus *bus, int i)
 
        } else {
                DBG(KERN_ERR "PCI: ugh, bridge %s res %d has flags=%lx\n",
-                   dev->slot_name, i, res->flags);
+                   pci_name(dev), i, res->flags);
        }
        pci_write_config_word(dev, PCI_COMMAND, cmd);
 }
@@ -532,11 +532,11 @@ static inline void alloc_resource(struct pci_dev *dev, int idx)
        struct resource *pr, *r = &dev->resource[idx];
 
        DBG("PCI:%s: Resource %d: %08lx-%08lx (f=%lx)\n",
-           dev->slot_name, idx, r->start, r->end, r->flags);
+           pci_name(dev), idx, r->start, r->end, r->flags);
        pr = pci_find_parent_resource(dev, r);
        if (!pr || request_resource(pr, r) < 0) {
                printk(KERN_ERR "PCI: Cannot allocate resource region %d"
-                      " of device %s\n", idx, dev->slot_name);
+                      " of device %s\n", idx, pci_name(dev));
                if (pr)
                        DBG("PCI:  parent is %p: %08lx-%08lx (f=%lx)\n",
                            pr, pr->start, pr->end, pr->flags);
@@ -576,7 +576,7 @@ pcibios_allocate_resources(int pass)
                if (r->flags & PCI_ROM_ADDRESS_ENABLE) {
                        /* Turn the ROM off, leave the resource region, but keep it unregistered. */
                        u32 reg;
-                       DBG("PCI: Switching off ROM of %s\n", dev->slot_name);
+                       DBG("PCI: Switching off ROM of %s\n", pci_name(dev));
                        r->flags &= ~PCI_ROM_ADDRESS_ENABLE;
                        pci_read_config_dword(dev, dev->rom_base_reg, &reg);
                        pci_write_config_dword(dev, dev->rom_base_reg,
@@ -643,7 +643,7 @@ pcibios_enable_resources(struct pci_dev *dev, int mask)
                
                r = &dev->resource[idx];
                if (r->flags & IORESOURCE_UNSET) {
-                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", dev->slot_name);
+                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -654,7 +654,7 @@ pcibios_enable_resources(struct pci_dev *dev, int mask)
        if (dev->resource[PCI_ROM_RESOURCE].start)
                cmd |= PCI_COMMAND_MEMORY;
        if (cmd != old_cmd) {
-               printk("PCI: Enabling device %s (%04x -> %04x)\n", dev->slot_name, old_cmd, cmd);
+               printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
@@ -1409,7 +1409,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
        for (idx=0; idx<6; idx++) {
                r = &dev->resource[idx];
                if (r->flags & IORESOURCE_UNSET) {
-                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", dev->slot_name);
+                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -1419,7 +1419,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
        }
        if (cmd != old_cmd) {
                printk("PCI: Enabling device %s (%04x -> %04x)\n",
-                      dev->slot_name, old_cmd, cmd);
+                      pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
index 93d4ec05858cb9927683490fe11b6685ac495282..36615857fe12402ef6d7922cec5f84e3a6c5f449 100644 (file)
@@ -116,7 +116,7 @@ unsigned long eeh_check_failure(void *token, unsigned long val)
                                dn->eeh_config_addr, BUID_HI(dn->phb->buid), BUID_LO(dn->phb->buid));
                if (ret == 0 && rets[1] == 1 && rets[0] >= 2) {
                        panic("EEH:  MMIO failure (%ld) on device:\n  %s %s\n",
-                             rets[0], dev->slot_name, dev->dev.name);
+                             rets[0], pci_name(dev), dev->dev.name);
                }
        }
        eeh_false_positives++;
index 9cc0ed7e5bcff00c671c670286262e7da9c55e58..c03e52c85ec50d34bdb02a9a6fb815d47177ff0a 100644 (file)
@@ -149,18 +149,18 @@ int pci_read_irq_line(struct pci_dev *pci_dev)
        pci_read_config_byte(pci_dev, PCI_INTERRUPT_PIN, &intpin);
 
        if (intpin == 0) {
-               PPCDBG(PPCDBG_BUSWALK,"\tDevice: %s No Interrupt used by device.\n", pci_dev->slot_name);
+               PPCDBG(PPCDBG_BUSWALK,"\tDevice: %s No Interrupt used by device.\n", pci_name(pci_dev));
                return 0;       
        }
 
        node = pci_device_to_OF_node(pci_dev);
        if (node == NULL) { 
                PPCDBG(PPCDBG_BUSWALK,"\tDevice: %s Device Node not found.\n",
-                      pci_dev->slot_name);
+                      pci_name(pci_dev));
                return -1;      
        }
        if (node->n_intrs == 0)         {
-               PPCDBG(PPCDBG_BUSWALK,"\tDevice: %s No Device OF interrupts defined.\n", pci_dev->slot_name);
+               PPCDBG(PPCDBG_BUSWALK,"\tDevice: %s No Device OF interrupts defined.\n", pci_name(pci_dev));
                return -1;      
        }
        pci_dev->irq = node->intrs[0].line;
@@ -173,7 +173,7 @@ int pci_read_irq_line(struct pci_dev *pci_dev)
        pci_write_config_byte(pci_dev, PCI_INTERRUPT_LINE, pci_dev->irq);
        
        PPCDBG(PPCDBG_BUSWALK,"\tDevice: %s pci_dev->irq = 0x%02X\n",
-              pci_dev->slot_name, pci_dev->irq);
+              pci_name(pci_dev), pci_dev->irq);
        return 0;
 }
 
index a8e9a5fbefdd5e59e368dae2da415d9be053c537..280b2fbd2bddee830054282786637ee4656722dc 100644 (file)
@@ -325,7 +325,7 @@ static int __init pcibios_init(void)
        /* Cache the location of the ISA bridge (if we have one) */
        ppc64_isabridge_dev = pci_find_class(PCI_CLASS_BRIDGE_ISA << 8, NULL);
        if (ppc64_isabridge_dev != NULL)
-               printk("ISA bridge at %s\n", ppc64_isabridge_dev->slot_name);
+               printk("ISA bridge at %s\n", pci_name(ppc64_isabridge_dev));
 
        printk("PCI: Probing PCI hardware done\n");
        //ppc64_boot_msg(0x41, "PCI Done");
@@ -363,7 +363,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
 
        if (cmd != oldcmd) {
                printk(KERN_DEBUG "PCI: Enabling device: (%s), cmd %x\n",
-                      dev->slot_name, cmd);
+                      pci_name(dev), cmd);
                 /* Enable the appropriate bits in the PCI command register.  */
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
index 15fefd1be647a14eb482bd3470a388501eacfc35..402a995b7756284acd22c1c7ce267e2c203fdf87 100644 (file)
@@ -264,11 +264,11 @@ static int __init map_mpc1211_irq(struct pci_dev *dev, u8 slot, u8 pin)
        }
 
        if( irq < 0 ) {
-               PCIDBG(3, "PCI: Error mapping IRQ on device %s\n", dev->slot_name);
+               PCIDBG(3, "PCI: Error mapping IRQ on device %s\n", pci_name(dev));
                return irq;
        }
        
-       PCIDBG(2, "Setting IRQ for slot %s to %d\n", dev->slot_name, irq);
+       PCIDBG(2, "Setting IRQ for slot %s to %d\n", pci_name(dev), irq);
 
        return irq;
 }
index 64ac57e5308707b1058da3052e3371f340e73f7b..54020ebbbc7937b15491a4c1e412b7a01c8d796b 100644 (file)
@@ -446,7 +446,7 @@ static void __init pci_fixup_ide_bases(struct pci_dev *d)
         */
        if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE)
                return;
-       printk("PCI: IDE base address fixup for %s\n", d->slot_name);
+       printk("PCI: IDE base address fixup for %s\n", pci_name(d));
        for(i=0; i<4; i++) {
                struct resource *r = &d->resource[i];
                if ((r->start & ~0x80) == 0x374) {
@@ -518,7 +518,7 @@ int pcibios_enable_device(struct pci_dev *dev)
                        printk(KERN_ERR
                               "PCI: Device %s not available because"
                               " of resource collisions\n",
-                              dev->slot_name);
+                              pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -528,7 +528,7 @@ int pcibios_enable_device(struct pci_dev *dev)
        }
        if (cmd != old_cmd) {
                printk("PCI: enabling device %s (%04x -> %04x)\n",
-                      dev->slot_name, old_cmd, cmd);
+                      pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
@@ -589,6 +589,6 @@ void pcibios_set_master(struct pci_dev *dev)
                lat = pcibios_max_latency;
        else
                return;
-       printk("PCI: Setting latency timer of device %s to %d\n", dev->slot_name, lat);
+       printk("PCI: Setting latency timer of device %s to %d\n", pci_name(dev), lat);
        pci_write_config_byte(dev, PCI_LATENCY_TIMER, lat);
 }
index 0831b1c646acfe9d2fad01f4f5e00db5ce36ef25..142db51e54f2a128ce5bf6ee8cb499016e8ca0c2 100644 (file)
@@ -226,7 +226,7 @@ static void __init pci_fixup_ide_bases(struct pci_dev *d)
         */
        if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE)
                return;
-       PCIDBG(3,"PCI: IDE base address fixup for %s\n", d->slot_name);
+       PCIDBG(3,"PCI: IDE base address fixup for %s\n", pci_name(d));
        for(i=0; i<4; i++) {
                struct resource *r = &d->resource[i];
                if ((r->start & ~0x80) == 0x374) {
@@ -370,7 +370,7 @@ static void __init pcibios_allocate_bus_resources(struct list_head *bus_list)
                                        continue;
                                pr = pci_find_parent_resource(dev, r);
                                if (!pr || request_resource(pr, r) < 0)
-                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, dev->slot_name);
+                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of bridge %s\n", idx, pci_name(dev));
                        }
                }
                pcibios_allocate_bus_resources(&bus->children);
@@ -402,7 +402,7 @@ static void __init pcibios_allocate_resources(int pass)
                                    r->start, r->end, r->flags, disabled, pass);
                                pr = pci_find_parent_resource(dev, r);
                                if (!pr || request_resource(pr, r) < 0) {
-                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, dev->slot_name);
+                                       printk(KERN_ERR "PCI: Cannot allocate resource region %d of device %s\n", idx, pci_name(dev));
                                        /* We'll assign a new address later */
                                        r->end -= r->start;
                                        r->start = 0;
@@ -414,7 +414,7 @@ static void __init pcibios_allocate_resources(int pass)
                        if (r->flags & PCI_ROM_ADDRESS_ENABLE) {
                                /* Turn the ROM off, leave the resource region, but keep it unregistered. */
                                u32 reg;
-                               PCIDBG(3,"PCI: Switching off ROM of %s\n", dev->slot_name);
+                               PCIDBG(3,"PCI: Switching off ROM of %s\n", pci_name(dev));
                                r->flags &= ~PCI_ROM_ADDRESS_ENABLE;
                                pci_read_config_dword(dev, dev->rom_base_reg, &reg);
                                pci_write_config_dword(dev, dev->rom_base_reg, reg & ~PCI_ROM_ADDRESS_ENABLE);
@@ -497,7 +497,7 @@ static int pcibios_lookup_irq(struct pci_dev *dev, u8 slot, u8 pin)
                return irq;
        }
        
-       PCIDBG(2,"Setting IRQ for slot %s to %d\n", dev->slot_name, irq);
+       PCIDBG(2,"Setting IRQ for slot %s to %d\n", pci_name(dev), irq);
 
        return irq;
 }
index 29e7bf61927ce581483bde78740bd0ca5ddc7e9b..56a248b2ef5491a8f9b898f096ded5db04607fcd 100644 (file)
@@ -151,7 +151,7 @@ static void __init pci_fixup_ide_bases(struct pci_dev *d)
         */
        if ((d->class >> 8) != PCI_CLASS_STORAGE_IDE)
                return;
-       printk("PCI: IDE base address fixup for %s\n", d->slot_name);
+       printk("PCI: IDE base address fixup for %s\n", pci_name(d));
        for(i=0; i<4; i++) {
                struct resource *r = &d->resource[i];
                if ((r->start & ~0x80) == 0x374) {
index 17d64a69e8ffe46008556002e65868b7e017e751..6d741e9624b83d344d2f6e81782fe8be8c4abffb 100644 (file)
@@ -71,7 +71,7 @@ pcibios_update_resource(struct pci_dev *dev, struct resource *root,
        pci_read_config_dword(dev, reg, &check);
        if ((new ^ check) & ((new & PCI_BASE_ADDRESS_SPACE_IO) ? PCI_BASE_ADDRESS_IO_MASK : PCI_BASE_ADDRESS_MEM_MASK)) {
                printk(KERN_ERR "PCI: Error while updating region "
-                      "%s/%d (%08x != %08x)\n", dev->slot_name, resource,
+                      "%s/%d (%08x != %08x)\n", pci_name(dev), resource,
                       new, check);
        }
 }
@@ -110,7 +110,7 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
        for(idx=0; idx<6; idx++) {
                r = &dev->resource[idx];
                if (!r->start && r->end) {
-                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", dev->slot_name);
+                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
index f9bb8ce67b94537f47b997af1a163ffd9fa846e2..86bc6a67d3093f4c5eb8698e845b91e7a25f0f2b 100644 (file)
@@ -54,7 +54,7 @@ int pcibios_enable_device(struct pci_dev *dev)
        for(idx=0; idx<6; idx++) {
                r = &dev->resource[idx];
                if (!r->start && r->end) {
-                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", dev->slot_name);
+                       printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
index 316e31db2898ab42e8163c4ec1602c0dfc5a8a38..1c4d9c5374aa902cf3734ca8b7ae2fe089d43de7 100644 (file)
@@ -231,7 +231,7 @@ int __nomods_init pcibios_enable_device (struct pci_dev *dev, int mask)
                r = &dev->resource[idx];
                if (!r->start && r->end) {
                        printk(KERN_ERR "PCI: Device %s not available because "
-                              "of resource collisions\n", dev->slot_name);
+                              "of resource collisions\n", pci_name(dev));
                        return -EINVAL;
                }
                if (r->flags & IORESOURCE_IO)
@@ -241,7 +241,7 @@ int __nomods_init pcibios_enable_device (struct pci_dev *dev, int mask)
        }
        if (cmd != old_cmd) {
                printk("PCI: Enabling device %s (%04x -> %04x)\n",
-                      dev->slot_name, old_cmd, cmd);
+                      pci_name(dev), old_cmd, cmd);
                pci_write_config_word(dev, PCI_COMMAND, cmd);
        }
        return 0;
index f2428804dd6b2f0990c2f570ff74e784dff6097e..336989a14a92c6ac76eb3d7b268787c81025721f 100644 (file)
@@ -262,7 +262,7 @@ static void iommu_full(struct pci_dev *dev, void *addr, size_t size, int dir)
        
        printk(KERN_ERR 
   "PCI-DMA: Out of IOMMU space for %p size %lu at device %s[%s]\n",
-              addr,size, dev ? dev->dev.name : "?", dev ? dev->slot_name : "?");
+              addr,size, dev ? dev->dev.name : "?", dev ? pci_name(dev) : "?");
 
        if (size > PAGE_SIZE*EMERGENCY_PAGES) {
                if (dir == PCI_DMA_FROMDEVICE || dir == PCI_DMA_BIDIRECTIONAL)
index c02559e3ddd4e4dbdb21a0471063c7a8ba7047e9..51db476b4d70809cff67571a016e1bfb9840578c 100644 (file)
@@ -291,7 +291,7 @@ acpi_pci_irq_derive (
        }
 
        if (!irq) {
-               ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Unable to derive IRQ for device %s\n", dev->slot_name));
+               ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Unable to derive IRQ for device %s\n", pci_name(dev)));
                return_VALUE(0);
        }
 
@@ -316,7 +316,7 @@ acpi_pci_irq_enable (
        
        pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
        if (!pin) {
-               ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No interrupt pin configured for device %s\n", dev->slot_name));
+               ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No interrupt pin configured for device %s\n", pci_name(dev)));
                return_VALUE(0);
        }
        pin--;
@@ -344,7 +344,7 @@ acpi_pci_irq_enable (
         * driver reported one, then use it. Exit in any case.
         */
        if (!irq) {
-               printk(KERN_WARNING PREFIX "No IRQ known for interrupt pin %c of device %s", ('A' + pin), dev->slot_name);
+               printk(KERN_WARNING PREFIX "No IRQ known for interrupt pin %c of device %s", ('A' + pin), pci_name(dev));
                /* Interrupt Line values above 0xF are forbidden */
                if (dev->irq && dev->irq >= 0xF) {
                        printk(" - using IRQ %d\n", dev->irq);
@@ -358,7 +358,7 @@ acpi_pci_irq_enable (
 
        dev->irq = irq;
 
-       ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device %s using IRQ %d\n", dev->slot_name, dev->irq));
+       ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Device %s using IRQ %d\n", pci_name(dev), dev->irq));
 
        /* 
         * Make sure all (legacy) PCI IRQs are set as level-triggered.
index 6722aa1fca37a52c118de5502377fe0bd792b109..64c3e1f7d54881c19c3bf1d49a1686cede6b193d 100644 (file)
@@ -517,7 +517,7 @@ void agp_device_command(u32 command, int agp_v3)
                        continue;
 
                printk(KERN_INFO PFX "Putting AGP V%d device at %s into %dx mode\n",
-                               agp_v3 ? 3 : 2, device->slot_name, mode);
+                               agp_v3 ? 3 : 2, pci_name(device), mode);
                pci_write_config_dword(device, agp + PCI_AGP_COMMAND, command);
        }
 }
index 254d32f2c5a63922b7189d5be3d03453be266f83..4275bb8521f091899cb0f19cf30ae6593df14137 100644 (file)
@@ -2202,7 +2202,7 @@ __init int register_PCI(int i, struct pci_dev *dev)
                ctlp->AiopNumChan[aiop] = ports_per_aiop;
 
        printk("Comtrol PCI controller #%d ID 0x%x found in bus:slot:fn %s at address %04lx, "
-            "%d AIOP(s) (%s)\n", i, dev->device, dev->slot_name,
+            "%d AIOP(s) (%s)\n", i, dev->device, pci_name(dev),
             rcktpt_io_addr[i], num_aiops, rocketModel[i].modelString);
        printk(KERN_INFO "Installing %s, creating /dev/ttyR%d - %ld\n",
               rocketModel[i].modelString,
index 3dedb1997b8d45a086649479b0a46ead5f183c2b..043c73ad5d65d43932e57af31fda495b90ac2d28 100644 (file)
@@ -26,7 +26,7 @@ static int __devinit pci_eisa_init (struct pci_dev *pdev,
 
        if ((rc = pci_enable_device (pdev))) {
                printk (KERN_ERR "pci_eisa : Could not enable device %s\n",
-                       pdev->slot_name);
+                       pci_name(pdev));
                return rc;
        }
 
index 2570ba37477288a3e4d6f2a137e1f29980f0e69a..3ba893402abe599f3c6d51f7976df073140488c0 100644 (file)
@@ -365,7 +365,7 @@ static unsigned int __init init_chipset_amd74xx(struct pci_dev *dev, const char
 
        pci_read_config_byte(dev, PCI_REVISION_ID, &t);
        printk(KERN_INFO "AMD_IDE: %s (rev %02x) %s controller on pci%s\n",
-               dev->dev.name, t, amd_dma[amd_config->flags & AMD_UDMA], dev->slot_name);
+               dev->dev.name, t, amd_dma[amd_config->flags & AMD_UDMA], pci_name(dev));
 
 /*
  * Register /proc/ide/amd74xx entry
index 7803190632434aebcf697a2eb59e874f42c0cce6..d1c4d83ba50d0cb91777e8cae3c83b00a99058e7 100644 (file)
@@ -561,7 +561,7 @@ static unsigned int __init init_chipset_via82cxxx(struct pci_dev *dev, const cha
                "controller on pci%s\n",
                via_config->name, t,
                via_dma[via_config->flags & VIA_UDMA],
-               dev->slot_name);
+               pci_name(dev));
 
        /*
         * Setup /proc/ide/via entry.
index 447e843de3816aeff2059662ff4ee967512f4e18..d1de94267ce5b910e678bafb35f2efa01e8c6590 100644 (file)
@@ -285,10 +285,10 @@ void ide_setup_pci_noise (struct pci_dev *dev, ide_pci_device_t *d)
        if ((d->vendor != dev->vendor) && (d->device != dev->device)) {
                printk(KERN_INFO "%s: unknown IDE controller at PCI slot "
                        "%s, VID=%04x, DID=%04x\n",
-                       d->name, dev->slot_name, dev->vendor, dev->device);
+                       d->name, pci_name(dev), dev->vendor, dev->device);
         } else {
                printk(KERN_INFO "%s: IDE controller at PCI slot %s\n",
-                       d->name, dev->slot_name);
+                       d->name, pci_name(dev));
        }
 }
 
index bc95799ad4691a4f51f711b6cdf75b4da58875d1..0ec91ea49f412c5d0406297fa222f2b95d5441fb 100644 (file)
@@ -287,7 +287,7 @@ static int __devinit cs461x_pci_probe(struct pci_dev *pdev, const struct pci_dev
        port->read = cs461x_gameport_read;
        port->cooked_read = cs461x_gameport_cooked_read;
 
-       sprintf(phys, "pci%s/gameport0", pdev->slot_name);
+       sprintf(phys, "pci%s/gameport0", pci_name(pdev));
 
        port->name = name;
        port->phys = phys;
@@ -301,7 +301,7 @@ static int __devinit cs461x_pci_probe(struct pci_dev *pdev, const struct pci_dev
        gameport_register_port(port);
 
        printk(KERN_INFO "gameport: %s on pci%s speed %d kHz\n",
-               name, pdev->slot_name, port->speed);
+               name, pci_name(pdev), port->speed);
 
        return 0;
 }
index 9e7603177965b3c2a248c452b97f363f2bb698ff..ccb221937cbd51dac65b9704442e5e39c3e37b5e 100644 (file)
@@ -78,7 +78,7 @@ static int __devinit emu_probe(struct pci_dev *pdev, const struct pci_device_id
        }
        memset(emu, 0, sizeof(struct emu));
 
-       sprintf(emu->phys, "pci%s/gameport0", pdev->slot_name);
+       sprintf(emu->phys, "pci%s/gameport0", pci_name(pdev));
 
        emu->size = iolen;
        emu->dev = pdev;
@@ -95,7 +95,7 @@ static int __devinit emu_probe(struct pci_dev *pdev, const struct pci_device_id
        gameport_register_port(&emu->gameport);
 
        printk(KERN_INFO "gameport: %s at pci%s speed %d kHz\n",
-               pdev->dev.name, pdev->slot_name, emu->gameport.speed);
+               pdev->dev.name, pci_name(pdev), emu->gameport.speed);
 
        return 0;
 }
index bc5d44a28f0a48b88531b3730d0e4d7f66e8f596..ffa240f552b8e80c3347f33d745b2137f30e7e4b 100644 (file)
@@ -116,7 +116,7 @@ static int __devinit fm801_gp_probe(struct pci_dev *pci, const struct pci_device
        gameport_register_port(&gp->gameport);
 
        printk(KERN_INFO "gameport: %s at pci%s speed %d kHz\n",
-               pci->dev.name, pci->slot_name, gp->gameport.speed);
+               pci->dev.name, pci_name(pci), gp->gameport.speed);
 
        return 0;
 }
index 45cc9f6f07be44a1482f978c102593e4f9cbf754..7bdefd94ad095b4e41faa57752968f9766673360 100644 (file)
@@ -115,7 +115,7 @@ static int __devinit vortex_probe(struct pci_dev *dev, const struct pci_device_i
         memset(vortex, 0, sizeof(struct vortex));
 
        vortex->dev = dev;
-       sprintf(vortex->phys, "pci%s/gameport0", dev->slot_name);
+       sprintf(vortex->phys, "pci%s/gameport0", pci_name(dev));
 
        pci_set_drvdata(dev, vortex);
 
@@ -146,7 +146,7 @@ static int __devinit vortex_probe(struct pci_dev *dev, const struct pci_device_i
        gameport_register_port(&vortex->gameport);
        
        printk(KERN_INFO "gameport: %s at pci%s speed %d kHz\n",
-               dev->dev.name, dev->slot_name, vortex->gameport.speed);
+               dev->dev.name, pci_name(dev), vortex->gameport.speed);
 
        return 0;
 }
index 06733172adc1a27078f8723793c535931b065d85..614dcd007d61266702d3cd017d0fe7a51725788d 100644 (file)
@@ -878,7 +878,7 @@ static int __devinit fcpci_probe(struct pci_dev *pdev,
        adapter->irq = pdev->irq;
 
        printk(KERN_INFO "hisax_fcpcipnp: found adapter %s at %s\n",
-              (char *) ent->driver_data, pdev->slot_name);
+              (char *) ent->driver_data, pci_name(pdev));
 
        retval = fcpcipnp_setup(adapter);
        if (retval)
index fd1cfe2be393168648a9ecbab8601e07e27c4b3d..5e06052153b2a6f73acbd71111dd84ec8dea309c 100644 (file)
@@ -1567,7 +1567,7 @@ static int __devinit hfcpci_probe(struct pci_dev *pdev,
        hfcpci_hw_init(adapter);
 
        printk(KERN_INFO "hisax_hfcpci: found adapter %s at %s\n",
-              (char *) ent->driver_data, pdev->slot_name);
+              (char *) ent->driver_data, pci_name(pdev));
 
        return 0;
 
index 921622aad92492005975ebaa881249f12eee9ac0..ff0ee6016667b7ee53ef07efe246a55e22894835 100644 (file)
@@ -794,7 +794,7 @@ int saa7146_video_do_ioctl(struct inode *inode, struct file *file, unsigned int
                
                 strcpy(cap->driver, "saa7146 v4l2");
                strlcpy(cap->card, dev->ext->name, sizeof(cap->card));
-               sprintf(cap->bus_info,"PCI:%s",dev->pci->slot_name);
+               sprintf(cap->bus_info,"PCI:%s",pci_name(dev->pci));
                cap->version = SAA7146_VERSION_CODE;
                cap->capabilities =
                        V4L2_CAP_VIDEO_CAPTURE |
index 3b17b55bd24b592af53b04e2fcb1450c5c11d9fc..de58772ac72c7e158b36bd903223795d1695247d 100644 (file)
@@ -2310,7 +2310,7 @@ static int bttv_do_ioctl(struct inode *inode, struct file *file,
                        return -EINVAL;
                 strcpy(cap->driver,"bttv");
                 strlcpy(cap->card,btv->video_dev.name,sizeof(cap->card));
-               sprintf(cap->bus_info,"PCI:%s",btv->dev->slot_name);
+               sprintf(cap->bus_info,"PCI:%s",pci_name(btv->dev));
                cap->version = BTTV_VERSION_CODE;
                cap->capabilities =
                        V4L2_CAP_VIDEO_CAPTURE |
@@ -3351,7 +3351,7 @@ static int __devinit bttv_probe(struct pci_dev *dev,
         pci_read_config_byte(dev, PCI_CLASS_REVISION, &btv->revision);
         pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat);
         printk(KERN_INFO "bttv%d: Bt%d (rev %d) at %s, ",
-               bttv_num,btv->id, btv->revision, dev->slot_name);
+               bttv_num,btv->id, btv->revision, pci_name(dev));
         printk("irq: %d, latency: %d, mmio: 0x%lx\n",
               btv->dev->irq, lat, pci_resource_start(dev,0));
        
index dd1246d7f85bbd80e0b3db4fb775055adb03a77a..817ac5364e6ca2bf46332f9c744425e04fe1751a 100644 (file)
@@ -746,7 +746,7 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
         pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER,  &dev->pci_lat);
         printk(KERN_INFO "%s: found at %s, rev: %d, irq: %d, "
               "latency: %d, mmio: 0x%lx\n", dev->name,
-              pci_dev->slot_name, dev->pci_rev, pci_dev->irq,
+              pci_name(pci_dev), dev->pci_rev, pci_dev->irq,
               dev->pci_lat,pci_resource_start(pci_dev,0));
        pci_set_master(pci_dev);
        if (!pci_dma_supported(pci_dev,0xffffffff)) {
index 32f4bfcdcf6bdbb642a7f1d3e18a80135043c20c..3e2c49620066dd0bc723b8ec2c92445b79bc94c0 100644 (file)
@@ -253,7 +253,7 @@ static int ts_do_ioctl(struct inode *inode, struct file *file,
                 strcpy(cap->driver, "saa7134");
                strlcpy(cap->card, saa7134_boards[dev->board].name,
                        sizeof(cap->card));
-               sprintf(cap->bus_info,"PCI:%s",dev->pci->slot_name);
+               sprintf(cap->bus_info,"PCI:%s",pci_name(dev->pci));
                cap->version = SAA7134_VERSION_CODE;
                cap->capabilities =
                        V4L2_CAP_VIDEO_CAPTURE |
index 1397e720676cd37d3e73c231b1bd6b1223826bcf..b1ea74245c5b1cd2b9a0607364a719e14a6017b0 100644 (file)
@@ -1503,7 +1503,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
                 strcpy(cap->driver, "saa7134");
                strlcpy(cap->card, saa7134_boards[dev->board].name,
                        sizeof(cap->card));
-               sprintf(cap->bus_info,"PCI:%s",dev->pci->slot_name);
+               sprintf(cap->bus_info,"PCI:%s",pci_name(dev->pci));
                cap->version = SAA7134_VERSION_CODE;
                cap->capabilities =
                        V4L2_CAP_VIDEO_CAPTURE |
@@ -1903,7 +1903,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file,
                 strcpy(cap->driver, "saa7134");
                strlcpy(cap->card, saa7134_boards[dev->board].name,
                        sizeof(cap->card));
-               sprintf(cap->bus_info,"PCI:%s",dev->pci->slot_name);
+               sprintf(cap->bus_info,"PCI:%s",pci_name(dev->pci));
                cap->version = SAA7134_VERSION_CODE;
                cap->capabilities = V4L2_CAP_TUNER;
                return 0;
index 24ea35a52a3f23ec0a256621ce1110783bd5ec81..8baca24cb4d3c18ed2005dba6f309a3527e40577 100644 (file)
@@ -140,7 +140,7 @@ intel_dc21285_init(struct pci_dev *dev, struct map_pci_info *map)
                        pci_read_config_dword(dev, PCI_ROM_ADDRESS, &val);
                        val |= PCI_ROM_ADDRESS_ENABLE;
                        pci_write_config_dword(dev, PCI_ROM_ADDRESS, val);
-                       printk("%s: enabling expansion ROM\n", dev->slot_name);
+                       printk("%s: enabling expansion ROM\n", pci_name(dev));
                }
        }
 
@@ -306,7 +306,7 @@ mtd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
                goto release;
 
        map->map       = mtd_pci_map;
-       map->map.name  = dev->slot_name;
+       map->map.name  = pci_name(dev);
        map->dev       = dev;
        map->exit      = info->exit;
        map->translate = info->translate;
index c887cb7e3f12ed8bbb7a5dd5fcdd7c657afe66cf..72ca98c3a2204cb52368abd16ca66233707e0127 100644 (file)
@@ -1091,7 +1091,7 @@ static int __devinit vortex_probe1(struct device *gendev,
 
        if (gendev) {
                if ((pdev = DEVICE_PCI(gendev))) {
-                       print_name = pdev->slot_name;
+                       print_name = pci_name(pdev);
                }
 
                if ((edev = DEVICE_EISA(gendev))) {
@@ -2830,7 +2830,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
                if (VORTEX_PCI(vp))
-                       strcpy(info.bus_info, VORTEX_PCI(vp)->slot_name);
+                       strcpy(info.bus_info, pci_name(VORTEX_PCI(vp)));
                else {
                        if (VORTEX_EISA(vp))
                                sprintf (info.bus_info, vp->gendev->bus_id);
index 6fd3f87f9545d6f1513fd9f4939a929a7738f04e..e5b255025029b512687d72eab364394456e69d2a 100644 (file)
@@ -1373,7 +1373,7 @@ static int cp_ethtool_ioctl (struct cp_private *cp, void *useraddr)
                struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                strcpy (info.driver, DRV_NAME);
                strcpy (info.version, DRV_VERSION);
-               strcpy (info.bus_info, cp->pdev->slot_name);
+               strcpy (info.bus_info, pci_name(cp->pdev));
                info.regdump_len = CP_REGS_SIZE;
                info.n_stats = CP_NUM_STATS;
                if (copy_to_user (useraddr, &info, sizeof (info)))
@@ -1792,7 +1792,7 @@ static int __devinit cp_init_one (struct pci_dev *pdev,
        if (pdev->vendor == PCI_VENDOR_ID_REALTEK &&
            pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pci_rev < 0x20) {
                printk(KERN_ERR PFX "pci dev %s (id %04x:%04x rev %02x) is not an 8139C+ compatible chip\n",
-                      pdev->slot_name, pdev->vendor, pdev->device, pci_rev);
+                      pci_name(pdev), pdev->vendor, pdev->device, pci_rev);
                printk(KERN_ERR PFX "Try the \"8139too\" driver instead.\n");
                return -ENODEV;
        }
@@ -1828,20 +1828,20 @@ static int __devinit cp_init_one (struct pci_dev *pdev,
        if (pdev->irq < 2) {
                rc = -EIO;
                printk(KERN_ERR PFX "invalid irq (%d) for pci dev %s\n",
-                      pdev->irq, pdev->slot_name);
+                      pdev->irq, pci_name(pdev));
                goto err_out_res;
        }
        pciaddr = pci_resource_start(pdev, 1);
        if (!pciaddr) {
                rc = -EIO;
                printk(KERN_ERR PFX "no MMIO resource for pci dev %s\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                goto err_out_res;
        }
        if (pci_resource_len(pdev, 1) < CP_REGS_SIZE) {
                rc = -EIO;
                printk(KERN_ERR PFX "MMIO resource (%lx) too small on pci dev %s\n",
-                      pci_resource_len(pdev, 1), pdev->slot_name);
+                      pci_resource_len(pdev, 1), pci_name(pdev));
                goto err_out_res;
        }
 
@@ -1862,7 +1862,7 @@ static int __devinit cp_init_one (struct pci_dev *pdev,
        if (!regs) {
                rc = -EIO;
                printk(KERN_ERR PFX "Cannot map PCI MMIO (%lx@%lx) on pci dev %s\n",
-                      pci_resource_len(pdev, 1), pciaddr, pdev->slot_name);
+                      pci_resource_len(pdev, 1), pciaddr, pci_name(pdev));
                goto err_out_res;
        }
        dev->base_addr = (unsigned long) regs;
index 11b7ee84e14a4defa83c1284353958b8227cac32..17d33d71f131f13194dfc76349e0680c1a173c59 100644 (file)
@@ -765,7 +765,7 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev,
        /* dev and dev->priv zeroed in alloc_etherdev */
        dev = alloc_etherdev (sizeof (*tp));
        if (dev == NULL) {
-               printk (KERN_ERR PFX "%s: Unable to alloc new net device\n", pdev->slot_name);
+               printk (KERN_ERR PFX "%s: Unable to alloc new net device\n", pci_name(pdev));
                return -ENOMEM;
        }
        SET_MODULE_OWNER(dev);
@@ -797,25 +797,25 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev,
 #ifdef USE_IO_OPS
        /* make sure PCI base addr 0 is PIO */
        if (!(pio_flags & IORESOURCE_IO)) {
-               printk (KERN_ERR PFX "%s: region #0 not a PIO resource, aborting\n", pdev->slot_name);
+               printk (KERN_ERR PFX "%s: region #0 not a PIO resource, aborting\n", pci_name(pdev));
                rc = -ENODEV;
                goto err_out;
        }
        /* check for weird/broken PCI region reporting */
        if (pio_len < RTL_MIN_IO_SIZE) {
-               printk (KERN_ERR PFX "%s: Invalid PCI I/O region size(s), aborting\n", pdev->slot_name);
+               printk (KERN_ERR PFX "%s: Invalid PCI I/O region size(s), aborting\n", pci_name(pdev));
                rc = -ENODEV;
                goto err_out;
        }
 #else
        /* make sure PCI base addr 1 is MMIO */
        if (!(mmio_flags & IORESOURCE_MEM)) {
-               printk (KERN_ERR PFX "%s: region #1 not an MMIO resource, aborting\n", pdev->slot_name);
+               printk (KERN_ERR PFX "%s: region #1 not an MMIO resource, aborting\n", pci_name(pdev));
                rc = -ENODEV;
                goto err_out;
        }
        if (mmio_len < RTL_MIN_IO_SIZE) {
-               printk (KERN_ERR PFX "%s: Invalid PCI mem region size(s), aborting\n", pdev->slot_name);
+               printk (KERN_ERR PFX "%s: Invalid PCI mem region size(s), aborting\n", pci_name(pdev));
                rc = -ENODEV;
                goto err_out;
        }
@@ -837,7 +837,7 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev,
        /* ioremap MMIO region */
        ioaddr = ioremap (mmio_start, mmio_len);
        if (ioaddr == NULL) {
-               printk (KERN_ERR PFX "%s: cannot remap MMIO, aborting\n", pdev->slot_name);
+               printk (KERN_ERR PFX "%s: cannot remap MMIO, aborting\n", pci_name(pdev));
                rc = -EIO;
                goto err_out;
        }
@@ -852,7 +852,7 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev,
        /* check for missing/broken hardware */
        if (RTL_R32 (TxConfig) == 0xFFFFFFFF) {
                printk (KERN_ERR PFX "%s: Chip not responding, ignoring board\n",
-                       pdev->slot_name);
+                       pci_name(pdev));
                rc = -EIO;
                goto err_out;
        }
@@ -867,8 +867,8 @@ static int __devinit rtl8139_init_board (struct pci_dev *pdev,
 
        /* if unknown chip, assume array element #0, original RTL-8139 in this case */
        printk (KERN_DEBUG PFX "%s: unknown chip version, assuming RTL-8139\n",
-               pdev->slot_name);
-       printk (KERN_DEBUG PFX "%s: TxConfig = 0x%lx\n", pdev->slot_name, RTL_R32 (TxConfig));
+               pci_name(pdev));
+       printk (KERN_DEBUG PFX "%s: TxConfig = 0x%lx\n", pci_name(pdev), RTL_R32 (TxConfig));
        tp->chipset = 0;
 
 match:
@@ -943,7 +943,7 @@ static int __devinit rtl8139_init_one (struct pci_dev *pdev,
        if (pdev->vendor == PCI_VENDOR_ID_REALTEK &&
            pdev->device == PCI_DEVICE_ID_REALTEK_8139 && pci_rev >= 0x20) {
                printk(KERN_INFO PFX "pci dev %s (id %04x:%04x rev %02x) is an enhanced 8139C+ chip\n",
-                      pdev->slot_name, pdev->vendor, pdev->device, pci_rev);
+                      pci_name(pdev), pdev->vendor, pdev->device, pci_rev);
                printk(KERN_INFO PFX "Use the \"8139cp\" driver for improved performance and stability.\n");
        }
 
@@ -2260,7 +2260,7 @@ static int netdev_ethtool_ioctl (struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                strcpy (info.driver, DRV_NAME);
                strcpy (info.version, DRV_VERSION);
-               strcpy (info.bus_info, np->pci_dev->slot_name);
+               strcpy (info.bus_info, pci_name(np->pci_dev));
                info.regdump_len = np->regs_len;
                if (copy_to_user (useraddr, &info, sizeof (info)))
                        return -EFAULT;
index 94de53e43af2f9b5c4a707d0431ad081b13ac354..b0e56ba62b7815bafc3cd8102233dd0657b7747c 100644 (file)
@@ -3088,7 +3088,7 @@ static int ace_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
                         tigonFwReleaseFix);
                strncpy(info.version, version, sizeof(info.version) - 1);
                if (ap && ap->pdev)
-                       strcpy(info.bus_info, ap->pdev->slot_name);
+                       strcpy(info.bus_info, pci_name(ap->pdev));
                if (copy_to_user(ifr->ifr_data, &info, sizeof(info)))
                        return -EFAULT;
                return 0;
index 2a9e84f4a53ca64648130de899939669a3cd199a..48650bbc6337169b4ef0412709dc927309371b76 100755 (executable)
@@ -1405,7 +1405,7 @@ static int amd8111e_ethtool_ioctl(struct net_device* dev, void* useraddr)
                strcpy (info.version, MODULE_VERSION);
                memset(&info.fw_version, 0, sizeof(info.fw_version));
                sprintf(info.fw_version,"%u",chip_version);
-               strcpy (info.bus_info, pci_dev->slot_name);
+               strcpy (info.bus_info, pci_name(pci_dev));
                info.eedump_len = 0;
                info.regdump_len = AMD8111E_REG_DUMP_LEN;
                if (copy_to_user (useraddr, &info, sizeof(info)))
index d073919ea55159acd9560d1b5f7d0f4f64de4f90..308c8d567edb95244899f47abbb261ba78a1dcf4 100644 (file)
@@ -1393,7 +1393,7 @@ static int b44_ethtool_ioctl (struct net_device *dev, void *useraddr)
                strcpy (info.driver, DRV_MODULE_NAME);
                strcpy (info.version, DRV_MODULE_VERSION);
                memset(&info.fw_version, 0, sizeof(info.fw_version));
-               strcpy (info.bus_info, pci_dev->slot_name);
+               strcpy (info.bus_info, pci_name(pci_dev));
                info.eedump_len = 0;
                info.regdump_len = 0;
                if (copy_to_user (useraddr, &info, sizeof (info)))
index 1f8fbda3b21ba23c0a7fcfc0a0a6e931fd952317..f6d0cb277f00ef19aa7fff83b8a38ad3b173d67d 100644 (file)
@@ -1201,7 +1201,7 @@ rio_ethtool_ioctl (struct net_device *dev, void *useraddr)
                        struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                        strcpy(info.driver, "DL2K");
                        strcpy(info.version, DRV_VERSION);
-                       strcpy(info.bus_info, np->pdev->slot_name);
+                       strcpy(info.bus_info, pci_name(np->pdev));
                        memset(&info.fw_version, 0, sizeof(info.fw_version));
                        if (copy_to_user(useraddr, &info, sizeof(info)))
                                return -EFAULT;
index 0e06cd37aa9e16586c7072f959b30bfb878ef72d..cc5d2bf3320095d654fca4702e8895857e5b1d3f 100644 (file)
@@ -3592,7 +3592,7 @@ e100_ethtool_get_drvinfo(struct net_device *dev, struct ifreq *ifr)
        strncpy(info.version, e100_driver_version, sizeof (info.version) - 1);
        strncpy(info.fw_version, "N/A",
                sizeof (info.fw_version) - 1);
-       strncpy(info.bus_info, bdp->pdev->slot_name,
+       strncpy(info.bus_info, pci_name(bdp->pdev),
                sizeof (info.bus_info) - 1);
        info.n_stats = E100_STATS_LEN;
        info.regdump_len  = E100_REGS_LEN * sizeof(u32);
index ebd061afc2faa1d2f2462988fdd222f0252c9c42..3a857b30d3f3caea6950aef75a94f6e0afa619c2 100644 (file)
@@ -197,7 +197,7 @@ e1000_ethtool_gdrvinfo(struct e1000_adapter *adapter,
        strncpy(drvinfo->driver,  e1000_driver_name, 32);
        strncpy(drvinfo->version, e1000_driver_version, 32);
        strncpy(drvinfo->fw_version, "N/A", 32);
-       strncpy(drvinfo->bus_info, adapter->pdev->slot_name, 32);
+       strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32);
        drvinfo->n_stats = E1000_STATS_LEN;
        drvinfo->testinfo_len = E1000_TEST_LEN;
 #define E1000_REGS_LEN 32
index 829f612257e92bd41aabefbf3305521938a34174..96d6f958a4ea2016627c018f8211ef45ee2bd9db 100644 (file)
@@ -2007,7 +2007,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                strncpy(info.driver, "eepro100", sizeof(info.driver)-1);
                strncpy(info.version, version, sizeof(info.version)-1);
                if (sp && sp->pdev)
-                       strcpy(info.bus_info, sp->pdev->slot_name);
+                       strcpy(info.bus_info, pci_name(sp->pdev));
                if (copy_to_user(useraddr, &info, sizeof(info)))
                        return -EFAULT;
                return 0;
index fbd8b4c2c1792b17d6de2ef08c026c11ffc09385..82be5cac83a2ea2e2f7bd8c146e54a48bf618456 100644 (file)
@@ -479,7 +479,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
 
        if (debug > 2) {
                printk(KERN_DEBUG DRV_NAME "(%s): EEPROM contents\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                for (i = 0; i < 64; i++)
                        printk(" %4.4x%s", read_eeprom(ioaddr, i),
                                   i % 16 == 15 ? "\n" : "");
@@ -500,7 +500,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
                                ep->phys[phy_idx++] = phy;
                                printk(KERN_INFO DRV_NAME "(%s): MII transceiver #%d control "
                                           "%4.4x status %4.4x.\n",
-                                          pdev->slot_name, phy, mdio_read(dev, phy, 0), mii_status);
+                                          pci_name(pdev), phy, mdio_read(dev, phy, 0), mii_status);
                        }
                }
                ep->mii_phy_cnt = phy_idx;
@@ -509,10 +509,10 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
                        ep->mii.advertising = mdio_read(dev, phy, MII_ADVERTISE);
                        printk(KERN_INFO DRV_NAME "(%s): Autonegotiation advertising %4.4x link "
                                   "partner %4.4x.\n",
-                                  pdev->slot_name, ep->mii.advertising, mdio_read(dev, phy, 5));
+                                  pci_name(pdev), ep->mii.advertising, mdio_read(dev, phy, 5));
                } else if ( ! (ep->chip_flags & NO_MII)) {
                        printk(KERN_WARNING DRV_NAME "(%s): ***WARNING***: No MII transceiver found!\n",
-                              pdev->slot_name);
+                              pci_name(pdev));
                        /* Use the known PHY address of the EPII. */
                        ep->phys[0] = 3;
                }
@@ -528,7 +528,7 @@ static int __devinit epic_init_one (struct pci_dev *pdev,
        if (duplex) {
                ep->mii.force_media = ep->mii.full_duplex = 1;
                printk(KERN_INFO DRV_NAME "(%s):  Forced full duplex operation requested.\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
        }
        dev->if_port = ep->default_port = option;
 
@@ -1374,7 +1374,7 @@ static int netdev_ethtool_ioctl (struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                strcpy (info.driver, DRV_NAME);
                strcpy (info.version, DRV_VERSION);
-               strcpy (info.bus_info, np->pci_dev->slot_name);
+               strcpy (info.bus_info, pci_name(np->pci_dev));
                if (copy_to_user (useraddr, &info, sizeof (info)))
                        return -EFAULT;
                return 0;
index 62ec9cd525d43ada0bf1978d526a89763e436d98..ba195cdfb890b48b72274a661d7639e49bb1c86f 100644 (file)
@@ -1773,7 +1773,7 @@ static int netdev_ethtool_ioctl (struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                strcpy (info.driver, DRV_NAME);
                strcpy (info.version, DRV_VERSION);
-               strcpy (info.bus_info, np->pci_dev->slot_name);
+               strcpy (info.bus_info, pci_name(np->pci_dev));
                if (copy_to_user (useraddr, &info, sizeof (info)))
                        return -EFAULT;
                return 0;
index 39cf2e786cffbfda7a2da7b835de175a6d56a89b..a4ad424921b31f5ea02d652c9ae2a8d308fe2570 100644 (file)
@@ -1872,7 +1872,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = {ETHTOOL_GDRVINFO};
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
-               strcpy(info.bus_info, np->pci_dev->slot_name);
+               strcpy(info.bus_info, pci_name(np->pci_dev));
                if (copy_to_user(useraddr, &info, sizeof(info)))
                        return -EFAULT;
                return 0;
index 27d466d6f8c95557c602b00444f912e8cabf49d8..4cdcc1655178ca13acaa97cd296bc6ca3ecbc491 100644 (file)
@@ -1453,7 +1453,7 @@ static int __devinit ioc3_probe(struct pci_dev *pdev,
        ioc3 = (struct ioc3 *) ioremap(ioc3_base, ioc3_size);
        if (!ioc3) {
                printk(KERN_CRIT "ioc3eth(%s): ioremap failed, goodbye.\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -ENOMEM;
                goto out_res;
        }
@@ -1473,7 +1473,7 @@ static int __devinit ioc3_probe(struct pci_dev *pdev,
 
        if (ip->phy == -1) {
                printk(KERN_CRIT "ioc3-eth(%s): Didn't find a PHY, goodbye.\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -ENODEV;
                goto out_stop;
        }
index f956a85e0d9d855c9310ada0af507f59f4cc9185..78469e91e0fe014179136cc566845dee6b46eaaf 100644 (file)
@@ -119,7 +119,7 @@ ixgb_ethtool_gdrvinfo(struct ixgb_adapter *adapter,
        strncpy(drvinfo->driver, ixgb_driver_name, 32);
        strncpy(drvinfo->version, ixgb_driver_version, 32);
        strncpy(drvinfo->fw_version, "", 32);
-       strncpy(drvinfo->bus_info, adapter->pdev->slot_name, 32);
+       strncpy(drvinfo->bus_info, pci_name(adapter->pdev), 32);
 #ifdef ETHTOOL_GREGS
        drvinfo->regdump_len = IXGB_REG_DUMP_LEN;
 #endif                         /* ETHTOOL_GREGS */
index 46674b9c107950df12c77b26c1718362375a5c34..b067be1961287f0a72cec2e4d4cd9dc11ba64313 100644 (file)
@@ -1967,7 +1967,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                strncpy(info.driver, DRV_NAME, ETHTOOL_BUSINFO_LEN);
                strncpy(info.version, DRV_VERSION, ETHTOOL_BUSINFO_LEN);
                info.fw_version[0] = '\0';
-               strncpy(info.bus_info, np->pci_dev->slot_name,
+               strncpy(info.bus_info, pci_name(np->pci_dev),
                        ETHTOOL_BUSINFO_LEN);
                info.eedump_len = NATSEMI_EEPROM_SIZE;
                info.regdump_len = NATSEMI_REGS_SIZE;
index 7aba911bf73bf50cd9861f5df4739151379e132e..94e8d881e9301bb0848eb901052cbf59ae6ff8c5 100644 (file)
@@ -334,7 +334,7 @@ static int __devinit ne2k_pci_init_one (struct pci_dev *pdev,
        /* Allocate dev->priv and fill in 8390 specific dev fields. */
        if (ethdev_init(dev)) {
                printk (KERN_ERR "ne2kpci(%s): unable to get memory for dev->priv.\n",
-                       pdev->slot_name);
+                       pci_name(pdev));
                goto err_out_free_netdev;
        }
 
@@ -605,7 +605,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = {ETHTOOL_GDRVINFO};
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
-               strcpy(info.bus_info, pci_dev->slot_name);
+               strcpy(info.bus_info, pci_name(pci_dev));
                if (copy_to_user(useraddr, &info, sizeof(info)))
                        return -EFAULT;
                return 0;
index 1ce70ab5ab42cdd061f2a34d1d0fe96cce5a50cc..0ceb548cd5a372a74c0242e23ac2f685e5db8f8e 100644 (file)
@@ -1186,7 +1186,7 @@ static int ns83820_ethtool_ioctl (struct ns83820 *dev, void *useraddr)
                        struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                        strcpy(info.driver, "ns83820");
                        strcpy(info.version, VERSION);
-                       strcpy(info.bus_info, dev->pci_dev->slot_name);
+                       strcpy(info.bus_info, pci_name(dev->pci_dev));
                        if (copy_to_user(useraddr, &info, sizeof (info)))
                                return -EFAULT;
                        return 0;
index 61f4987ef609de6c923ee5ed53767f7e4ac54d2f..a2454b53633c642aa33d4edc49ed1daee3100e11 100644 (file)
@@ -704,8 +704,8 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev,
 
        /* if unknown chip, assume array element #0, original RTL-8139 in this case */
        printk (KERN_DEBUG PFX "PCI device %s: unknown chip version, assuming RTL-8139\n",
-               pdev->slot_name);
-       printk (KERN_DEBUG PFX "PCI device %s: TxConfig = 0x%lx\n", pdev->slot_name, NETDRV_R32 (TxConfig));
+               pci_name(pdev));
+       printk (KERN_DEBUG PFX "PCI device %s: TxConfig = 0x%lx\n", pci_name(pdev), NETDRV_R32 (TxConfig));
        tp->chipset = 0;
 
 match:
index 08d9ffb99ede38c5a88f965a8f0ee6b68e13e1d5..ebc368a79d832c8179464d9cdf0cdf8b62c7dc87 100644 (file)
@@ -1588,7 +1588,7 @@ static int pcnet32_ethtool_ioctl (struct net_device *dev, void *useraddr)
                strcpy (info.driver, DRV_NAME);
                strcpy (info.version, DRV_VERSION);
                if (lp->pci_dev)
-                       strcpy (info.bus_info, lp->pci_dev->slot_name);
+                       strcpy (info.bus_info, pci_name(lp->pci_dev));
                else
                        sprintf(info.bus_info, "VLB 0x%lx", dev->base_addr);
                if (copy_to_user (useraddr, &info, sizeof (info)))
index 1bfd6a3dfc25d66faede5c08fbf04aeb1ea8a678..2f37835c43a13cc9702528fccdd34e33353e02ac 100644 (file)
@@ -437,9 +437,9 @@ rtl8169_init_board(struct pci_dev *pdev, struct net_device **dev_out,
        //if unknown chip, assume array element #0, original RTL-8169 in this case
        printk(KERN_DEBUG PFX
               "PCI device %s: unknown chip version, assuming RTL-8169\n",
-              pdev->slot_name);
+              pci_name(pdev));
        printk(KERN_DEBUG PFX "PCI device %s: TxConfig = 0x%lx\n",
-              pdev->slot_name, (unsigned long) RTL_R32(TxConfig));
+              pci_name(pdev), (unsigned long) RTL_R32(TxConfig));
        tp->chipset = 0;
 
 match:
index 6b5f035025fd9da45413f39124d2f9aca1ae478a..80976c9742efdcb6a5944f13df5bc41e97f2626b 100644 (file)
@@ -1874,7 +1874,7 @@ static int netdev_ethtool_ioctl (struct net_device *net_dev, void *useraddr)
                        struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                        strcpy (info.driver, SIS900_MODULE_NAME);
                        strcpy (info.version, SIS900_DRV_VERSION);
-                       strcpy (info.bus_info, sis_priv->pci_dev->slot_name);
+                       strcpy (info.bus_info, pci_name(sis_priv->pci_dev));
                        if (copy_to_user (useraddr, &info, sizeof (info)))
                                return -EFAULT;
                        return 0;
index 5ac71d10818bc8a9b0120621aa3ba27d05cb571c..a0651801124e63fb2b2c75e7bada010b6addc8b5 100644 (file)
@@ -323,7 +323,7 @@ static int full_duplex[MAX_UNITS] = {0, };
 #define netif_start_if(dev)
 #define netif_stop_if(dev)
 
-#define PCI_SLOT_NAME(pci_dev) (pci_dev)->slot_name
+#define PCI_SLOT_NAME(pci_dev) pci_name(pci_dev)
 
 #endif /* LINUX_VERSION_CODE > 0x20300 */
 
index 31c33ebe2f553470a9ce44e8df5ef7e6393d9dc2..b3a95683f83307870353b662005daa8bfac2a824 100644 (file)
@@ -1584,7 +1584,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                        struct ethtool_drvinfo info = {ETHTOOL_GDRVINFO};
                        strcpy(info.driver, DRV_NAME);
                        strcpy(info.version, DRV_VERSION);
-                       strcpy(info.bus_info, np->pci_dev->slot_name);
+                       strcpy(info.bus_info, pci_name(np->pci_dev));
                        memset(&info.fw_version, 0, sizeof(info.fw_version));
                        if (copy_to_user(useraddr, &info, sizeof(info)))
                                return -EFAULT;
index 38387b9d8510c54e3b54c0b50084aae21ee5c0ad..055929dbb6b51f9a96e44be64d2391516ccf445c 100644 (file)
@@ -2338,7 +2338,7 @@ static int gem_ethtool_ioctl(struct net_device *dev, void *ep_user)
                strncpy(info.driver, DRV_NAME, ETHTOOL_BUSINFO_LEN);
                strncpy(info.version, DRV_VERSION, ETHTOOL_BUSINFO_LEN);
                info.fw_version[0] = '\0';
-               strncpy(info.bus_info, gp->pdev->slot_name, ETHTOOL_BUSINFO_LEN);
+               strncpy(info.bus_info, pci_name(gp->pdev), ETHTOOL_BUSINFO_LEN);
                info.regdump_len = 0; /*SUNGEM_NREGS;*/
 
                if (copy_to_user(ep_user, &info, sizeof(info)))
index 37d05c84c0a935bd5822ae04f3e3a71443a34510..a1134ed200602cb8b73c1a2585609a134a54974c 100644 (file)
@@ -5127,7 +5127,7 @@ static int tg3_ethtool_ioctl (struct net_device *dev, void *useraddr)
                strcpy (info.driver, DRV_MODULE_NAME);
                strcpy (info.version, DRV_MODULE_VERSION);
                memset(&info.fw_version, 0, sizeof(info.fw_version));
-               strcpy (info.bus_info, pci_dev->slot_name);
+               strcpy (info.bus_info, pci_name(pci_dev));
                info.eedump_len = 0;
                info.regdump_len = TG3_REGDUMP_LEN;
                if (copy_to_user (useraddr, &info, sizeof (info)))
@@ -6096,7 +6096,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
        err = tg3_set_power_state(tp, 0);
        if (err) {
                printk(KERN_ERR PFX "(%s) transition to D0 failed\n",
-                      tp->pdev->slot_name);
+                      pci_name(tp->pdev));
                return err;
        }
 
@@ -6207,7 +6207,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
        err = tg3_phy_probe(tp);
        if (err) {
                printk(KERN_ERR PFX "(%s) phy probe failed, err %d\n",
-                      tp->pdev->slot_name, err);
+                      pci_name(tp->pdev), err);
                /* ... but do not return immediately ... */
        }
 
index 52da8547ab7cfabd2d3c4f6fdae4a00910e4a645..7cf949b57b54941c2b97861ef705c22afb264516 100644 (file)
@@ -1600,7 +1600,7 @@ static int de_ethtool_ioctl (struct de_private *de, void *useraddr)
                struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                strcpy (info.driver, DRV_NAME);
                strcpy (info.version, DRV_VERSION);
-               strcpy (info.bus_info, de->pdev->slot_name);
+               strcpy (info.bus_info, pci_name(de->pdev));
                info.eedump_len = DE_EEPROM_SIZE;
                info.regdump_len = DE_REGS_SIZE;
                if (copy_to_user (useraddr, &info, sizeof (info)))
@@ -2048,7 +2048,7 @@ static int __init de_init_one (struct pci_dev *pdev,
        if (pdev->irq < 2) {
                rc = -EIO;
                printk(KERN_ERR PFX "invalid irq (%d) for pci dev %s\n",
-                      pdev->irq, pdev->slot_name);
+                      pdev->irq, pci_name(pdev));
                goto err_out_res;
        }
 
@@ -2057,13 +2057,13 @@ static int __init de_init_one (struct pci_dev *pdev,
        if (!pciaddr) {
                rc = -EIO;
                printk(KERN_ERR PFX "no MMIO resource for pci dev %s\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                goto err_out_res;
        }
        if (pci_resource_len(pdev, 1) < DE_REGS_SIZE) {
                rc = -EIO;
                printk(KERN_ERR PFX "MMIO resource (%lx) too small on pci dev %s\n",
-                      pci_resource_len(pdev, 1), pdev->slot_name);
+                      pci_resource_len(pdev, 1), pci_name(pdev));
                goto err_out_res;
        }
 
@@ -2072,7 +2072,7 @@ static int __init de_init_one (struct pci_dev *pdev,
        if (!regs) {
                rc = -EIO;
                printk(KERN_ERR PFX "Cannot map PCI MMIO (%lx@%lx) on pci dev %s\n",
-                      pci_resource_len(pdev, 1), pciaddr, pdev->slot_name);
+                      pci_resource_len(pdev, 1), pciaddr, pci_name(pdev));
                goto err_out_res;
        }
        dev->base_addr = (unsigned long) regs;
@@ -2084,7 +2084,7 @@ static int __init de_init_one (struct pci_dev *pdev,
        rc = de_reset_mac(de);
        if (rc) {
                printk(KERN_ERR PFX "Cannot reset MAC, pci dev %s\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                goto err_out_iomap;
        }
 
index 66c9cc8cbea9300173a929b8990965d5c14b0e85..eb43f60594e8a8c6d8dd0cbbbbd4dd55ac5a2e0f 100644 (file)
@@ -442,7 +442,7 @@ static int __devinit dmfe_init_one (struct pci_dev *pdev,
        printk(KERN_INFO "%s: Davicom DM%04lx at pci%s,",
                dev->name,
                ent->driver_data >> 16,
-               pdev->slot_name);
+               pci_name(pdev));
        for (i = 0; i < 6; i++)
                printk("%c%02x", i ? ':' : ' ', dev->dev_addr[i]);
        printk(", irq %d.\n", dev->irq);
@@ -1019,7 +1019,7 @@ static int dmfe_ethtool_ioctl(struct net_device *dev, void *useraddr)
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
                if (db->pdev)
-                       strcpy(info.bus_info, db->pdev->slot_name);
+                       strcpy(info.bus_info, pci_name(db->pdev));
                else
                        sprintf(info.bus_info, "EISA 0x%lx %d",
                                dev->base_addr, dev->irq);
index 73c141af33345d15cc4864cd51a61e1e757c9530..df2cd80a1f4fef5c01882a33acfad24a959b1763 100644 (file)
@@ -858,7 +858,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = {ETHTOOL_GDRVINFO};
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
-               strcpy(info.bus_info, np->pdev->slot_name);
+               strcpy(info.bus_info, pci_name(np->pdev));
                if (copy_to_user(useraddr, &info, sizeof(info)))
                        return -EFAULT;
                return 0;
@@ -1172,7 +1172,7 @@ static void __devinit tulip_mwi_config (struct pci_dev *pdev,
        u32 csr0;
 
        if (tulip_debug > 3)
-               printk(KERN_DEBUG "%s: tulip_mwi_config()\n", pdev->slot_name);
+               printk(KERN_DEBUG "%s: tulip_mwi_config()\n", pci_name(pdev));
 
        tp->csr0 = csr0 = 0;
 
@@ -1240,7 +1240,7 @@ out:
        tp->csr0 = csr0;
        if (tulip_debug > 2)
                printk(KERN_DEBUG "%s: MWI config cacheline=%d, csr0=%08x\n",
-                      pdev->slot_name, cache, csr0);
+                      pci_name(pdev), cache, csr0);
 }
 #endif
 
@@ -1365,7 +1365,7 @@ static int __devinit tulip_init_one (struct pci_dev *pdev,
        SET_NETDEV_DEV(dev, &pdev->dev);
        if (pci_resource_len (pdev, 0) < tulip_tbl[chip_idx].io_size) {
                printk (KERN_ERR PFX "%s: I/O region (0x%lx@0x%lx) too small, "
-                       "aborting\n", pdev->slot_name,
+                       "aborting\n", pci_name(pdev),
                        pci_resource_len (pdev, 0),
                        pci_resource_start (pdev, 0));
                goto err_out_free_netdev;
index 3fb3976248051296ba90d9604f891a6dd1052a09..cfd15c0653c3fd4931469c9fc592d3be7fc03042 100644 (file)
@@ -416,7 +416,7 @@ static int __devinit w840_probe1 (struct pci_dev *pdev,
 
        if (pci_set_dma_mask(pdev,0xFFFFffff)) {
                printk(KERN_WARNING "Winbond-840: Device %s disabled due to DMA limitations.\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                return -EIO;
        }
        dev = alloc_etherdev(sizeof(*np));
@@ -1465,7 +1465,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = {ETHTOOL_GDRVINFO};
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
-               strcpy(info.bus_info, np->pci_dev->slot_name);
+               strcpy(info.bus_info, pci_name(np->pci_dev));
                if (copy_to_user(useraddr, &info, sizeof(info)))
                        return -EFAULT;
                return 0;
index 61df91319aa549d932fe825f7d2284442b72d62f..b1401e78bb1169042ebfb6e2704fe85ffc1415c5 100644 (file)
@@ -544,7 +544,7 @@ static int __devinit xircom_init_one(struct pci_dev *pdev, const struct pci_devi
                printk(version);
 #endif
 
-       //printk(KERN_INFO "xircom_init_one(%s)\n", pdev->slot_name);
+       //printk(KERN_INFO "xircom_init_one(%s)\n", pci_name(pdev));
 
        board_idx++;
 
@@ -1448,7 +1448,7 @@ static int xircom_ethtool_ioctl(struct net_device *dev, void *useraddr)
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
                *info.fw_version = 0;
-               strcpy(info.bus_info, tp->pdev->slot_name);
+               strcpy(info.bus_info, pci_name(tp->pdev));
                if (copy_to_user(useraddr, &info, sizeof(info)))
                       return -EFAULT;
                return 0;
index 82355e9e6a7d1cab90179819e454a80eaba47d81..515235e410d271cedfbfe5190ae5429b4c0b9804 100644 (file)
@@ -1049,7 +1049,7 @@ typhoon_ethtool_gdrvinfo(struct typhoon *tp, struct ethtool_drvinfo *info)
 
        strcpy(info->driver, DRV_MODULE_NAME);
        strcpy(info->version, DRV_MODULE_VERSION);
-       strcpy(info->bus_info, pci_dev->slot_name);
+       strcpy(info->bus_info, pci_name(pci_dev));
 }
 
 static inline void
@@ -2261,7 +2261,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        dev = alloc_etherdev(sizeof(*tp));
        if(dev == NULL) {
                printk(ERR_PFX "%s: unable to alloc new net device\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -ENOMEM;
                goto error_out;
        }
@@ -2271,7 +2271,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        err = pci_enable_device(pdev);
        if(err < 0) {
                printk(ERR_PFX "%s: unable to enable device\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                goto error_out_dev;
        }
 
@@ -2284,7 +2284,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        err = pci_set_dma_mask(pdev, 0xffffffffULL);
        if(err < 0) {
                printk(ERR_PFX "%s: No usable DMA configuration\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                goto error_out_dev;
        }
 
@@ -2293,13 +2293,13 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        if(!(pci_resource_flags(pdev, 1) & IORESOURCE_MEM)) {
                printk(ERR_PFX
                       "%s: region #1 not a PCI MMIO resource, aborting\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -ENODEV;
                goto error_out_dev;
        }
        if(pci_resource_len(pdev, 1) < 128) {
                printk(ERR_PFX "%s: Invalid PCI MMIO region size, aborting\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -ENODEV;
                goto error_out_dev;
        }
@@ -2307,7 +2307,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        err = pci_request_regions(pdev, "typhoon");
        if(err < 0) {
                printk(ERR_PFX "%s: could not request regions\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                goto error_out_dev;
        }
 
@@ -2320,7 +2320,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        ioaddr = (unsigned long) ioremap(ioaddr, 128);
        if(!ioaddr) {
                printk(ERR_PFX "%s: cannot remap MMIO, aborting\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -EIO;
                goto error_out_regions;
        }
@@ -2332,7 +2332,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
                                      &shared_dma);
        if(!shared) {
                printk(ERR_PFX "%s: could not allocate DMA memory\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -ENOMEM;
                goto error_out_remap;
        }
@@ -2358,7 +2358,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
         * 5) Put the card to sleep.
         */
        if(typhoon_reset(ioaddr, WaitSleep) < 0) {
-               printk(ERR_PFX "%s: could not reset 3XP\n", pdev->slot_name);
+               printk(ERR_PFX "%s: could not reset 3XP\n", pci_name(pdev));
                err = -EIO;
                goto error_out_dma;
        }
@@ -2367,14 +2367,14 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
         * use some common routines to initialize the card. So that those
         * routines print the right name, we keep our oun pointer to the name
         */
-       tp->name = pdev->slot_name;
+       tp->name = pci_name(pdev);
 
        typhoon_init_interface(tp);
        typhoon_init_rings(tp);
 
        if(typhoon_boot_3XP(tp, TYPHOON_STATUS_WAITING_FOR_HOST) < 0) {
                printk(ERR_PFX "%s: cannot boot 3XP sleep image\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -EIO;
                goto error_out_reset;
        }
@@ -2382,7 +2382,7 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
        INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_MAC_ADDRESS);
        if(typhoon_issue_command(tp, 1, &xp_cmd, 1, &xp_resp) < 0) {
                printk(ERR_PFX "%s: cannot read MAC address\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -EIO;
                goto error_out_reset;
        }
@@ -2392,13 +2392,13 @@ typhoon_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 
        if(!is_valid_ether_addr(dev->dev_addr)) {
                printk(ERR_PFX "%s: Could not obtain valid ethernet address, "
-                      "aborting\n", pdev->slot_name);
+                      "aborting\n", pci_name(pdev));
                goto error_out_reset;
        }
 
        if(typhoon_sleep(tp, 3, 0) < 0) {
                printk(ERR_PFX "%s: cannot put adapter to sleep\n",
-                      pdev->slot_name);
+                      pci_name(pdev));
                err = -EIO;
                goto error_out_reset;
        }
index 9a08a3fa1d3c6d63e12b8d3379e559348854ebec..069632e35583ad4630670a0fdea06d468339a50a 100644 (file)
@@ -682,7 +682,7 @@ static int __devinit via_rhine_init_one (struct pci_dev *pdev,
        ioaddr = (long) ioremap (memaddr, io_size);
        if (!ioaddr) {
                printk (KERN_ERR "ioremap failed for device %s, region 0x%X @ 0x%lX\n",
-                               pdev->slot_name, io_size, memaddr);
+                               pci_name(pdev), io_size, memaddr);
                goto err_out_free_res;
        }
 
@@ -1754,7 +1754,7 @@ static int netdev_ethtool_ioctl (struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = { ETHTOOL_GDRVINFO };
                strcpy (info.driver, DRV_NAME);
                strcpy (info.version, DRV_VERSION);
-               strcpy (info.bus_info, np->pdev->slot_name);
+               strcpy (info.bus_info, pci_name(np->pdev));
                if (copy_to_user (useraddr, &info, sizeof (info)))
                        return -EFAULT;
                return 0;
index c983e19fb43553a117947f7beb2e6ceedb873cef..60e8eff72f7f616d1d4f9586866e13610e8ec14c 100644 (file)
@@ -223,7 +223,7 @@ static int orinoco_pci_init_one(struct pci_dev *pdev,
 
        printk(KERN_DEBUG
               "Detected Orinoco/Prism2 PCI device at %s, mem:0x%lX to 0x%lX -> 0x%p, irq:%d\n",
-              pdev->slot_name, dev->mem_start, dev->mem_end, pci_ioaddr, pdev->irq);
+              pci_name(pdev), dev->mem_start, dev->mem_end, pci_ioaddr, pdev->irq);
 
        hermes_struct_init(&priv->hw, dev->base_addr,
                           HERMES_MEM, HERMES_32BIT_REGSPACING);
index e07cd171389c9882baaf5e9ed931650708157a53..900847268da4ebc416250cad668ef791f369a313 100644 (file)
@@ -236,7 +236,7 @@ static int orinoco_plx_init_one(struct pci_dev *pdev,
 
        printk(KERN_DEBUG
               "Detected Orinoco/Prism2 PLX device at %s irq:%d, io addr:0x%lx\n",
-              pdev->slot_name, pdev->irq, pccard_ioaddr);
+              pci_name(pdev), pdev->irq, pccard_ioaddr);
 
        hermes_struct_init(&(priv->hw), dev->base_addr,
                        HERMES_IO, HERMES_16BIT_REGSPACING);
index 81be58f3a2be4d7e36e4619abd018b0b91defcac..2a1da0b071ffd9f9e254c000e9f561eef88faaca 100644 (file)
@@ -128,7 +128,7 @@ static int orinoco_tmd_init_one(struct pci_dev *pdev,
 
        printk(KERN_DEBUG
               "Detected Orinoco/Prism2 TMD device at %s irq:%d, io addr:0x%lx\n",
-              pdev->slot_name, pdev->irq, pccard_ioaddr);
+              pci_name(pdev), pdev->irq, pccard_ioaddr);
 
        hermes_struct_init(&(priv->hw), dev->base_addr,
                        HERMES_IO, HERMES_16BIT_REGSPACING);
index 53a1113264ffe0ebf38eb911ef5c2e756f6fd6c6..83fb2e0873b951b8ac5e648defc7c61c419fe622 100644 (file)
@@ -1413,7 +1413,7 @@ static int netdev_ethtool_ioctl(struct net_device *dev, void *useraddr)
                struct ethtool_drvinfo info = {ETHTOOL_GDRVINFO};
                strcpy(info.driver, DRV_NAME);
                strcpy(info.version, DRV_VERSION);
-               strcpy(info.bus_info, np->pci_dev->slot_name);
+               strcpy(info.bus_info, pci_name(np->pci_dev));
                if (copy_to_user(useraddr, &info, sizeof(info)))
                        return -EFAULT;
                return 0;
index 877c28121ad8300b453c9eb185d51f0d6384d144..719a9b238443239211f6c9a19ccae5c2b0e2b69b 100644 (file)
@@ -670,7 +670,7 @@ lba_claim_dev_resources(struct pci_dev *dev)
                if (dev->resource[i].flags & srch_flags) {
                        pci_claim_resource(dev, i);
                        DBG("   claimed %s %d [%lx,%lx]/%x\n",
-                               dev->slot_name, i,
+                               pci_name(dev), i,
                                dev->resource[i].start,
                                dev->resource[i].end,
                                (int) dev->resource[i].flags
index be069d32c7a346180285ba7c66a27acb487f80ce..aa5d0e0794c4c843ff9a2b41819b5f15c8b07cdd 100644 (file)
@@ -160,7 +160,7 @@ superio_init(struct superio_device *sio)
        }
 
        printk (KERN_INFO "SuperIO: Found NS87560 Legacy I/O device at %s (IRQ %i) \n",
-               pdev->slot_name,sio->iosapic_irq);
+               pci_name(pdev),sio->iosapic_irq);
 
        /* Find our I/O devices */
        pci_read_config_word (pdev, SIO_SP1BAR, &sio->sp1_base);
@@ -346,7 +346,7 @@ int superio_fixup_irq(struct pci_dev *pcidev)
                return -1;
        }
        printk("superio_fixup_irq(%s) ven 0x%x dev 0x%x from %p\n",
-               pcidev->slot_name,
+               pci_name(pcidev),
                pcidev->vendor, pcidev->device,
                __builtin_return_address(0));
 #endif
@@ -487,7 +487,7 @@ static int __devinit superio_probe(struct pci_dev *dev, const struct pci_device_
 {
 #ifdef DEBUG_INIT
        printk("superio_probe(%s) ven 0x%x dev 0x%x sv 0x%x sd 0x%x class 0x%x\n",
-               dev->slot_name,
+               pci_name(dev),
                dev->vendor, dev->device,
                dev->subsystem_vendor, dev->subsystem_device,
                dev->class);
index f43f5ab3fd3d0291a1c238a9cacdd26c6a92f471..3bddc0cf7b8a5dd69d2ab4b7840cb8bba16993a7 100644 (file)
@@ -657,7 +657,7 @@ static void yenta_allocate_res(struct yenta_socket *socket, int nr, unsigned typ
                if (request_resource(root, res) == 0)
                        return;
                printk(KERN_INFO "yenta %s: Preassigned resource %d busy, reconfiguring...\n",
-                               socket->dev->slot_name, nr);
+                               pci_name(socket->dev), nr);
                res->start = res->end = 0;
        }
 
@@ -697,7 +697,7 @@ static void yenta_allocate_res(struct yenta_socket *socket, int nr, unsigned typ
                align = size;
        } while (size >= min);
        printk(KERN_INFO "yenta %s: no resource of type %x available, trying to continue...\n",
-                       socket->dev->slot_name, type);
+                       pci_name(socket->dev), type);
        res->start = res->end = 0;
 }
 
index 0ad7adce9acf4cd951e2b99a9882e5bbd780a80b..47fe2c2786616dc86e1d90d86131632d053264e9 100644 (file)
       #define IPS_SCSI_SET_DEVICE(sh,ha)   scsi_set_pci_device(sh, (ha)->pcidev)
       #define IPS_PRINTK(level, pcidev, format, arg...)                 \
             printk(level "%s %s:" format , (pcidev)->driver->name ,     \
-            (pcidev)->slot_name , ## arg)
+            pci_name(pcidev) , ## arg)
    #else
       #define IPS_REGISTER_HOSTS(SHT)      (!ips_detect(SHT))
       #define IPS_UNREGISTER_HOSTS(SHT)
index c43a18dc6913b63174d82be2ebc24043c505f116..6b3dfedcd0319cab28745628026a03569ac1045d 100644 (file)
@@ -1977,7 +1977,7 @@ static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_i
        ret = nsp32_detect(pdev);
 
        nsp32_msg(KERN_INFO, "nsp32 irq: %i mmio: 0x%lx slot: %s model: %s",
-                 pdev->irq, data->MmioAddress, pdev->slot_name,
+                 pdev->irq, data->MmioAddress, pci_name(pdev),
                  nsp32_model[id->driver_data]);
 
        nsp32_dbg(NSP32_DEBUG_REGISTER, "exit");
index b1b788bd71cfce43e57cd7bd195e59c472e38e2b..dc90cc477844db528891100f8430a4e49f18591c 100644 (file)
@@ -103,7 +103,7 @@ static void moan_device(const char *str, struct pci_dev *dev)
               KERN_WARNING "message (0x%04x,0x%04x,0x%04x,0x%04x), the\n"
               KERN_WARNING "manufacturer and name of serial board or\n"
               KERN_WARNING "modem board to rmk+serial@arm.linux.org.uk.\n",
-              dev->slot_name, str, dev->vendor, dev->device,
+              pci_name(dev), str, dev->vendor, dev->device,
               dev->subsystem_vendor, dev->subsystem_device);
 }
 
index 823f61c10dabd96888160dc6c1e320feb5ef0317..f4f88d56c9b7561e185bdf2d7d0ccb2547a9897d 100644 (file)
@@ -1070,7 +1070,7 @@ static int matroxfb_ioctl(struct inode *inode, struct file *file,
                                memset(&r, 0, sizeof(r));
                                strcpy(r.driver, "matroxfb");
                                strcpy(r.card, "Matrox");
-                               sprintf(r.bus_info, "PCI:%s", ACCESS_FBINFO(pcidev)->slot_name);
+                               sprintf(r.bus_info, "PCI:%s", pci_name(ACCESS_FBINFO(pcidev)));
                                r.version = KERNEL_VERSION(1,0,0);
                                r.capabilities = V4L2_CAP_VIDEO_OUTPUT;
                                if (copy_to_user((void*)arg, &r, sizeof(r)))
index f82118e5a618f87a428242cc96517691c2cdce35..ba1a67a2960cb26cded00c3f5947efdb706b1234 100644 (file)
@@ -37,7 +37,7 @@ struct ethtool_drvinfo {
        char    version[32];    /* driver version string */
        char    fw_version[32]; /* firmware version string, if applicable */
        char    bus_info[ETHTOOL_BUSINFO_LEN];  /* Bus info for this IF. */
-                               /* For PCI devices, use pci_dev->slot_name. */
+                               /* For PCI devices, use pci_name(pci_dev). */
        char    reserved1[32];
        char    reserved2[16];
        u32     n_stats;        /* number of u64's from ETHTOOL_GSTATS */
index 3af70688af1c56e432e9d8c9ac36c6edd4f1efc1..0e39faea02907771746562c89dae5c93a1d4208a 100644 (file)
@@ -130,7 +130,7 @@ struct v4l2_capability
 {
        __u8    driver[16];     /* i.e. "bttv" */
        __u8    card[32];       /* i.e. "Hauppauge WinTV" */
-       __u8    bus_info[32];   /* "PCI:" + pci_dev->slot_name */
+       __u8    bus_info[32];   /* "PCI:" + pci_name(pci_dev) */
        __u32   version;        /* should use KERNEL_VERSION() */
        __u32   capabilities;   /* Device capabilities */
        __u32   reserved[4];