Rev 1909 | Rev 1912 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1909 | Rev 1910 | ||
---|---|---|---|
Line 107... | Line 107... | ||
107 | } |
107 | } |
108 | 108 | ||
109 | return false; |
109 | return false; |
110 | } |
110 | } |
111 | 111 | ||
112 | bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *ino) |
112 | bool ofw_fhc_map_interrupts(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *inr) |
113 | { |
113 | { |
114 | fhc_t *fhc = NULL; |
114 | fhc_t *fhc = NULL; |
115 | if (!node->device) { |
115 | if (!node->device) { |
116 | fhc = fhc_init(node); |
116 | fhc = fhc_init(node); |
117 | if (!fhc) |
117 | if (!fhc) |
Line 123... | Line 123... | ||
123 | /* |
123 | /* |
124 | * The interrupt controller for the interrupt is the FHC itself. |
124 | * The interrupt controller for the interrupt is the FHC itself. |
125 | */ |
125 | */ |
126 | fhc_enable_interrupt(fhc, interrupt); |
126 | fhc_enable_interrupt(fhc, interrupt); |
127 | 127 | ||
128 | *ino = interrupt; |
128 | *inr = interrupt; |
129 | return true; |
129 | return true; |
130 | } |
130 | } |
131 | 131 | ||
132 | /** @} |
132 | /** @} |
133 | */ |
133 | */ |