diff --git a/src/sys/include/sys/device.h b/src/sys/include/sys/device.h index ecd8cb2..8bf3655 100644 --- a/src/sys/include/sys/device.h +++ b/src/sys/include/sys/device.h @@ -26,29 +26,21 @@ #include -struct device { - struct net *net; - uInt16 ioAddr; - uInt32 irq; - struct ei_device *priv; - uInt32 mtu; +struct deviceNode { + struct deviceNode *prev; + struct deviceNode *next; + char deviceType; + int major; + int minor; + void (*read)(void *,long,long,void *); + void (*write)(void *,long,long,void *); + void (*reset)(void *); + void (*ioctl)(void *); }; -struct net { - char mac[6]; - char broadcast[6]; - }; -struct ei_device { - int txStartPage; - int rxStartPage; - int stopPage; - int currentPage; - uInt16 word16; - uInt32 pingPong; - int tx1; - int tx2; - }; +void deviceAdd(int major,int minor,char type,void *read,void *write,void *reset,void *init,void *ioctl,uInt32 size); +struct deviceNode *deviceFind(int major,int minor); #endif