Home | History | Annotate | Line # | Download | only in pci
i82802reg.h revision 1.1
      1  1.1  tron /*	$NetBSD: i82802reg.h,v 1.1 2006/02/12 18:16:01 tron 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  * 3. All advertising materials mentioning features or use of this software
     16  1.1  tron  *    must display the following acknowledgement:
     17  1.1  tron  *      This product includes software developed by Michael Shalayeff.
     18  1.1  tron  * 4. The name of the author may not be used to endorse or promote products
     19  1.1  tron  *    derived from this software without specific prior written permission.
     20  1.1  tron  *
     21  1.1  tron  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     22  1.1  tron  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     23  1.1  tron  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     24  1.1  tron  * IN NO EVENT SHALL THE AUTHOR OR HIS RELATIVES BE LIABLE FOR ANY DIRECT,
     25  1.1  tron  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     26  1.1  tron  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     27  1.1  tron  * SERVICES; LOSS OF MIND, USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     28  1.1  tron  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     29  1.1  tron  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
     30  1.1  tron  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     31  1.1  tron  * THE POSSIBILITY OF SUCH DAMAGE.
     32  1.1  tron  */
     33  1.1  tron 
     34  1.1  tron /*
     35  1.1  tron  * Intel 82802AB/82802AC Firmware Hub
     36  1.1  tron  *
     37  1.1  tron  * see:	ftp://download.intel.com/design/chipsets/datashts/29065804.pdf
     38  1.1  tron  *	and http://www.intel.com/design/chipsets/datashts/29065804.pdf
     39  1.1  tron  */
     40  1.1  tron 
     41  1.1  tron /*
     42  1.1  tron  * unfortunatelly FWH does not show up in the pci device scan, 10x intel.
     43  1.1  tron  * so all we do is probe for it in the pchb driver at the following address.
     44  1.1  tron  */
     45  1.1  tron #define	I82802_IOBASE	0xffb00000
     46  1.1  tron #define	I82802_IOSIZE	0x00100000
     47  1.1  tron 
     48  1.1  tron /*
     49  1.1  tron  * FWH registers
     50  1.1  tron  * (table 4-4)
     51  1.1  tron  */
     52  1.1  tron #define	I82802_BLOCK_LK		0xf0002
     53  1.1  tron #define	I82802_MINUS01_LK	0xe0002
     54  1.1  tron #define	I82802_MINUS02_LK	0xd0002
     55  1.1  tron #define	I82802_MINUS03_LK	0xc0002
     56  1.1  tron #define	I82802_MINUS04_LK	0xb0002
     57  1.1  tron #define	I82802_MINUS05_LK	0xa0002
     58  1.1  tron #define	I82802_MINUS06_LK	0x90002
     59  1.1  tron #define	I82802_MINUS07_LK	0x80002
     60  1.1  tron #define	I82802_MINUS08_LK	0x70002
     61  1.1  tron #define	I82802_MINUS09_LK	0x60002
     62  1.1  tron #define	I82802_MINUS10_LK	0x50002
     63  1.1  tron #define	I82802_MINUS11_LK	0x40002
     64  1.1  tron #define	I82802_MINUS12_LK	0x30002
     65  1.1  tron #define	I82802_MINUS13_LK	0x20002
     66  1.1  tron #define	I82802_MINUS14_LK	0x10002
     67  1.1  tron #define	I82802_MINUS15_LK	0x00002
     68  1.1  tron #define	I82802_FGPI_REG		0xc0100
     69  1.1  tron 
     70  1.1  tron /*
     71  1.1  tron  * T_BLOCK_LK and T_MINUS_* (block locking registers)
     72  1.1  tron  * (table 4-5)
     73  1.1  tron  */
     74  1.1  tron #define	I82802_BLR_RD		0x04
     75  1.1  tron #define	I82802_BLR_LD		0x02
     76  1.1  tron #define	I82802_BLR_WL		0x01
     77  1.1  tron 
     78  1.1  tron /*
     79  1.1  tron  * Register Based Locking Value Definitions
     80  1.1  tron  * (tabe 4-6)
     81  1.1  tron  */
     82  1.1  tron #define	I82802_LV_FULL		0x00
     83  1.1  tron #define	I82802_LV_WRITE		0x01
     84  1.1  tron #define	I82802_LV_DOWN		0x02
     85  1.1  tron #define	I82802_LV_READ		0x04
     86  1.1  tron 
     87  1.1  tron /*
     88  1.1  tron  * General Purpose Inputs Register
     89  1.1  tron  * (table 4-7)
     90  1.1  tron  */
     91  1.1  tron #define	I82802_FGPI_PIN4	0x10	/* PLCC-30/T SOP-7  */
     92  1.1  tron #define	I82802_FGPI_PIN3	0x08	/* PLCC-30/T SOP-15 */
     93  1.1  tron #define	I82802_FGPI_PIN2	0x04	/* PLCC-30/T SOP-16 */
     94  1.1  tron #define	I82802_FGPI_PIN1	0x02	/* PLCC-30/T SOP-17 */
     95  1.1  tron #define	I82802_FGPI_PIN0	0x01	/* PLCC-30/T SOP-18 */
     96  1.1  tron 
     97  1.1  tron /*
     98  1.1  tron  * RNG registers
     99  1.1  tron  */
    100  1.1  tron #define	I82802_RNG_HWST		0xc015f
    101  1.1  tron #define	I82802_RNG_HWST_PRESENT	0x40
    102  1.1  tron #define	I82802_RNG_HWST_ENABLE	0x01
    103  1.1  tron #define	I82802_RNG_RNGST	0xc0160
    104  1.1  tron #define	I82802_RNG_RNGST_DATAV	0x01
    105  1.1  tron #define	I82802_RNG_DATA		0xc0161
    106