Changeset 0d421d8 in rtems-libbsd


Ignore:
Timestamp:
Jan 17, 2018, 1:13:34 PM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
26ce2ac
Parents:
066b536
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/18 13:13:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/23/18 13:54:44)
Message:

linux/of.h: Add of_n_addr_cells()

Update #3277.

Location:
rtemsbsd
Files:
2 edited

Legend:

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

    r066b536 r0d421d8  
    6060    int *len);
    6161
     62int of_n_addr_cells(struct device_node *dn);
     63
    6264/* FIXME: If we need the property, then more work is to do */
    6365#define of_find_property(dn, name, len) of_get_property(dn, name, len)
  • rtemsbsd/sys/powerpc/compat.c

    r066b536 r0d421d8  
    206206
    207207int
     208of_n_addr_cells(struct device_node *dn)
     209{
     210
     211        return (get_address_cells(bsp_fdt_get(), dn->offset));
     212}
     213
     214int
    208215of_address_to_resource(struct device_node *dn, int index,
    209216    struct resource *res)
Note: See TracChangeset for help on using the changeset viewer.