Changeset 44fca38 in rtems-libbsd


Ignore:
Timestamp:
Jan 17, 2018, 1:14:10 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 7f47f2784138109b8363804c2aecd3d83231ab0f, f1f03620800b14146977d78fb4322d80da04b53a, 90a9fd66e0a85d8520bbb4bbcb72bfd274965961
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.