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