diff options
Diffstat (limited to 'arch/arm/include/asm/mach/pci.h')
-rw-r--r-- | arch/arm/include/asm/mach/pci.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h index d943b7d20f11..26c511fddf8f 100644 --- a/arch/arm/include/asm/mach/pci.h +++ b/arch/arm/include/asm/mach/pci.h | |||
@@ -12,13 +12,14 @@ | |||
12 | #define __ASM_MACH_PCI_H | 12 | #define __ASM_MACH_PCI_H |
13 | 13 | ||
14 | struct pci_sys_data; | 14 | struct pci_sys_data; |
15 | struct pci_ops; | ||
15 | struct pci_bus; | 16 | struct pci_bus; |
16 | 17 | ||
17 | struct hw_pci { | 18 | struct hw_pci { |
18 | #ifdef CONFIG_PCI_DOMAINS | 19 | #ifdef CONFIG_PCI_DOMAINS |
19 | int domain; | 20 | int domain; |
20 | #endif | 21 | #endif |
21 | struct list_head buses; | 22 | struct pci_ops *ops; |
22 | int nr_controllers; | 23 | int nr_controllers; |
23 | int (*setup)(int nr, struct pci_sys_data *); | 24 | int (*setup)(int nr, struct pci_sys_data *); |
24 | struct pci_bus *(*scan)(int nr, struct pci_sys_data *); | 25 | struct pci_bus *(*scan)(int nr, struct pci_sys_data *); |
@@ -45,16 +46,10 @@ struct pci_sys_data { | |||
45 | u8 (*swizzle)(struct pci_dev *, u8 *); | 46 | u8 (*swizzle)(struct pci_dev *, u8 *); |
46 | /* IRQ mapping */ | 47 | /* IRQ mapping */ |
47 | int (*map_irq)(const struct pci_dev *, u8, u8); | 48 | int (*map_irq)(const struct pci_dev *, u8, u8); |
48 | struct hw_pci *hw; | ||
49 | void *private_data; /* platform controller private data */ | 49 | void *private_data; /* platform controller private data */ |
50 | }; | 50 | }; |
51 | 51 | ||
52 | /* | 52 | /* |
53 | * This is the standard PCI-PCI bridge swizzling algorithm. | ||
54 | */ | ||
55 | #define pci_std_swizzle pci_common_swizzle | ||
56 | |||
57 | /* | ||
58 | * Call this with your hw_pci struct to initialise the PCI system. | 53 | * Call this with your hw_pci struct to initialise the PCI system. |
59 | */ | 54 | */ |
60 | void pci_common_init(struct hw_pci *); | 55 | void pci_common_init(struct hw_pci *); |
@@ -62,22 +57,22 @@ void pci_common_init(struct hw_pci *); | |||
62 | /* | 57 | /* |
63 | * PCI controllers | 58 | * PCI controllers |
64 | */ | 59 | */ |
60 | extern struct pci_ops iop3xx_ops; | ||
65 | extern int iop3xx_pci_setup(int nr, struct pci_sys_data *); | 61 | extern int iop3xx_pci_setup(int nr, struct pci_sys_data *); |
66 | extern struct pci_bus *iop3xx_pci_scan_bus(int nr, struct pci_sys_data *); | ||
67 | extern void iop3xx_pci_preinit(void); | 62 | extern void iop3xx_pci_preinit(void); |
68 | extern void iop3xx_pci_preinit_cond(void); | 63 | extern void iop3xx_pci_preinit_cond(void); |
69 | 64 | ||
65 | extern struct pci_ops dc21285_ops; | ||
70 | extern int dc21285_setup(int nr, struct pci_sys_data *); | 66 | extern int dc21285_setup(int nr, struct pci_sys_data *); |
71 | extern struct pci_bus *dc21285_scan_bus(int nr, struct pci_sys_data *); | ||
72 | extern void dc21285_preinit(void); | 67 | extern void dc21285_preinit(void); |
73 | extern void dc21285_postinit(void); | 68 | extern void dc21285_postinit(void); |
74 | 69 | ||
70 | extern struct pci_ops via82c505_ops; | ||
75 | extern int via82c505_setup(int nr, struct pci_sys_data *); | 71 | extern int via82c505_setup(int nr, struct pci_sys_data *); |
76 | extern struct pci_bus *via82c505_scan_bus(int nr, struct pci_sys_data *); | ||
77 | extern void via82c505_init(void *sysdata); | 72 | extern void via82c505_init(void *sysdata); |
78 | 73 | ||
74 | extern struct pci_ops pci_v3_ops; | ||
79 | extern int pci_v3_setup(int nr, struct pci_sys_data *); | 75 | extern int pci_v3_setup(int nr, struct pci_sys_data *); |
80 | extern struct pci_bus *pci_v3_scan_bus(int nr, struct pci_sys_data *); | ||
81 | extern void pci_v3_preinit(void); | 76 | extern void pci_v3_preinit(void); |
82 | extern void pci_v3_postinit(void); | 77 | extern void pci_v3_postinit(void); |
83 | 78 | ||