New W83627HF Watchdog Driver

2007-04-27 Thread Jon Steel
Hi I have created a driver for the watchdog on the W83627HF. It would be very easy to support other Winbond watchdogs with this driver but I didnt bother to because I dont have access to any other chips. I have tested it on both the SuperMicro 5013G-M and 5015M-MT, and with OpenBSD 3.6, 4.0, and

Re: New W83627HF Watchdog Driver

2007-04-27 Thread Stuart Henderson
On 2007/04/27 12:30, Jon Steel wrote: I have created a driver for the watchdog on the W83627HF. It would be very easy to support other Winbond watchdogs with this driver but I didnt bother to because I dont have access to any other chips. I have tested it on both the SuperMicro 5013G-M and

Re: New W83627HF Watchdog Driver

2007-04-27 Thread Sam Fourman Jr.
hello, I was wondering if this patch would make the wind bond device in my computer work. here is a dmesg from a month old -current install OpenBSD 4.1-current (GENERIC.MP) #1238: Wed Mar 21 17:32:34 MDT 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R)

Re: New W83627HF Watchdog Driver

2007-04-27 Thread Jon Steel
Thanks for the pointers. Heres the update. And just a quick question for anybody, why do some of the macros in the OS look like: #define DEBUG(x) do { ... } while(0); Is this some kind of compiler trick? Thanks Again Jonathan Steel = File: /sys/dev/isa/wbwdg.c

Re: New W83627HF Watchdog Driver

2007-04-27 Thread Pierre Riteau
On 4/27/07, Jon Steel [EMAIL PROTECTED] wrote: Thanks for the pointers. Heres the update. And just a quick question for anybody, why do some of the macros in the OS look like: #define DEBUG(x) do { ... } while(0); Is this some kind of compiler trick? style(9) : If the macro encapsulates a

Re: New W83627HF Watchdog Driver

2007-04-27 Thread Stuart Henderson
On 2007/04/27 15:09, Sam Fourman Jr. wrote: I was wondering if this patch would make the wind bond device in my computer work. this patch is for the watchdog timer, not the sensors; lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0x88) it looks like you have W83627EHF, it seems from list

Re: New W83627HF Watchdog Driver

2007-04-27 Thread Stuart Henderson
On 2007/04/28 01:29, Stuart Henderson wrote: it looks like you have W83627EHF, it seems from list posts that there are versions with various IDs (0x88, 0xa1, 0xc1). The 0xa1 devices are already supported, it's possibly just a case of ah, hang on, I just found the datasheet. there are two