diff options
Diffstat (limited to 'include/asm-sparc/prom.h')
-rw-r--r-- | include/asm-sparc/prom.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/asm-sparc/prom.h b/include/asm-sparc/prom.h index f9cf44c0716..86c13dccea3 100644 --- a/include/asm-sparc/prom.h +++ b/include/asm-sparc/prom.h | |||
@@ -25,11 +25,6 @@ | |||
25 | typedef u32 phandle; | 25 | typedef u32 phandle; |
26 | typedef u32 ihandle; | 26 | typedef u32 ihandle; |
27 | 27 | ||
28 | struct interrupt_info { | ||
29 | int line; | ||
30 | int sense; /* +ve/-ve logic, edge or level, etc. */ | ||
31 | }; | ||
32 | |||
33 | struct property { | 28 | struct property { |
34 | char *name; | 29 | char *name; |
35 | int length; | 30 | int length; |
@@ -43,9 +38,6 @@ struct device_node { | |||
43 | char *name; | 38 | char *name; |
44 | char *type; | 39 | char *type; |
45 | phandle node; | 40 | phandle node; |
46 | phandle linux_phandle; | ||
47 | int n_intrs; | ||
48 | struct interrupt_info *intrs; | ||
49 | char *path_component_name; | 41 | char *path_component_name; |
50 | char *full_name; | 42 | char *full_name; |
51 | 43 | ||
@@ -69,6 +61,8 @@ struct device_node { | |||
69 | #define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags) | 61 | #define OF_IS_DYNAMIC(x) test_bit(OF_DYNAMIC, &x->_flags) |
70 | #define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags) | 62 | #define OF_MARK_DYNAMIC(x) set_bit(OF_DYNAMIC, &x->_flags) |
71 | 63 | ||
64 | #define OF_BAD_ADDR ((u64)-1) | ||
65 | |||
72 | static inline void set_node_proc_entry(struct device_node *dn, struct proc_dir_entry *de) | 66 | static inline void set_node_proc_entry(struct device_node *dn, struct proc_dir_entry *de) |
73 | { | 67 | { |
74 | dn->pde = de; | 68 | dn->pde = de; |
@@ -101,6 +95,8 @@ extern int of_set_property(struct device_node *node, const char *name, void *val | |||
101 | extern int of_getintprop_default(struct device_node *np, | 95 | extern int of_getintprop_default(struct device_node *np, |
102 | const char *name, | 96 | const char *name, |
103 | int def); | 97 | int def); |
98 | extern int of_n_addr_cells(struct device_node *np); | ||
99 | extern int of_n_size_cells(struct device_node *np); | ||
104 | 100 | ||
105 | extern void prom_build_devicetree(void); | 101 | extern void prom_build_devicetree(void); |
106 | 102 | ||