Changeset 0b414b5 in mainline for kernel/genarch/src/ofw/fhc.c
- Timestamp:
- 2006-10-02T21:07:23Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 233af8c5
- Parents:
- 36db5ac
- File:
-
- 1 edited
-
kernel/genarch/src/ofw/fhc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/ofw/fhc.c
r36db5ac r0b414b5 37 37 38 38 #include <genarch/ofw/ofw_tree.h> 39 #include <arch/drivers/fhc.h> 39 40 #include <arch/memstr.h> 40 41 #include <func.h> … … 109 110 } 110 111 112 bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *ino) 113 { 114 fhc_t *fhc = NULL; 115 if (!node->device) { 116 fhc = fhc_init(node); 117 if (!fhc) 118 return false; 119 node->device = fhc; 120 central_fhc = fhc; 121 } 122 123 /* 124 * The interrupt controller for the interrupt is the FHC itself. 125 */ 126 fhc_enable_interrupt(fhc, interrupt); 127 128 *ino = interrupt; 129 return true; 130 } 131 111 132 /** @} 112 133 */
Note:
See TracChangeset
for help on using the changeset viewer.
