diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-23 18:55:17 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-24 02:15:47 -0400 |
commit | fd5314311634245172d40ccb418d89dac91d6ad6 (patch) | |
tree | a157e4f2ec03316d733de1ff5c64254d8068d078 /include/asm-sparc/ebus.h | |
parent | 942a6bdd1c4d2419a42be77ba1c964e4ba8dae9e (diff) |
[SPARC]: Port of_device layer and make ebus use it.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc/ebus.h')
-rw-r--r-- | include/asm-sparc/ebus.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-sparc/ebus.h b/include/asm-sparc/ebus.h index 0dc3c01b4b1f..54652887c127 100644 --- a/include/asm-sparc/ebus.h +++ b/include/asm-sparc/ebus.h | |||
@@ -14,6 +14,7 @@ | |||
14 | #endif | 14 | #endif |
15 | #include <asm/oplib.h> | 15 | #include <asm/oplib.h> |
16 | #include <asm/prom.h> | 16 | #include <asm/prom.h> |
17 | #include <asm/of_device.h> | ||
17 | 18 | ||
18 | struct linux_ebus_child { | 19 | struct linux_ebus_child { |
19 | struct linux_ebus_child *next; | 20 | struct linux_ebus_child *next; |
@@ -27,6 +28,7 @@ struct linux_ebus_child { | |||
27 | }; | 28 | }; |
28 | 29 | ||
29 | struct linux_ebus_device { | 30 | struct linux_ebus_device { |
31 | struct of_device ofdev; | ||
30 | struct linux_ebus_device *next; | 32 | struct linux_ebus_device *next; |
31 | struct linux_ebus_child *children; | 33 | struct linux_ebus_child *children; |
32 | struct linux_ebus *bus; | 34 | struct linux_ebus *bus; |
@@ -36,14 +38,17 @@ struct linux_ebus_device { | |||
36 | unsigned int irqs[PROMINTR_MAX]; | 38 | unsigned int irqs[PROMINTR_MAX]; |
37 | int num_irqs; | 39 | int num_irqs; |
38 | }; | 40 | }; |
41 | #define to_ebus_device(d) container_of(d, struct linux_ebus_device, ofdev.dev) | ||
39 | 42 | ||
40 | struct linux_ebus { | 43 | struct linux_ebus { |
44 | struct of_device ofdev; | ||
41 | struct linux_ebus *next; | 45 | struct linux_ebus *next; |
42 | struct linux_ebus_device *devices; | 46 | struct linux_ebus_device *devices; |
43 | struct linux_pbm_info *parent; | 47 | struct linux_pbm_info *parent; |
44 | struct pci_dev *self; | 48 | struct pci_dev *self; |
45 | struct device_node *prom_node; | 49 | struct device_node *prom_node; |
46 | }; | 50 | }; |
51 | #define to_ebus(d) container_of(d, struct linux_ebus, ofdev.dev) | ||
47 | 52 | ||
48 | struct linux_ebus_dma { | 53 | struct linux_ebus_dma { |
49 | unsigned int dcsr; | 54 | unsigned int dcsr; |