summaryrefslogtreecommitdiffstats
path: root/src/superio/nsc/pc87427/pc87427.h
blob: 7933abc562713ee74fbe578adfd1d245caf789f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 2000 AG Electronics Ltd.
 * Copyright (C) 2003-2004 Linux Networx
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 */

#ifndef SUPERIO_NSC_PC87427_PC87427_H
#define SUPERIO_NSC_PC87427_PC87427_H

#define PC87427_FDC  0x00 /* Floppy */
#define PC87427_SP2  0x02 /* Com2 */
#define PC87427_SP1  0x03 /* Com1 */
#define PC87427_SWC  0x04
#define PC87427_KBCM 0x05 /* Mouse */
#define PC87427_KBCK 0x06 /* Keyboard */
#define PC87427_GPIO 0x07
#define PC87427_FMC  0x09
#define PC87427_WDT  0x0A
#define PC87427_XBUS 0x0F
#define PC87427_RTC  0x10
#define PC87427_MHC  0x14

#define PC87427_GPIO_DEV PNP_DEV(0x2e, PC87427_GPIO)
/* This is to get around a romcc bug */
/* #define PC87427_XBUS_DEV PNP_DEV(0x2e, PC87427_XBUS) */
#define PC87427_XBUS_DEV PNP_DEV(0x2e, 0x0f)

#define PC87427_GPSEL		0xf0
#define PC87427_GPCFG1		0xf1
#define PC87427_GPEVR		0xf2
#define PC87427_GPCFG2		0xf3
#define PC87427_EXTCFG		0xf4
#define PC87427_IOEXT1A		0xf5
#define PC87427_IOEXT1B		0xf6
#define PC87427_IOEXT2A		0xf7
#define PC87427_IOEXT2B		0xf8

#define PC87427_GPDO_0		0x00
#define PC87427_GPDI_0		0x01
#define PC87427_GPDO_1		0x02
#define PC87427_GPDI_1		0x03
#define PC87427_GPEVEN_1	0x04
#define PC87427_GPEVST_1	0x05
#define PC87427_GPDO_2		0x06
#define PC87427_GPDI_2		0x07
#define PC87427_GPDO_3		0x08
#define PC87427_GPDI_3		0x09
#define PC87427_GPDO_4		0x0a
#define PC87427_GPDI_4		0x0b
#define PC87427_GPEVEN_4	0x0c
#define PC87427_GPEVST_4	0x0d
#define PC87427_GPDO_5		0x0e
#define PC87427_GPDI_5		0x0f
#define PC87427_GPDO_6		0x10
#define PC87427_GPDO_7A		0x11
#define PC87427_GPDO_7B		0x12
#define PC87427_GPDO_7C		0x13
#define PC87427_GPDO_7D		0x14
#define PC87427_GPDI_7A		0x15
#define PC87427_GPDI_7B		0x16
#define PC87427_GPDI_7C		0x17
#define PC87427_GPDI_7D		0x18

#define PC87427_XIOCNF		0xf0
#define PC87427_XIOBA1H		0xf1
#define PC87427_XIOBA1L		0xf2
#define PC87427_XIOSIZE1	0xf3
#define PC87427_XIOBA2H		0xf4
#define PC87427_XIOBA2L		0xf5
#define PC87427_XIOSIZE2	0xf6
#define PC87427_XMEMCNF1	0xf7
#define PC87427_XMEMCNF2	0xf8
#define PC87427_XMEMBAH		0xf9
#define PC87427_XMEMBAL		0xfa
#define PC87427_XMEMSIZE	0xfb
#define PC87427_XIRQMAP1	0xfc
#define PC87427_XIRQMAP2	0xfd
#define PC87427_XBIMM		0xfe
#define PC87427_XBBSL		0xff

#define PC87427_XBCNF		0x00
#define PC87427_XZCNF0		0x01
#define PC87427_XZCNF1		0x02
#define PC87427_XIRQC0		0x04
#define PC87427_XIRQC1		0x05
#define PC87427_XIRQC2		0x06
#define PC87427_XIMA0		0x08
#define PC87427_XIMA1		0x09
#define PC87427_XIMA2		0x0a
#define PC87427_XIMA3		0x0b
#define PC87427_XIMD		0x0c
#define PC87427_XZCNF2		0x0d
#define PC87427_XZCNF3		0x0e
#define PC87427_XZM0		0x0f
#define PC87427_XZM1		0x10
#define PC87427_XZM2		0x11
#define PC87427_XZM3		0x12
#define PC87427_HAP0		0x13
#define PC87427_HAP1		0x14
#define PC87427_XSCNF		0x15
#define PC87427_XWBCNF		0x16

#endif
OpenPOWER on IntegriCloud