Ziatech 5503 watchdog driver

John Baldwin jhb at FreeBSD.org
Wed Mar 23 11:37:13 PST 2005


On Saturday 19 March 2005 04:04 am, Devon H. O'Dell wrote:
> On Sat, Mar 19, 2005 at 09:43:41AM +0100, Devon H. O'Dell  wrote:
> > On Sat, Mar 19, 2005 at 09:02:15AM +0100, Devon H. O'Dell  wrote:
> > > On Fri, Mar 18, 2005 at 03:55:53PM -0700, Warner Losh wrote:
> > > > > I'm busy writing a Ziatech 5503 watchdog driver for FreeBSD (and
> > > > > porting all the watchdog stuff to DragonFly BSD) and Plan 9. For my
> > > > > driver, I have no way to identify that the system has the driver,
> > > > > so I wanted to make it conditional on
> > >
> > > Rather, I have no way to identify that the system has the device :).
> >
> > AHA! But I have finally found something that will make my life a
> > little easier, I think. I just noticed a read only register with a
> > default value of 0x80 and tested it. It returns 0x80. Is this enough
> > to test on / probe for?
> >
> > --Devon
>
> Sorry, hate replying to myself. Turns out the value here is variable.
>
> Assuming I cannot find anything to identify the system, can I simply
> attach the driver if it is enabled in the configuration file?

Yes.  See the identify routines for things like apm and pmtimer for examples.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-hackers mailing list