5 struct device *device_magellan(void);
7 static struct device *devlist;
10 void register_all(void)
14 if((dev = device_magellan()) && dev->init() != -1) {
20 struct device *dev_init(const char *name)
22 struct device *dev = devlist;
26 if(strcmp(dev->name, name) == 0) {
27 return dev->detect() ? dev : 0;
39 void dev_destroy(void)
42 struct device *dev = devlist;
43 devlist = devlist->next;
49 void set_port(const char *s)
55 const char *get_port(void)