summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:25 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:25 +0200
commita0b0cfc5ed9759a50aefc264c7490b19d617d12b (patch)
treead31938638788dd77bc56bad43987f5ea3203693 /include/net.h
parent55ebf67d3ec2b0727f86a54157a2740e9e8472c3 (diff)
downloadbarebox-a0b0cfc5ed9759a50aefc264c7490b19d617d12b.tar.gz
barebox-a0b0cfc5ed9759a50aefc264c7490b19d617d12b.tar.xz
svn_rev_121
implement device parameters
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index 6c78e1d628..493df70fb6 100644
--- a/include/net.h
+++ b/include/net.h
@@ -108,8 +108,13 @@ struct eth_device {
struct eth_device *next;
void *priv;
+
+ char *param[4];
};
+struct param_d *eth_param_get(struct device_d* dev, int no);
+int eth_param_set(struct device_d* dev, struct param_d *param, char *val);
+
extern int eth_register(struct eth_device* dev);/* Register network device */
extern void eth_try_another(int first_restart); /* Change the device */
extern struct eth_device *eth_get_dev(void); /* get the current device MAC */