xref: /dflybsd-src/sys/dev/powermng/wbsio/wbsioreg.h (revision 1d3c4164bc3dc27a65ecb7c0d728d08d88e33909)
1*1d3c4164SMatthew Dillon /* $OpenBSD: wbsioreg.h,v 1.3 2012/07/01 02:15:09 lteo Exp $ */
2*1d3c4164SMatthew Dillon /*
3*1d3c4164SMatthew Dillon  * Copyright (c) 2008 Mark Kettenis <kettenis@openbsd.org>
4*1d3c4164SMatthew Dillon  *
5*1d3c4164SMatthew Dillon  * Permission to use, copy, modify, and distribute this software for any
6*1d3c4164SMatthew Dillon  * purpose with or without fee is hereby granted, provided that the above
7*1d3c4164SMatthew Dillon  * copyright notice and this permission notice appear in all copies.
8*1d3c4164SMatthew Dillon  *
9*1d3c4164SMatthew Dillon  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*1d3c4164SMatthew Dillon  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*1d3c4164SMatthew Dillon  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*1d3c4164SMatthew Dillon  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*1d3c4164SMatthew Dillon  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*1d3c4164SMatthew Dillon  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15*1d3c4164SMatthew Dillon  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*1d3c4164SMatthew Dillon  */
17*1d3c4164SMatthew Dillon 
18*1d3c4164SMatthew Dillon /*
19*1d3c4164SMatthew Dillon  * Winbond LPC Super I/O driver registers
20*1d3c4164SMatthew Dillon  */
21*1d3c4164SMatthew Dillon 
22*1d3c4164SMatthew Dillon /* ISA bus registers */
23*1d3c4164SMatthew Dillon #define WBSIO_INDEX		0x00	/* Configuration Index Register */
24*1d3c4164SMatthew Dillon #define WBSIO_DATA		0x01	/* Configuration Data Register */
25*1d3c4164SMatthew Dillon 
26*1d3c4164SMatthew Dillon #define WBSIO_IOSIZE		0x02	/* ISA I/O space size */
27*1d3c4164SMatthew Dillon 
28*1d3c4164SMatthew Dillon #define WBSIO_CONF_EN_MAGIC	0x87	/* enable configuration mode */
29*1d3c4164SMatthew Dillon #define WBSIO_CONF_DS_MAGIC	0xaa	/* disable configuration mode */
30*1d3c4164SMatthew Dillon 
31*1d3c4164SMatthew Dillon /* Configuration Space Registers */
32*1d3c4164SMatthew Dillon #define WBSIO_LDN		0x07	/* Logical Device Number */
33*1d3c4164SMatthew Dillon #define WBSIO_ID		0x20	/* Device ID */
34*1d3c4164SMatthew Dillon #define WBSIO_REV		0x21	/* Device Revision */
35*1d3c4164SMatthew Dillon 
36*1d3c4164SMatthew Dillon #define WBSIO_ID_W83627HF	0x52
37*1d3c4164SMatthew Dillon #define WBSIO_ID_W83627THF	0x82
38*1d3c4164SMatthew Dillon #define WBSIO_ID_W83627EHF	0x88
39*1d3c4164SMatthew Dillon #define WBSIO_ID_W83627DHG	0xa0
40*1d3c4164SMatthew Dillon #define WBSIO_ID_W83627DHGP	0xb0
41*1d3c4164SMatthew Dillon #define WBSIO_ID_W83627UHG	0xa2
42*1d3c4164SMatthew Dillon #define WBSIO_ID_W83627SF	0x59
43*1d3c4164SMatthew Dillon #define WBSIO_ID_W83637HF	0x70
44*1d3c4164SMatthew Dillon #define WBSIO_ID_W83667HG	0xa5
45*1d3c4164SMatthew Dillon #define WBSIO_ID_W83687THF	0x85
46*1d3c4164SMatthew Dillon #define WBSIO_ID_W83697HF	0x60
47*1d3c4164SMatthew Dillon #define WBSIO_ID_NCT6776F	0xc3
48*1d3c4164SMatthew Dillon 
49*1d3c4164SMatthew Dillon /* Logical Device Number (LDN) Assignments */
50*1d3c4164SMatthew Dillon #define WBSIO_LDN_HM		0x0b
51*1d3c4164SMatthew Dillon 
52*1d3c4164SMatthew Dillon /* Hardware Monitor Control Registers (LDN B) */
53*1d3c4164SMatthew Dillon #define WBSIO_HM_ADDR_MSB	0x60	/* Address [15:8] */
54*1d3c4164SMatthew Dillon #define WBSIO_HM_ADDR_LSB	0x61	/* Address [7:0] */
55