diff options
author | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
commit | 607ca46e97a1b6594b29647d98a32d545c24bdff (patch) | |
tree | 30f4c0784bfddb57332cdc0678bd06d1e77fa185 /include/linux/pci.h | |
parent | 08cce05c5a91f5017f4edc9866cf026908c73f9f (diff) |
UAPI: (Scripted) Disintegrate include/linux
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index be1de01de1c4..ee2179546c63 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -13,32 +13,9 @@ | |||
13 | * PCI to PCI Bridge Specification | 13 | * PCI to PCI Bridge Specification |
14 | * PCI System Design Guide | 14 | * PCI System Design Guide |
15 | */ | 15 | */ |
16 | |||
17 | #ifndef LINUX_PCI_H | 16 | #ifndef LINUX_PCI_H |
18 | #define LINUX_PCI_H | 17 | #define LINUX_PCI_H |
19 | 18 | ||
20 | #include <linux/pci_regs.h> /* The pci register defines */ | ||
21 | |||
22 | /* | ||
23 | * The PCI interface treats multi-function devices as independent | ||
24 | * devices. The slot/function address of each device is encoded | ||
25 | * in a single byte as follows: | ||
26 | * | ||
27 | * 7:3 = slot | ||
28 | * 2:0 = function | ||
29 | */ | ||
30 | #define PCI_DEVFN(slot, func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) | ||
31 | #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) | ||
32 | #define PCI_FUNC(devfn) ((devfn) & 0x07) | ||
33 | |||
34 | /* Ioctls for /proc/bus/pci/X/Y nodes. */ | ||
35 | #define PCIIOC_BASE ('P' << 24 | 'C' << 16 | 'I' << 8) | ||
36 | #define PCIIOC_CONTROLLER (PCIIOC_BASE | 0x00) /* Get controller for PCI device. */ | ||
37 | #define PCIIOC_MMAP_IS_IO (PCIIOC_BASE | 0x01) /* Set mmap state to I/O space. */ | ||
38 | #define PCIIOC_MMAP_IS_MEM (PCIIOC_BASE | 0x02) /* Set mmap state to MEM space. */ | ||
39 | #define PCIIOC_WRITE_COMBINE (PCIIOC_BASE | 0x03) /* Enable/disable write-combining. */ | ||
40 | |||
41 | #ifdef __KERNEL__ | ||
42 | 19 | ||
43 | #include <linux/mod_devicetable.h> | 20 | #include <linux/mod_devicetable.h> |
44 | 21 | ||
@@ -53,6 +30,7 @@ | |||
53 | #include <linux/device.h> | 30 | #include <linux/device.h> |
54 | #include <linux/io.h> | 31 | #include <linux/io.h> |
55 | #include <linux/irqreturn.h> | 32 | #include <linux/irqreturn.h> |
33 | #include <uapi/linux/pci.h> | ||
56 | 34 | ||
57 | /* Include the ID list */ | 35 | /* Include the ID list */ |
58 | #include <linux/pci_ids.h> | 36 | #include <linux/pci_ids.h> |
@@ -1831,5 +1809,4 @@ static inline struct eeh_dev *pci_dev_to_eeh_dev(struct pci_dev *pdev) | |||
1831 | */ | 1809 | */ |
1832 | struct pci_dev *pci_find_upstream_pcie_bridge(struct pci_dev *pdev); | 1810 | struct pci_dev *pci_find_upstream_pcie_bridge(struct pci_dev *pdev); |
1833 | 1811 | ||
1834 | #endif /* __KERNEL__ */ | ||
1835 | #endif /* LINUX_PCI_H */ | 1812 | #endif /* LINUX_PCI_H */ |