diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-04-13 12:57:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-04-13 12:57:14 +0200 |
commit | ee0035e5ccee0056e23b2dda2cade0c5ca756713 (patch) | |
tree | 9e02a89c11c7574bace93f2c3731c4175e0ea649 /include | |
parent | a76a6bc8fd62bc26140d421d09e71624ee13aa47 (diff) | |
parent | 1487e6b9ad2ec0fafb0a2a35c921a33fb6c37fec (diff) | |
download | barebox-ee0035e5ccee0056e23b2dda2cade0c5ca756713.tar.gz barebox-ee0035e5ccee0056e23b2dda2cade0c5ca756713.tar.xz |
Merge branch 'for-next/state'
Diffstat (limited to 'include')
-rw-r--r-- | include/state.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/state.h b/include/state.h new file mode 100644 index 0000000000..95bf8d263b --- /dev/null +++ b/include/state.h @@ -0,0 +1,21 @@ +#ifndef __STATE_H +#define __STATE_H + +struct state; + +int state_backend_dtb_file(struct state *state, const char *path); +int state_backend_raw_file(struct state *state, const char *path, + off_t offset, size_t size); + +struct state *state_new_from_fdt(const char *name, void *fdt); +struct state *state_new_from_node(const char *name, struct device_node *node); + +struct state *state_by_name(const char *name); +struct state *state_by_node(const struct device_node *node); +int state_get_name(const struct state *state, char const **name); + +int state_load(struct state *state); +int state_save(struct state *state); +void state_info(void); + +#endif /* __STATE_H */ |