This source file includes following definitions.
- pci_get_legacy_ide_irq
- pci_proc_domain
1
2 #ifndef __ALPHA_PCI_H
3 #define __ALPHA_PCI_H
4
5 #ifdef __KERNEL__
6
7 #include <linux/spinlock.h>
8 #include <linux/dma-mapping.h>
9 #include <linux/scatterlist.h>
10 #include <asm/machvec.h>
11
12
13
14
15
16 struct pci_iommu_arena;
17 struct page;
18
19
20
21 struct pci_controller {
22 struct pci_controller *next;
23 struct pci_bus *bus;
24 struct resource *io_space;
25 struct resource *mem_space;
26
27
28
29
30 unsigned long sparse_mem_base;
31 unsigned long dense_mem_base;
32 unsigned long sparse_io_base;
33 unsigned long dense_io_base;
34
35
36 unsigned long config_space_base;
37
38 unsigned int index;
39
40
41 unsigned int need_domain_info;
42
43 struct pci_iommu_arena *sg_pci;
44 struct pci_iommu_arena *sg_isa;
45
46 void *sysdata;
47 };
48
49
50
51
52 #define pcibios_assign_all_busses() 1
53
54 #define PCIBIOS_MIN_IO alpha_mv.min_io_address
55 #define PCIBIOS_MIN_MEM alpha_mv.min_mem_address
56
57
58
59
60 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
61 {
62 return channel ? 15 : 14;
63 }
64
65 #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index
66
67 static inline int pci_proc_domain(struct pci_bus *bus)
68 {
69 struct pci_controller *hose = bus->sysdata;
70 return hose->need_domain_info;
71 }
72
73 #endif
74
75
76 #define IOBASE_HOSE 0
77 #define IOBASE_SPARSE_MEM 1
78 #define IOBASE_DENSE_MEM 2
79 #define IOBASE_SPARSE_IO 3
80 #define IOBASE_DENSE_IO 4
81 #define IOBASE_ROOT_BUS 5
82 #define IOBASE_FROM_HOSE 0x10000
83
84 extern struct pci_dev *isa_bridge;
85
86 extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val,
87 size_t count);
88 extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val,
89 size_t count);
90 extern int pci_mmap_legacy_page_range(struct pci_bus *bus,
91 struct vm_area_struct *vma,
92 enum pci_mmap_state mmap_state);
93 extern void pci_adjust_legacy_attr(struct pci_bus *bus,
94 enum pci_mmap_state mmap_type);
95 #define HAVE_PCI_LEGACY 1
96
97 extern int pci_create_resource_files(struct pci_dev *dev);
98 extern void pci_remove_resource_files(struct pci_dev *dev);
99
100 #endif