Rev 2089 | Rev 3655 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2089 | Rev 2510 | ||
---|---|---|---|
Line 138... | Line 138... | ||
138 | uint64_t parent_base; |
138 | uint64_t parent_base; |
139 | uint64_t size; |
139 | uint64_t size; |
140 | } __attribute__ ((packed)); |
140 | } __attribute__ ((packed)); |
141 | typedef struct ofw_pci_range ofw_pci_range_t; |
141 | typedef struct ofw_pci_range ofw_pci_range_t; |
142 | 142 | ||
- | 143 | struct ofw_sbus_reg { |
|
- | 144 | uint64_t addr; |
|
- | 145 | uint32_t size; |
|
- | 146 | } __attribute__ ((packed)); |
|
- | 147 | typedef struct ofw_sbus_reg ofw_sbus_reg_t; |
|
- | 148 | ||
- | 149 | struct ofw_sbus_range { |
|
- | 150 | uint64_t child_base; |
|
- | 151 | uint64_t parent_base; |
|
- | 152 | uint32_t size; |
|
- | 153 | } __attribute__ ((packed)); |
|
- | 154 | typedef struct ofw_sbus_range ofw_sbus_range_t; |
|
- | 155 | ||
143 | struct ofw_upa_reg { |
156 | struct ofw_upa_reg { |
144 | uint64_t addr; |
157 | uint64_t addr; |
145 | uint64_t size; |
158 | uint64_t size; |
146 | } __attribute__ ((packed)); |
159 | } __attribute__ ((packed)); |
147 | typedef struct ofw_upa_reg ofw_upa_reg_t; |
160 | typedef struct ofw_upa_reg ofw_upa_reg_t; |
Line 158... | Line 171... | ||
158 | 171 | ||
159 | extern bool ofw_fhc_apply_ranges(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uintptr_t *pa); |
172 | extern bool ofw_fhc_apply_ranges(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uintptr_t *pa); |
160 | extern bool ofw_central_apply_ranges(ofw_tree_node_t *node, ofw_central_reg_t *reg, uintptr_t *pa); |
173 | extern bool ofw_central_apply_ranges(ofw_tree_node_t *node, ofw_central_reg_t *reg, uintptr_t *pa); |
161 | extern bool ofw_ebus_apply_ranges(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uintptr_t *pa); |
174 | extern bool ofw_ebus_apply_ranges(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uintptr_t *pa); |
162 | extern bool ofw_pci_apply_ranges(ofw_tree_node_t *node, ofw_pci_reg_t *reg, uintptr_t *pa); |
175 | extern bool ofw_pci_apply_ranges(ofw_tree_node_t *node, ofw_pci_reg_t *reg, uintptr_t *pa); |
- | 176 | extern bool ofw_sbus_apply_ranges(ofw_tree_node_t *node, ofw_sbus_reg_t *reg, uintptr_t *pa); |
|
163 | extern bool ofw_upa_apply_ranges(ofw_tree_node_t *node, ofw_upa_reg_t *reg, uintptr_t *pa); |
177 | extern bool ofw_upa_apply_ranges(ofw_tree_node_t *node, ofw_upa_reg_t *reg, uintptr_t *pa); |
164 | 178 | ||
165 | extern bool ofw_pci_reg_absolutize(ofw_tree_node_t *node, ofw_pci_reg_t *reg, ofw_pci_reg_t *out); |
179 | extern bool ofw_pci_reg_absolutize(ofw_tree_node_t *node, ofw_pci_reg_t *reg, ofw_pci_reg_t *out); |
166 | 180 | ||
167 | extern bool ofw_fhc_map_interrupt(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *inr); |
181 | extern bool ofw_fhc_map_interrupt(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *inr); |