> I believe, this must be only some lines of code, since only a few bytes
> will be written
> into an io section.
You can use /usr/src/linux/drivers/char/acquirewdt.c as a starting point
for a watchdog driver. Just change the IO addresses and switch from
reading bytes to writing bytes.
Quote:> Has anyone get something similar work ?
I've done it for the CI7BM SBC, using the method described above. You
can get the patch at http://fit.gmd.de/~cactus/ci7bm.patch. This has
been working for some weeks now, both as a module and compiled-in code.
Maybe someone should generalize this driver, so that the io-adresses and
the update method (reading or writing) can be given as a parameter at
kernel configuration time.
Bye, Roland
--
Please accept my resignation. I don't want to belong to any club
that will accept me as a member. -- Groucho Marx