diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-09-19 14:15:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-09-20 21:12:46 +0200 |
commit | 808ec3192b9f7b421807426cf2c28313d01cbd27 (patch) | |
tree | 54e9794638a536a1e94818acba8d94ce52d3d1fd /include | |
parent | ecdb717a0337664b113234c3a87803d6271ebf22 (diff) | |
download | barebox-808ec3192b9f7b421807426cf2c28313d01cbd27.tar.gz barebox-808ec3192b9f7b421807426cf2c28313d01cbd27.tar.xz |
resource: introduce add_generic_device_res to add multiple resource
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/driver.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h index e9ac7279f4..80de0c8377 100644 --- a/include/driver.h +++ b/include/driver.h @@ -205,6 +205,13 @@ struct device_d *add_generic_device(const char* devname, int id, const char *res void *pdata); /* + * register a generic device + * with multiple resources + */ +struct device_d *add_generic_device_res(const char* devname, int id, + struct resource *res, int nb, void *pdata); + +/* * register a memory device */ static inline struct device_d *add_mem_device(const char *name, resource_size_t start, |