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