Rev 3675 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3675 | Rev 4377 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | */ |
36 | */ |
| 37 | 37 | ||
| 38 | #include <genarch/ofw/ofw_tree.h> |
38 | #include <genarch/ofw/ofw_tree.h> |
| 39 | #include <arch/memstr.h> |
39 | #include <arch/memstr.h> |
| 40 | #include <arch/trap/interrupt.h> |
40 | #include <arch/trap/interrupt.h> |
| 41 | #include <func.h> |
41 | #include <string.h> |
| 42 | #include <panic.h> |
42 | #include <panic.h> |
| 43 | #include <debug.h> |
43 | #include <debug.h> |
| 44 | #include <macros.h> |
44 | #include <macros.h> |
| 45 | 45 | ||
| 46 | /** Apply EBUS ranges to EBUS register. */ |
46 | /** Apply EBUS ranges to EBUS register. */ |
| Line 125... | Line 125... | ||
| 125 | controller = ofw_tree_find_node_by_handle(ofw_tree_lookup("/"), |
125 | controller = ofw_tree_find_node_by_handle(ofw_tree_lookup("/"), |
| 126 | intr_map[i].controller_handle); |
126 | intr_map[i].controller_handle); |
| 127 | if (!controller) |
127 | if (!controller) |
| 128 | return false; |
128 | return false; |
| 129 | 129 | ||
| 130 | if (strcmp(ofw_tree_node_name(controller), "pci") != 0) { |
130 | if (str_cmp(ofw_tree_node_name(controller), "pci") != 0) { |
| 131 | /* |
131 | /* |
| 132 | * This is not a PCI node. |
132 | * This is not a PCI node. |
| 133 | */ |
133 | */ |
| 134 | return false; |
134 | return false; |
| 135 | } |
135 | } |