Changeset 1787e527 in mainline for boot/genarch/ofw_tree.h


Ignore:
Timestamp:
2009-11-16T21:22:54Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ebdf94
Parents:
fcbd1be (diff), 9c70ed6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merged with head (unstable)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw_tree.h

    rfcbd1be r1787e527  
    3333#include <ofw.h>
    3434
    35 #define OFW_TREE_PROPERTY_MAX_NAMELEN   32
    36 
    37 typedef struct ofw_tree_node ofw_tree_node_t;
    38 typedef struct ofw_tree_property ofw_tree_property_t;
    39 
    40 /** Memory representation of OpenFirmware device tree node. */
    41 struct ofw_tree_node {
    42         ofw_tree_node_t *parent;
    43         ofw_tree_node_t *peer;
    44         ofw_tree_node_t *child;
    45 
    46         uint32_t node_handle;                   /**< Old OpenFirmware node handle. */
    47 
    48         char *da_name;                          /**< Disambigued name. */
    49 
    50         unsigned properties;                    /**< Number of properties. */
    51         ofw_tree_property_t *property;
    52        
    53         void *device;                           /**< Member used solely by the kernel. */
    54 };
    5535
    5636/** Memory representation of OpenFirmware device tree node property. */
    57 struct ofw_tree_property {
     37typedef struct {
    5838        char name[OFW_TREE_PROPERTY_MAX_NAMELEN];
    5939        size_t size;
    6040        void *value;
    61 };
     41} ofw_tree_property_t;
     42
     43/** Memory representation of OpenFirmware device tree node. */
     44typedef struct ofw_tree_node {
     45        struct ofw_tree_node *parent;
     46        struct ofw_tree_node *peer;
     47        struct ofw_tree_node *child;
     48       
     49        uint32_t node_handle;           /**< Old OpenFirmware node handle. */
     50       
     51        char *da_name;                  /**< Disambigued name. */
     52       
     53        unsigned int properties;        /**< Number of properties. */
     54        ofw_tree_property_t *property;
     55       
     56        void *device;                   /**< Member used solely by the kernel. */
     57} ofw_tree_node_t;
    6258
    6359extern ofw_tree_node_t *ofw_tree_build(void);
Note: See TracChangeset for help on using the changeset viewer.