Changeset 3abe07f5 in mainline


Ignore:
Timestamp:
2006-09-19T19:03:55Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61e90dd
Parents:
19dba2b
Message:

Add prototype implementation for creating canonical copy of OpenFirmware device tree.

Location:
boot
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/Makefile

    r19dba2b r3abe07f5  
    5454        ../../../generic/string.c \
    5555        ../../../genarch/ofw.c \
     56        ../../../genarch/ofw_tree.c \
    5657        ofwarch.c \
    5758        asm.S \
  • boot/genarch/ofw.c

    r19dba2b r3abe07f5  
    110110}
    111111
    112 
    113112phandle ofw_find_device(const char *name)
    114113{
     
    116115}
    117116
    118 
    119117int ofw_get_property(const phandle device, const char *name, const void *buf, const int buflen)
    120118{
     
    122120}
    123121
     122int ofw_get_proplen(const phandle device, const char *name)
     123{
     124        return ofw_call("getproplen", 2, 1, NULL, device, name);
     125}
     126
     127int ofw_next_property(const phandle device, char *previous, char *buf)
     128{
     129        return ofw_call("nextprop", 3, 1, NULL, device, previous, buf);
     130}
    124131
    125132unsigned int ofw_get_address_cells(const phandle device)
  • boot/genarch/ofw.h

    r19dba2b r3abe07f5  
    104104
    105105extern int ofw_get_property(const phandle device, const char *name, const void *buf, const int buflen);
     106extern int ofw_get_proplen(const phandle device, const char *name);
     107extern int ofw_next_property(const phandle device, char *previous, char *buf);
    106108
    107109extern phandle ofw_get_child_node(const phandle node);
Note: See TracChangeset for help on using the changeset viewer.