wbsioreg.h revision 1.3 1 1.1 msaitoh /* $OpenBSD: wbsioreg.h,v 1.4 2015/01/02 23:02:54 chris Exp $ */
2 1.1 msaitoh /*
3 1.1 msaitoh * Copyright (c) 2008 Mark Kettenis <kettenis (at) openbsd.org>
4 1.1 msaitoh *
5 1.1 msaitoh * Permission to use, copy, modify, and distribute this software for any
6 1.1 msaitoh * purpose with or without fee is hereby granted, provided that the above
7 1.1 msaitoh * copyright notice and this permission notice appear in all copies.
8 1.1 msaitoh *
9 1.1 msaitoh * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 1.1 msaitoh * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 1.1 msaitoh * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 1.1 msaitoh * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 1.1 msaitoh * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 1.1 msaitoh * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 1.1 msaitoh * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 1.1 msaitoh */
17 1.1 msaitoh
18 1.1 msaitoh /*
19 1.1 msaitoh * Winbond LPC Super I/O driver registers
20 1.1 msaitoh */
21 1.1 msaitoh
22 1.1 msaitoh /* ISA bus registers */
23 1.1 msaitoh #define WBSIO_INDEX 0x00 /* Configuration Index Register */
24 1.1 msaitoh #define WBSIO_DATA 0x01 /* Configuration Data Register */
25 1.1 msaitoh
26 1.1 msaitoh #define WBSIO_IOSIZE 0x02 /* ISA I/O space size */
27 1.1 msaitoh
28 1.1 msaitoh #define WBSIO_CONF_EN_MAGIC 0x87 /* enable configuration mode */
29 1.1 msaitoh #define WBSIO_CONF_DS_MAGIC 0xaa /* disable configuration mode */
30 1.1 msaitoh
31 1.1 msaitoh /* Configuration Space Registers */
32 1.1 msaitoh #define WBSIO_LDN 0x07 /* Logical Device Number */
33 1.1 msaitoh #define WBSIO_ID 0x20 /* Device ID */
34 1.1 msaitoh #define WBSIO_REV 0x21 /* Device Revision */
35 1.1 msaitoh
36 1.1 msaitoh #define WBSIO_ID_W83627HF 0x52
37 1.1 msaitoh #define WBSIO_ID_W83697HF 0x60
38 1.1 msaitoh #define WBSIO_ID_W83637HF 0x70
39 1.1 msaitoh #define WBSIO_ID_W83627THF 0x82
40 1.1 msaitoh #define WBSIO_ID_W83687THF 0x85
41 1.3 msaitoh #define WBSIO_ID_W83627SF 0x595
42 1.3 msaitoh #define WBSIO_ID_W83697UG 0x681
43 1.3 msaitoh #define WBSIO_ID_W83627EHF_A 0x885
44 1.3 msaitoh #define WBSIO_ID_W83627EHF 0x886
45 1.3 msaitoh #define WBSIO_ID_W83627DHG 0xa02
46 1.3 msaitoh #define WBSIO_ID_W83627UHG 0xa23
47 1.3 msaitoh #define WBSIO_ID_W83667HG 0xa51
48 1.3 msaitoh #define WBSIO_ID_W83627DHGP 0xb07
49 1.3 msaitoh #define WBSIO_ID_W83667HGB 0xb35
50 1.3 msaitoh #define WBSIO_ID_NCT6775F 0xb47
51 1.3 msaitoh #define WBSIO_ID_NCT6776F 0xc33
52 1.3 msaitoh #define WBSIO_ID_NCT5104D 0xc45 /* 610[246]D */
53 1.3 msaitoh #define WBSIO_ID_NCT6779D 0xc56
54 1.3 msaitoh #define WBSIO_ID_NCT6791D 0xc80
55 1.3 msaitoh #define WBSIO_ID_NCT6792D 0xc91
56 1.3 msaitoh #define WBSIO_ID_NCT6793D 0xd12
57 1.3 msaitoh #define WBSIO_ID_NCT6795D 0xd35
58 1.1 msaitoh
59 1.1 msaitoh /* Logical Device Number (LDN) Assignments */
60 1.1 msaitoh #define WBSIO_LDN_HM 0x0b
61 1.1 msaitoh
62 1.1 msaitoh /* Hardware Monitor Control Registers (LDN B) */
63 1.1 msaitoh #define WBSIO_HM_ADDR_MSB 0x60 /* Address [15:8] */
64 1.1 msaitoh #define WBSIO_HM_ADDR_LSB 0x61 /* Address [7:0] */
65 1.1 msaitoh
66