Changeset b60c582 in mainline for kernel/genarch/src/ofw
- Timestamp:
- 2009-04-03T08:02:30Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2398ee9
- Parents:
- 9be1d58
- Location:
- kernel/genarch/src/ofw
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/ofw/ebus.c
r9be1d58 rb60c582 128 128 return false; 129 129 130 if (str cmp(ofw_tree_node_name(controller), "pci") != 0) {130 if (str_cmp(ofw_tree_node_name(controller), "pci") != 0) { 131 131 /* 132 132 * This is not a PCI node. -
kernel/genarch/src/ofw/fhc.c
r9be1d58 rb60c582 67 67 return true; 68 68 } 69 if (str cmp(ofw_tree_node_name(node->parent), "central") != 0)69 if (str_cmp(ofw_tree_node_name(node->parent), "central") != 0) 70 70 panic("Unexpected parent node: %s.", ofw_tree_node_name(node->parent)); 71 71 -
kernel/genarch/src/ofw/ofw_tree.c
r9be1d58 rb60c582 67 67 68 68 for (i = 0; i < node->properties; i++) { 69 if (str cmp(node->property[i].name, name) == 0)69 if (str_cmp(node->property[i].name, name) == 0) 70 70 return &node->property[i]; 71 71 } … … 110 110 */ 111 111 for (cur = node->child; cur; cur = cur->peer) { 112 if (str cmp(cur->da_name, name) == 0)112 if (str_cmp(cur->da_name, name) == 0) 113 113 return cur; 114 114 } … … 122 122 */ 123 123 for (cur = node->child; cur; cur = cur->peer) { 124 if (str cmp(ofw_tree_node_name(cur), name) == 0)124 if (str_cmp(ofw_tree_node_name(cur), name) == 0) 125 125 return cur; 126 126 } … … 147 147 if (!prop || !prop->value) 148 148 continue; 149 if (str cmp(prop->value, name) == 0)149 if (str_cmp(prop->value, name) == 0) 150 150 return cur; 151 151 } … … 204 204 if (!prop || !prop->value) 205 205 continue; 206 if (str cmp(prop->value, name) == 0)206 if (str_cmp(prop->value, name) == 0) 207 207 return cur; 208 208 } … … 230 230 if (!prop || !prop->value) 231 231 continue; 232 if (str cmp(prop->value, name) == 0)232 if (str_cmp(prop->value, name) == 0) 233 233 return cur; 234 234 } … … 253 253 return NULL; 254 254 255 for (i = 1; i < str_size(path) && node; i = j + 1) { 256 for (j = i; j < str_size(path) && path[j] != '/'; j++) 257 ; 258 if (i == j) /* skip extra slashes */ 255 for (i = 1; (i < str_size(path)) && (node); i = j + 1) { 256 for (j = i; (j < str_size(path)) && (path[j] != '/'); j++); 257 258 /* Skip extra slashes */ 259 if (i == j) 259 260 continue; 260 261 261 262 memcpy(buf, &path[i], j - i); 262 buf[j - i] = '\0';263 buf[j - i] = 0; 263 264 node = ofw_tree_find_child(node, buf); 264 265 } -
kernel/genarch/src/ofw/pci.c
r9be1d58 rb60c582 59 59 prop = ofw_tree_getprop(node, "ranges"); 60 60 if (!prop) { 61 if (str cmp(ofw_tree_node_name(node->parent), "pci") == 0)61 if (str_cmp(ofw_tree_node_name(node->parent), "pci") == 0) 62 62 return ofw_pci_apply_ranges(node->parent, reg, pa); 63 63 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
