Home | History | Annotate | Line # | Download | only in pci
i82802reg.h revision 1.1.80.2
      1  1.1.80.2  yamt /*	$NetBSD: i82802reg.h,v 1.1.80.2 2010/08/11 22:52:56 yamt Exp $	*/
      2       1.1  tron 
      3       1.1  tron /*
      4       1.1  tron  * Copyright (c) 2000 Michael Shalayeff
      5       1.1  tron  * All rights reserved.
      6       1.1  tron  *
      7       1.1  tron  * Redistribution and use in source and binary forms, with or without
      8       1.1  tron  * modification, are permitted provided that the following conditions
      9       1.1  tron  * are met:
     10       1.1  tron  * 1. Redistributions of source code must retain the above copyright
     11       1.1  tron  *    notice, this list of conditions and the following disclaimer.
     12       1.1  tron  * 2. Redistributions in binary form must reproduce the above copyright
     13       1.1  tron  *    notice, this list of conditions and the following disclaimer in the
     14       1.1  tron  *    documentation and/or other materials provided with the distribution.
     15       1.1  tron  *
     16       1.1  tron  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17       1.1  tron  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18       1.1  tron  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19       1.1  tron  * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
     20       1.1  tron  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     21       1.1  tron  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     22       1.1  tron  * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     23       1.1  tron  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     24       1.1  tron  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
     25       1.1  tron  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     26       1.1  tron  * THE POSSIBILITY OF SUCH DAMAGE.
     27       1.1  tron  */
     28       1.1  tron 
     29       1.1  tron /*
     30       1.1  tron  * Intel 82802AB/82802AC Firmware Hub
     31       1.1  tron  *
     32       1.1  tron  * see:	ftp://download.intel.com/design/chipsets/datashts/29065804.pdf
     33       1.1  tron  *	and http://www.intel.com/design/chipsets/datashts/29065804.pdf
     34       1.1  tron  */
     35       1.1  tron 
     36       1.1  tron /*
     37  1.1.80.2  yamt  * MMIO bases and sizes
     38       1.1  tron  */
     39  1.1.80.2  yamt #define	I82802AC_REGBASE	0xffb00000
     40  1.1.80.2  yamt #define	I82802AC_MEMBASE	0xfff00000
     41  1.1.80.2  yamt #define	I82802AC_WINSIZE	0x00100000
     42  1.1.80.2  yamt 
     43  1.1.80.2  yamt #define I82802_MFG	0x89
     44  1.1.80.2  yamt #define I82802AB_ID	0xad
     45  1.1.80.2  yamt #define I82802AC_ID	0xac
     46  1.1.80.2  yamt 
     47  1.1.80.2  yamt /*
     48  1.1.80.2  yamt  * Intel FWH registers
     49  1.1.80.2  yamt  */
     50  1.1.80.2  yamt #define	I82802_T_BLOCK_LK	0xf0002
     51  1.1.80.2  yamt #define	I82802_T_MINUS01_LK	0xe0002
     52  1.1.80.2  yamt #define	I82802_T_MINUS02_LK	0xd0002
     53  1.1.80.2  yamt #define	I82802_T_MINUS03_LK	0xc0002
     54  1.1.80.2  yamt #define	I82802_T_MINUS04_LK	0xb0002
     55  1.1.80.2  yamt #define	I82802_T_MINUS05_LK	0xa0002
     56  1.1.80.2  yamt #define	I82802_T_MINUS06_LK	0x90002
     57  1.1.80.2  yamt #define	I82802_T_MINUS07_LK	0x80002
     58  1.1.80.2  yamt 
     59  1.1.80.2  yamt #define	I82802_T_MINUS08_LK	0x70002
     60  1.1.80.2  yamt #define	I82802_T_MINUS09_LK	0x60002
     61  1.1.80.2  yamt #define	I82802_T_MINUS10_LK	0x50002
     62  1.1.80.2  yamt #define	I82802_T_MINUS11_LK	0x40002
     63  1.1.80.2  yamt #define	I82802_T_MINUS12_LK	0x30002
     64  1.1.80.2  yamt #define	I82802_T_MINUS13_LK	0x20002
     65  1.1.80.2  yamt #define	I82802_T_MINUS14_LK	0x10002
     66  1.1.80.2  yamt #define	I82802_T_MINUS15_LK	0x00002
     67  1.1.80.2  yamt 
     68  1.1.80.2  yamt #define	I82802_GPI_REG		0xc0100
     69  1.1.80.2  yamt 
     70  1.1.80.2  yamt #define	I82802_RNG_HSR		0xc015f /* Hardware Status */
     71  1.1.80.2  yamt #define	I82802_RNG_DSR		0xc0160 /* Data Status */
     72  1.1.80.2  yamt #define	I82802_RNG_DR		0xc0161 /* Data */
     73       1.1  tron 
     74       1.1  tron /*
     75       1.1  tron  * T_BLOCK_LK and T_MINUS_* (block locking registers)
     76       1.1  tron  * (table 4-5)
     77       1.1  tron  */
     78       1.1  tron #define	I82802_BLR_RD		0x04
     79       1.1  tron #define	I82802_BLR_LD		0x02
     80       1.1  tron #define	I82802_BLR_WL		0x01
     81       1.1  tron 
     82       1.1  tron /*
     83       1.1  tron  * General Purpose Inputs Register
     84       1.1  tron  * (table 4-7)
     85  1.1.80.2  yamt  */					/* PLCC32/TSOP40 pin # */
     86  1.1.80.2  yamt #define	I82802_GPI_REG_FGPI4	0x10	/*    30 /  7    */
     87  1.1.80.2  yamt #define	I82802_GPI_REG_FGPI3	0x08	/*     3 / 15    */
     88  1.1.80.2  yamt #define	I82802_GPI_REG_FGPI2	0x04	/*     4 / 16    */
     89  1.1.80.2  yamt #define	I82802_GPI_REG_FGPI1	0x02	/*     5 / 17    */
     90  1.1.80.2  yamt #define	I82802_GPI_REG_FGPI0	0x01	/*     6 / 18    */
     91       1.1  tron 
     92       1.1  tron /*
     93       1.1  tron  * RNG registers
     94       1.1  tron  */
     95  1.1.80.2  yamt #define	I82802_RNG_HSR_PRESENT	0x40
     96  1.1.80.2  yamt #define	I82802_RNG_HSR_ENABLE	0x01
     97  1.1.80.2  yamt #define	I82802_RNG_DSR_VALID	0x01
     98