summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-23 17:42:28 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-07-29 14:04:24 +0800
commit06c36cf09e08cfd054c2d1e61be8492c4e5dc929 (patch)
tree15b21f44075e7deeeabde516f9b55478dbcce050 /include
parent3465da7aa8821252f95aec5e8bb7e6a8f4f4a4f0 (diff)
downloadbarebox-06c36cf09e08cfd054c2d1e61be8492c4e5dc929.tar.gz
barebox-06c36cf09e08cfd054c2d1e61be8492c4e5dc929.tar.xz
dm9000: introduce add_dm9000_device to register dm9000 device
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include')
-rw-r--r--include/dm9000.h1
-rw-r--r--include/driver.h11
2 files changed, 11 insertions, 1 deletions
diff --git a/include/dm9000.h b/include/dm9000.h
index c4618f1be7..a9a4635d2a 100644
--- a/include/dm9000.h
+++ b/include/dm9000.h
@@ -3,7 +3,6 @@
#define __DM9000_H__
struct dm9000_platform_data {
- int buswidth;
int srom;
};
diff --git a/include/driver.h b/include/driver.h
index 9f0075489f..38c0bcae7f 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -235,6 +235,17 @@ static inline struct device_d *add_ns16550_device(int id, resource_size_t start,
IORESOURCE_MEM, pdata);
}
+#ifdef CONFIG_DRIVER_NET_DM9000
+struct device_d *add_dm9000_device(int id, resource_size_t base,
+ resource_size_t data, int flags, void *pdata);
+#else
+static inline struct device_d *add_dm9000_device(int id, resource_size_t base,
+ resource_size_t data, int flags, void *pdata)
+{
+ return NULL;
+}
+#endif
+
/* linear list over all available devices
*/
extern struct list_head device_list;