Changeset 28ecadb in mainline for boot/arch/sparc64/loader/ofwarch.c


Ignore:
Timestamp:
2006-09-22T21:44:54Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d684e4
Parents:
16529d5
Message:

Convert sparc64 to detect keyboard and determine
its physical address by walking the memory representation
of the OpenFirmware device tree.

Add bus-specific functions that know how to apply the
"ranges" property to one component of the "reg" property.
Buses supported so far include FHC, EBUS and PCI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/ofwarch.c

    r16529d5 r28ecadb  
    9696        for (; node != 0 && node != -1; node = ofw_get_peer_node(node)) {
    9797                if (ofw_get_property(node, "device_type", type_name, sizeof(type_name)) > 0) {
    98                         if (strncmp(type_name, "cpu", 3) == 0) {
     98                        if (strcmp(type_name, "cpu") == 0) {
    9999                                uint32_t mhz;
    100100                               
Note: See TracChangeset for help on using the changeset viewer.