Re: [Driver] SC1100 watchdog driver

2004-02-25 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> "Claudio Martella" <[EMAIL PROTECTED]> writes: : Through the DEV_MODULE() macro i defined the loading routine and : used DRIVER_MODULE() macro to define the pci driver. : My first doubt is if : it's legal to use both of them in the same file/driver. Sho

[Driver] SC1100 watchdog driver

2004-02-25 Thread Claudio Martella
I'm writing a driver for Geode SC1100's watchdog for FreeBSD-4.8. It's my frist device driver for this operating system and i've got one question: I'm willing to write the driver as a module: i wrote both struct cdevsw and struct device_method_t as struct driver_t. For the first i wrote just the