]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] pci: store PCI_INTERRUPT_PIN in pci_dev
authorKristen Accardi <kristen.c.accardi@intel.com>
Thu, 3 Nov 2005 00:24:32 +0000 (16:24 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:13 +0000 (12:13 -0800)
Store the value of the INTERRUPT_PIN in the pci_dev structure
so that it can be retrieved later.

Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/probe.c
include/linux/pci.h

index fce2cb2112d817823f1bd3cd1ffe17a003e420df..2f82e63323f3f3147c5a2fba65d372242e176018 100644 (file)
@@ -571,6 +571,7 @@ static void pci_read_irq(struct pci_dev *dev)
        unsigned char irq;
 
        pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &irq);
+       dev->pin = irq;
        if (irq)
                pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &irq);
        dev->irq = irq;
index de690ca73d580f06b37f1bcd8f9412bffa3981c2..b32f70fe2dbd074e2ed200cb2c187a15456dd292 100644 (file)
@@ -98,6 +98,7 @@ struct pci_dev {
        unsigned int    class;          /* 3 bytes: (base,sub,prog-if) */
        u8              hdr_type;       /* PCI header type (`multi' flag masked out) */
        u8              rom_base_reg;   /* which config register controls the ROM */
+       u8              pin;            /* which interrupt pin this device uses */
 
        struct pci_driver *driver;      /* which driver has allocated this device */
        u64             dma_mask;       /* Mask of the bits of bus address this