Changeset 44fca38 in rtems-libbsd


Ignore:
Timestamp:
Jan 17, 2018, 1:14:10 PM (18 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
81fc57d
Parents:
26ce2ac
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/18 13:14:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/23/18 13:54:50)
Message:

linux/of.h: Add of_read_number()

Update #3277.

Location:
rtemsbsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/powerpc/include/linux/of.h

    r26ce2ac r44fca38  
    7777}
    7878
     79uint64_t of_read_number(const uint32_t *cell, int size);
     80
    7981struct device_node *of_parse_phandle(struct device_node *dns,
    8082    struct device_node *dn, const char *phandle_name, int index);
  • rtemsbsd/sys/powerpc/compat.c

    r26ce2ac r44fca38  
    122122}
    123123
     124uint64_t
     125of_read_number(const uint32_t *cell, int size)
     126{
     127        uint64_t number;
     128
     129        number = 0;
     130
     131        while (size > 0) {
     132                number = (number << 32) | fdt32_to_cpu(*cell);
     133                ++cell;
     134                --size;
     135        }
     136
     137        return (number);
     138}
     139
    124140struct device_node *
    125141of_parse_phandle(struct device_node *dns, struct device_node *dn,
Note: See TracChangeset for help on using the changeset viewer.