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