diff options
Diffstat (limited to 'include/asm-sparc64/isa.h')
-rw-r--r-- | include/asm-sparc64/isa.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/include/asm-sparc64/isa.h b/include/asm-sparc64/isa.h index 4601bbfc3e7b..d9728b9031fc 100644 --- a/include/asm-sparc64/isa.h +++ b/include/asm-sparc64/isa.h | |||
@@ -9,37 +9,32 @@ | |||
9 | 9 | ||
10 | #include <asm/pbm.h> | 10 | #include <asm/pbm.h> |
11 | #include <asm/oplib.h> | 11 | #include <asm/oplib.h> |
12 | #include <asm/prom.h> | ||
13 | #include <asm/of_device.h> | ||
12 | 14 | ||
13 | struct sparc_isa_bridge; | 15 | struct sparc_isa_bridge; |
14 | 16 | ||
15 | struct sparc_isa_device { | 17 | struct sparc_isa_device { |
18 | struct of_device ofdev; | ||
16 | struct sparc_isa_device *next; | 19 | struct sparc_isa_device *next; |
17 | struct sparc_isa_device *child; | 20 | struct sparc_isa_device *child; |
18 | struct sparc_isa_bridge *bus; | 21 | struct sparc_isa_bridge *bus; |
19 | int prom_node; | 22 | struct device_node *prom_node; |
20 | char prom_name[64]; | ||
21 | char compatible[64]; | ||
22 | struct resource resource; | 23 | struct resource resource; |
23 | unsigned int irq; | 24 | unsigned int irq; |
24 | }; | 25 | }; |
26 | #define to_isa_device(d) container_of(d, struct sparc_isa_device, ofdev.dev) | ||
25 | 27 | ||
26 | struct sparc_isa_bridge { | 28 | struct sparc_isa_bridge { |
29 | struct of_device ofdev; | ||
27 | struct sparc_isa_bridge *next; | 30 | struct sparc_isa_bridge *next; |
28 | struct sparc_isa_device *devices; | 31 | struct sparc_isa_device *devices; |
29 | struct pci_pbm_info *parent; | 32 | struct pci_pbm_info *parent; |
30 | struct pci_dev *self; | 33 | struct pci_dev *self; |
31 | int index; | 34 | int index; |
32 | int prom_node; | 35 | struct device_node *prom_node; |
33 | char prom_name[64]; | ||
34 | #define linux_prom_isa_ranges linux_prom_ebus_ranges | ||
35 | struct linux_prom_isa_ranges isa_ranges[PROMREG_MAX]; | ||
36 | int num_isa_ranges; | ||
37 | #define linux_prom_isa_intmap linux_prom_ebus_intmap | ||
38 | struct linux_prom_isa_intmap isa_intmap[PROMREG_MAX]; | ||
39 | int num_isa_intmap; | ||
40 | #define linux_prom_isa_intmask linux_prom_ebus_intmask | ||
41 | struct linux_prom_isa_intmap isa_intmask; | ||
42 | }; | 36 | }; |
37 | #define to_isa_bridge(d) container_of(d, struct sparc_isa_bridge, ofdev.dev) | ||
43 | 38 | ||
44 | extern struct sparc_isa_bridge *isa_chain; | 39 | extern struct sparc_isa_bridge *isa_chain; |
45 | 40 | ||