Rev 1909 | Rev 1911 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1909 | Rev 1910 | ||
|---|---|---|---|
| Line 72... | Line 72... | ||
| 72 | } |
72 | } |
| 73 | 73 | ||
| 74 | return false; |
74 | return false; |
| 75 | } |
75 | } |
| 76 | 76 | ||
| 77 | bool ofw_ebus_map_interrupts(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uint32_t interrupt, int *ino) |
77 | bool ofw_ebus_map_interrupts(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uint32_t interrupt, int *inr) |
| 78 | { |
78 | { |
| 79 | ofw_tree_property_t *prop; |
79 | ofw_tree_property_t *prop; |
| 80 | ofw_tree_node_t *controller; |
80 | ofw_tree_node_t *controller; |
| 81 | 81 | ||
| 82 | prop = ofw_tree_getprop(node, "interrupt-map"); |
82 | prop = ofw_tree_getprop(node, "interrupt-map"); |
| Line 109... | Line 109... | ||
| 109 | return false; |
109 | return false; |
| 110 | 110 | ||
| 111 | found: |
111 | found: |
| 112 | /* |
112 | /* |
| 113 | * We found the device that functions as an interrupt controller |
113 | * We found the device that functions as an interrupt controller |
| 114 | * for the interrupt. We also found mapping from interrupt to INO. |
114 | * for the interrupt. We also found mapping from interrupt to INR. |
| 115 | */ |
115 | */ |
| 116 | 116 | ||
| 117 | controller = ofw_tree_find_node_by_handle(ofw_tree_lookup("/"), intr_map[i].controller_handle); |
117 | controller = ofw_tree_find_node_by_handle(ofw_tree_lookup("/"), intr_map[i].controller_handle); |
| 118 | 118 | ||
| 119 | *ino = intr_map[i].controller_ino; |
119 | *inr = intr_map[i].controller_inr; |
| 120 | return true; |
120 | return true; |
| 121 | } |
121 | } |
| 122 | 122 | ||
| 123 | /** @} |
123 | /** @} |
| 124 | */ |
124 | */ |