Home | History | Annotate | Line # | Download | only in pci
      1  1.2  christos /* $NetBSD: gscpcibreg.h,v 1.2 2005/12/11 12:17:43 christos Exp $ */
      2  1.1  jmcneill /*	$OpenBSD: gscpcibreg.h,v 1.1 2004/06/03 18:22:21 grange Exp $	*/
      3  1.1  jmcneill /*
      4  1.1  jmcneill  * Copyright (c) 2004 Alexander Yurchenko <grange (at) openbsd.org>
      5  1.1  jmcneill  *
      6  1.1  jmcneill  * Permission to use, copy, modify, and distribute this software for any
      7  1.1  jmcneill  * purpose with or without fee is hereby granted, provided that the above
      8  1.1  jmcneill  * copyright notice and this permission notice appear in all copies.
      9  1.1  jmcneill  *
     10  1.1  jmcneill  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
     11  1.1  jmcneill  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     12  1.1  jmcneill  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     13  1.1  jmcneill  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     14  1.1  jmcneill  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     15  1.1  jmcneill  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     16  1.1  jmcneill  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     17  1.1  jmcneill  */
     18  1.1  jmcneill 
     19  1.1  jmcneill #ifndef _I386_PCI_GSCGPIOREG_H_
     20  1.1  jmcneill #define _I386_PCI_GSCGPIOREG_H_
     21  1.1  jmcneill 
     22  1.1  jmcneill #define GSCGPIO_NPINS	64
     23  1.1  jmcneill 
     24  1.1  jmcneill #define GSCGPIO_BASE	0x10
     25  1.1  jmcneill #define GSCGPIO_SIZE	64
     26  1.1  jmcneill 
     27  1.1  jmcneill #define GSCGPIO_GPDO0	0x00
     28  1.1  jmcneill #define GSCGPIO_GPDI0	0x04
     29  1.1  jmcneill #define GSCGPIO_GPIEN0	0x08
     30  1.1  jmcneill #define GSCGPIO_GPST0	0x0c
     31  1.1  jmcneill #define GSCGPIO_GPDO1	0x10
     32  1.1  jmcneill #define GSCGPIO_GPDI1	0x14
     33  1.1  jmcneill #define GSCGPIO_GPIEN1	0x18
     34  1.1  jmcneill #define GSCGPIO_GPST1	0x1c
     35  1.1  jmcneill #define GSCGPIO_SEL	0x20
     36  1.1  jmcneill #define GSCGPIO_CONF	0x24
     37  1.1  jmcneill #define GSCGPIO_RESET	0x28
     38  1.1  jmcneill 
     39  1.1  jmcneill #define GSCGPIO_CONF_OUTPUTEN	(1 << 0)
     40  1.1  jmcneill #define GSCGPIO_CONF_PUSHPULL	(1 << 1)
     41  1.1  jmcneill #define GSCGPIO_CONF_PULLUP	(1 << 2)
     42  1.1  jmcneill 
     43  1.1  jmcneill #endif	/* !_I386_PCI_GSCGPIOREG_H_ */
     44