Rev 2927 | Rev 4339 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 3674 | ||
---|---|---|---|
Line 107... | Line 107... | ||
107 | } |
107 | } |
108 | 108 | ||
109 | return false; |
109 | return false; |
110 | } |
110 | } |
111 | 111 | ||
- | 112 | bool |
|
112 | bool ofw_fhc_map_interrupt(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, uint32_t interrupt, int *inr) |
113 | ofw_fhc_map_interrupt(ofw_tree_node_t *node, ofw_fhc_reg_t *reg, |
- | 114 | uint32_t interrupt, int *inr, cir_t *cir, void **cir_arg) |
|
113 | { |
115 | { |
114 | fhc_t *fhc = NULL; |
116 | fhc_t *fhc = NULL; |
115 | if (!node->device) { |
117 | if (!node->device) { |
116 | fhc = fhc_init(node); |
118 | fhc = fhc_init(node); |
117 | if (!fhc) |
119 | if (!fhc) |
Line 124... | Line 126... | ||
124 | * The interrupt controller for the interrupt is the FHC itself. |
126 | * The interrupt controller for the interrupt is the FHC itself. |
125 | */ |
127 | */ |
126 | fhc_enable_interrupt(fhc, interrupt); |
128 | fhc_enable_interrupt(fhc, interrupt); |
127 | 129 | ||
128 | *inr = interrupt; |
130 | *inr = interrupt; |
- | 131 | *cir = fhc_clear_interrupt; |
|
- | 132 | *cir_arg = fhc; |
|
129 | return true; |
133 | return true; |
130 | } |
134 | } |
131 | 135 | ||
132 | /** @} |
136 | /** @} |
133 | */ |
137 | */ |