diff options
| author | Matthew Wilcox <willy@debian.org> | 2004-01-28 22:32:13 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2004-01-28 22:32:13 -0800 |
| commit | 9648e089aaba09d60282558c69e598ae40254160 (patch) | |
| tree | f7e765034afb1306b8938f3bbe8218f4ad4039c0 /include/linux | |
| parent | 68b308e82cafcd64e2a102b410b8db3077aae44d (diff) | |
[PATCH] PCI: add pci_get_slot() function
tg3.c has a bug where it can find the wrong 5704 peer on a machine with
PCI domains. The problem is that pci_find_slot() can't distinguish
whether it has the correct domain or not.
This patch fixes that problem by introducing pci_get_slot().
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 33980d0a753c..4178a8b148bb 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -614,6 +614,8 @@ struct pci_dev *pci_get_device (unsigned int vendor, unsigned int device, struct struct pci_dev *pci_get_subsys (unsigned int vendor, unsigned int device, unsigned int ss_vendor, unsigned int ss_device, struct pci_dev *from); +struct pci_dev *pci_get_slot (struct pci_bus *bus, unsigned int devfn); + int pci_bus_read_config_byte (struct pci_bus *bus, unsigned int devfn, int where, u8 *val); int pci_bus_read_config_word (struct pci_bus *bus, unsigned int devfn, int where, u16 *val); int pci_bus_read_config_dword (struct pci_bus *bus, unsigned int devfn, int where, u32 *val); |
