diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:27 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:27 +0200 |
commit | 42e2dbc120f1a74c8588b5643471bb11e3625a13 (patch) | |
tree | 6cb23ba269bf9f22344ee368f0d968d799d491eb /include/driver.h | |
parent | aabb4586a415ea39b84dd0ddfa8b4eba2d09de5e (diff) | |
download | barebox-42e2dbc120f1a74c8588b5643471bb11e3625a13.tar.gz barebox-42e2dbc120f1a74c8588b5643471bb11e3625a13.tar.xz |
svn_rev_149
no need for bi_dram in global data (untested)
Diffstat (limited to 'include/driver.h')
-rw-r--r-- | include/driver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h index e8d185b016..24f28032ec 100644 --- a/include/driver.h +++ b/include/driver.h @@ -17,7 +17,8 @@ struct param_d { #define DEVICE_TYPE_UNKNOWN 0 #define DEVICE_TYPE_ETHER 1 #define DEVICE_TYPE_STDIO 2 -#define MAX_DEVICE_TYPE 2 +#define DEVICE_TYPE_DRAM 3 +#define MAX_DEVICE_TYPE 3 struct device_d { char name[MAX_DRIVER_NAME]; @@ -72,6 +73,7 @@ void unregister_device(struct device_d *); struct device_d *device_from_spec_str(const char *str, char **endp); struct device_d *get_device_by_name(char *name); +struct device_d *get_device_by_type(ulong type, struct device_d *last); ssize_t read(struct device_d *dev, void *buf, size_t count, ulong offset, ulong flags); ssize_t write(struct device_d *dev, void *buf, size_t count, ulong offset, ulong flags); |