git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move gic to new devtree interface
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
devtree.h
diff --git
a/lunaix-os/includes/hal/devtree.h
b/lunaix-os/includes/hal/devtree.h
index e7e0cf37ce0a32c36ece6877426e7db109ec8ab2..5578284b1d878ff715d756dda68a2fa8052fda23 100644
(file)
--- a/
lunaix-os/includes/hal/devtree.h
+++ b/
lunaix-os/includes/hal/devtree.h
@@
-259,7
+259,7
@@
struct dtn_base
struct dtp_table *props;
struct dtp_table *props;
- morph_t *binded_
dev
;
+ morph_t *binded_
obj
;
};
struct dtspec_key
};
struct dtspec_key
@@
-442,6
+442,12
@@
dtp_val_set(struct dtp_val* val, dt_enc_t raw, unsigned cells)
val->size = cells * sizeof(u32_t);
}
val->size = cells * sizeof(u32_t);
}
+static inline void
+dtn_bind_object(struct dtn* node, morph_t* mobj)
+{
+ node->base.binded_obj = changeling_ref(mobj);
+}
+
//////////////////////////////////////
/// DT Methods: Specifier Map
//////////////////////////////////////
/// DT Methods: Specifier Map
@@
-589,11
+595,11
@@
struct dtpropx
#define dtprop_reglike(base) \
({ \
dt_proplet p = { \
#define dtprop_reglike(base) \
({ \
dt_proplet p = { \
- dtprop_compx(
base->addr_c),
\
- dtprop_compx(
base->sz_c),
\
+ dtprop_compx(
(base)->addr_c),
\
+ dtprop_compx(
(base)->sz_c),
\
dtprop_end \
}; \
dtprop_end \
}; \
-
dt_proplet
; \
+
p
; \
})
#define dtprop_rangelike(node) \
})
#define dtprop_rangelike(node) \
@@
-604,7
+610,7
@@
struct dtpropx
dtprop_compx(base->sz_c), \
dtprop_end \
}; \
dtprop_compx(base->sz_c), \
dtprop_end \
}; \
-
dt_proplet
; \
+
p
; \
})
#define dtprop_strlst_foreach(pos, prop) \
})
#define dtprop_strlst_foreach(pos, prop) \