Subject: Re: CVS commit: src/sys/dev/ic
To: None <jmcneill@netbsd.org>
From: Simon Burge <simonb@NetBSD.org>
List: source-changes
Date: 06/21/2006 09:29:09
"Jared D. McNeill" wrote:

> Module Name:	src
> Committed By:	jmcneill
> Date:		Tue Jun 20 15:35:11 UTC 2006
> 
> Modified Files:
> 
> 	src/sys/dev/ic: spic.c spicvar.h
> 
> Log Message:
> 
> Hook the lid switch, sleep button, and hibernate button into sysmon. This
> enables special Fn keys on Sony Vaio laptops.

There's lots of magic numbers in there.  For example:

+       if (v2 == 0x30) {
+               case 0x50:      /* opened */
+               case 0x51:      /* closed */
+       if (v2 == 0x20) {
+               case 0x10:      /* suspend */
+               case 0x1c:      /* hibernate */


Should we have a spicreg.h with some of these described a bit more
fully?

Simon.