Changeset 233af8c5 in mainline for kernel/genarch
- Timestamp:
- 2006-10-03T22:49:10Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2cc9a0
- Parents:
- 0b414b5
- Location:
- kernel/genarch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/ofw/ofw_tree.h
r0b414b5 r233af8c5 116 116 uint32_t intr; 117 117 uint32_t controller_handle; 118 uint32_t controller_in o;118 uint32_t controller_inr; 119 119 } __attribute__ ((packed)); 120 120 typedef struct ofw_ebus_intr_map ofw_ebus_intr_map_t; … … 166 166 extern bool ofw_pci_reg_absolutize(ofw_tree_node_t *node, ofw_pci_reg_t *reg, ofw_pci_reg_t *out); 167 167 168 extern bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *in o);169 extern bool ofw_ebus_map_interrupts(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uint32_t interrupt, int *in o);168 extern bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *inr); 169 extern bool ofw_ebus_map_interrupts(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uint32_t interrupt, int *inr); 170 170 171 171 #endif -
kernel/genarch/src/ofw/ebus.c
r0b414b5 r233af8c5 75 75 } 76 76 77 bool ofw_ebus_map_interrupts(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uint32_t interrupt, int *in o)77 bool ofw_ebus_map_interrupts(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uint32_t interrupt, int *inr) 78 78 { 79 79 ofw_tree_property_t *prop; … … 112 112 /* 113 113 * We found the device that functions as an interrupt controller 114 * for the interrupt. We also found mapping from interrupt to IN O.114 * for the interrupt. We also found mapping from interrupt to INR. 115 115 */ 116 116 117 117 controller = ofw_tree_find_node_by_handle(ofw_tree_lookup("/"), intr_map[i].controller_handle); 118 118 119 *in o = intr_map[i].controller_ino;119 *inr = intr_map[i].controller_inr; 120 120 return true; 121 121 } -
kernel/genarch/src/ofw/fhc.c
r0b414b5 r233af8c5 110 110 } 111 111 112 bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *in o)112 bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *inr) 113 113 { 114 114 fhc_t *fhc = NULL; … … 126 126 fhc_enable_interrupt(fhc, interrupt); 127 127 128 *in o= interrupt;128 *inr = interrupt; 129 129 return true; 130 130 }
Note:
See TracChangeset
for help on using the changeset viewer.