import cbaos v0.1
[cbaos.git] / include / device.h
blob58eb87659ab77b8169206776169052fb4d54c24f
1 #ifndef _DEVICE_H_
2 #define _DEVICE_H_
4 #include <list.h>
6 struct driver;
7 struct device {
8 struct list list;
9 const char *name;
10 struct driver *drv;
11 void *priv; /* private data for device */
14 int device_register(struct device *dev);
15 void device_unregister(struct device *dev);
16 struct device *device_find(const char *name);
18 #endif