aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pci_64.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:07:23 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 18:03:20 -0400
commitf3e6f164c2389853432454c89b316a8ab7485e2f (patch)
tree0e3074fae2e0563def88f9b50e3441f864517b1d /include/asm-x86/pci_64.h
parenta79e4198d1effbba040e9bf407a95fc9b3418789 (diff)
PCI: merge almost all of pci_32.h and pci_64.h together
It was just duplicated code... Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/asm-x86/pci_64.h')
-rw-r--r--include/asm-x86/pci_64.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/include/asm-x86/pci_64.h b/include/asm-x86/pci_64.h
index 0a123d6a820f..9baa46d9f594 100644
--- a/include/asm-x86/pci_64.h
+++ b/include/asm-x86/pci_64.h
@@ -1,28 +1,9 @@
1#ifndef __x8664_PCI_H 1#ifndef __x8664_PCI_H
2#define __x8664_PCI_H 2#define __x8664_PCI_H
3 3
4#include <asm/io.h>
5 4
6#ifdef __KERNEL__ 5#ifdef __KERNEL__
7 6
8struct pci_sysdata {
9 int domain; /* PCI domain */
10 int node; /* NUMA node */
11 void* iommu; /* IOMMU private data */
12};
13
14extern struct pci_bus *pci_scan_bus_with_sysdata(int busno);
15
16static inline int pci_domain_nr(struct pci_bus *bus)
17{
18 struct pci_sysdata *sd = bus->sysdata;
19 return sd->domain;
20}
21
22static inline int pci_proc_domain(struct pci_bus *bus)
23{
24 return pci_domain_nr(bus);
25}
26 7
27#ifdef CONFIG_CALGARY_IOMMU 8#ifdef CONFIG_CALGARY_IOMMU
28static inline void* pci_iommu(struct pci_bus *bus) 9static inline void* pci_iommu(struct pci_bus *bus)
@@ -38,40 +19,11 @@ static inline void set_pci_iommu(struct pci_bus *bus, void *val)
38} 19}
39#endif /* CONFIG_CALGARY_IOMMU */ 20#endif /* CONFIG_CALGARY_IOMMU */
40 21
41#include <linux/mm.h> /* for struct page */
42
43/* Can be used to override the logic in pci_scan_bus for skipping
44 already-configured bus numbers - to be used for buggy BIOSes
45 or architectures with incomplete PCI setup by the loader */
46 22
47#ifdef CONFIG_PCI
48extern unsigned int pcibios_assign_all_busses(void);
49#else
50#define pcibios_assign_all_busses() 0
51#endif
52#define pcibios_scan_all_fns(a, b) 0
53
54extern unsigned long pci_mem_start;
55#define PCIBIOS_MIN_IO 0x1000
56#define PCIBIOS_MIN_MEM (pci_mem_start)
57
58#define PCIBIOS_MIN_CARDBUS_IO 0x4000
59
60void pcibios_config_init(void);
61struct pci_bus * pcibios_scan_root(int bus);
62extern int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value); 23extern int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value);
63extern int (*pci_config_write)(int seg, int bus, int dev, int fn, int reg, int len, u32 value); 24extern int (*pci_config_write)(int seg, int bus, int dev, int fn, int reg, int len, u32 value);
64 25
65void pcibios_set_master(struct pci_dev *dev);
66void pcibios_penalize_isa_irq(int irq, int active);
67struct irq_routing_table *pcibios_get_irq_routing_table(void);
68int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq);
69 26
70#include <linux/types.h>
71#include <linux/slab.h>
72#include <asm/scatterlist.h>
73#include <linux/string.h>
74#include <asm/page.h>
75 27
76extern void pci_iommu_alloc(void); 28extern void pci_iommu_alloc(void);
77extern int iommu_setup(char *opt); 29extern int iommu_setup(char *opt);
@@ -112,27 +64,7 @@ extern int iommu_setup(char *opt);
112 64
113#endif 65#endif
114 66
115#include <asm-generic/pci-dma-compat.h>
116
117#ifdef CONFIG_PCI
118static inline void pci_dma_burst_advice(struct pci_dev *pdev,
119 enum pci_dma_burst_strategy *strat,
120 unsigned long *strategy_parameter)
121{
122 *strat = PCI_DMA_BURST_INFINITY;
123 *strategy_parameter = ~0UL;
124}
125#endif
126
127#define HAVE_PCI_MMAP
128extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
129 enum pci_mmap_state mmap_state, int write_combine);
130
131#endif /* __KERNEL__ */ 67#endif /* __KERNEL__ */
132 68
133/* generic pci stuff */
134#ifdef CONFIG_PCI
135#include <asm-generic/pci.h>
136#endif
137 69
138#endif /* __x8664_PCI_H */ 70#endif /* __x8664_PCI_H */