Changeset 28ecadb in mainline for boot/arch/sparc64


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.

Location:
boot/arch/sparc64/loader
Files:
3 edited

Legend:

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

    r16529d5 r28ecadb  
    6666        bootinfo.screen.scanline = bootinfo.screen.scanline*bpp2align[bootinfo.screen.bpp >> 3];
    6767       
    68         if (!ofw_keyboard(&bootinfo.keyboard))
    69                 printf("Error: unable to get keyboard properties\n");
    70 
    7168        if (!ofw_cpu(&bootinfo.cpu))
    7269                printf("Error: unable to get cpu properties\n");
     
    7673        printf(" memory: %dM\n", bootinfo.memmap.total>>20);
    7774        printf(" screen at %P, resolution %dx%d, %d bpp (scanline %d bytes)\n", (uintptr_t) bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline);
    78         printf(" keyboard at %P (size %d bytes)\n", (uintptr_t) bootinfo.keyboard.addr, bootinfo.keyboard.size);
    7975
    8076        printf("\nMemory statistics\n");
  • boot/arch/sparc64/loader/main.h

    r16529d5 r28ecadb  
    5555        memmap_t memmap;
    5656        screen_t screen;
    57         keyboard_t keyboard;
    5857        cpu_t cpu;
    5958        ballocs_t ballocs;
  • 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.