Changeset 81fc57d in rtems-libbsd
- Timestamp:
- 01/17/18 13:14:30 (5 years ago)
- Branches:
- 5, 5-freebsd-12, 6-freebsd-12, master
- Children:
- 0f1d2f6
- Parents:
- 44fca38
- git-author:
- Sebastian Huber <sebastian.huber@…> (01/17/18 13:14:30)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (01/23/18 13:54:53)
- Location:
- rtemsbsd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rtemsbsd/powerpc/include/linux/of.h
r44fca38 r81fc57d 89 89 int of_device_is_compatible(const struct device_node *dn, const char *name); 90 90 91 struct device_node *of_find_node_by_path(struct device_node *dns, 92 const char *path); 93 91 94 struct device_node *of_find_compatible_node(struct device_node *dns, 92 95 const struct device_node *dn, const char *type, const char *compatible); -
rtemsbsd/sys/powerpc/compat.c
r44fca38 r81fc57d 91 91 92 92 struct device_node * 93 of_find_node_by_path(struct device_node *dns, const char *path) 94 { 95 const void *fdt = bsp_fdt_get(); 96 int node; 97 98 memset(dns, 0, sizeof(*dns)); 99 100 node = fdt_path_offset(fdt, path); 101 if (node < 0) 102 return (NULL); 103 104 dns->offset = node; 105 return (dns); 106 } 107 108 struct device_node * 93 109 of_find_compatible_node(struct device_node *dns, const struct device_node *dn, 94 110 const char *type, const char *compatible)
Note: See TracChangeset
for help on using the changeset viewer.