aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pci_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/pci_32.h')
-rw-r--r--include/asm-x86/pci_32.h70
1 files changed, 0 insertions, 70 deletions
diff --git a/include/asm-x86/pci_32.h b/include/asm-x86/pci_32.h
index 0d91605cd1e2..8c4c3a0368e2 100644
--- a/include/asm-x86/pci_32.h
+++ b/include/asm-x86/pci_32.h
@@ -4,62 +4,11 @@
4 4
5#ifdef __KERNEL__ 5#ifdef __KERNEL__
6 6
7struct pci_sysdata {
8 int domain; /* PCI domain */
9 int node; /* NUMA node */
10};
11
12/* scan a bus after allocating a pci_sysdata for it */
13extern struct pci_bus *pci_scan_bus_with_sysdata(int busno);
14
15static inline int pci_domain_nr(struct pci_bus *bus)
16{
17 struct pci_sysdata *sd = bus->sysdata;
18 return sd->domain;
19}
20
21static inline int pci_proc_domain(struct pci_bus *bus)
22{
23 return pci_domain_nr(bus);
24}
25
26#include <linux/mm.h> /* for struct page */
27
28/* Can be used to override the logic in pci_scan_bus for skipping
29 already-configured bus numbers - to be used for buggy BIOSes
30 or architectures with incomplete PCI setup by the loader */
31
32#ifdef CONFIG_PCI
33extern unsigned int pcibios_assign_all_busses(void);
34#else
35#define pcibios_assign_all_busses() 0
36#endif
37#define pcibios_scan_all_fns(a, b) 0
38
39extern unsigned long pci_mem_start;
40#define PCIBIOS_MIN_IO 0x1000
41#define PCIBIOS_MIN_MEM (pci_mem_start)
42
43#define PCIBIOS_MIN_CARDBUS_IO 0x4000
44
45void pcibios_config_init(void);
46struct pci_bus * pcibios_scan_root(int bus);
47
48void pcibios_set_master(struct pci_dev *dev);
49void pcibios_penalize_isa_irq(int irq, int active);
50struct irq_routing_table *pcibios_get_irq_routing_table(void);
51int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
52 7
53/* Dynamic DMA mapping stuff. 8/* Dynamic DMA mapping stuff.
54 * i386 has everything mapped statically. 9 * i386 has everything mapped statically.
55 */ 10 */
56 11
57#include <linux/types.h>
58#include <linux/slab.h>
59#include <asm/scatterlist.h>
60#include <linux/string.h>
61#include <asm/io.h>
62
63struct pci_dev; 12struct pci_dev;
64 13
65/* The PCI address space does equal the physical memory 14/* The PCI address space does equal the physical memory
@@ -76,27 +25,8 @@ struct pci_dev;
76#define pci_unmap_len(PTR, LEN_NAME) (0) 25#define pci_unmap_len(PTR, LEN_NAME) (0)
77#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0) 26#define pci_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
78 27
79#define HAVE_PCI_MMAP
80extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
81 enum pci_mmap_state mmap_state, int write_combine);
82
83
84#ifdef CONFIG_PCI
85static inline void pci_dma_burst_advice(struct pci_dev *pdev,
86 enum pci_dma_burst_strategy *strat,
87 unsigned long *strategy_parameter)
88{
89 *strat = PCI_DMA_BURST_INFINITY;
90 *strategy_parameter = ~0UL;
91}
92#endif
93 28
94#endif /* __KERNEL__ */ 29#endif /* __KERNEL__ */
95 30
96/* implement the pci_ DMA API in terms of the generic device dma_ one */
97#include <asm-generic/pci-dma-compat.h>
98
99/* generic pci stuff */
100#include <asm-generic/pci.h>
101 31
102#endif /* __i386_PCI_H */ 32#endif /* __i386_PCI_H */