2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 // Scope is \_SB.PCI0.LPCB
24 OperationRegion (SIOA, SystemIO, 0x2E, 0x02)
25 Field (SIOA, ByteAcc, NoLock, Preserve)
31 IndexField (SI2E, SI2F, ByteAcc, NoLock, Preserve)
34 SCNT, 8, /* Configure Control */
36 SLDN, 8, /* Logical Device Number */
38 SACT, 8, /* Activate */
40 IO0H, 8, /* Base Address 0 MSB */
41 IO0L, 8, /* Base Address 0 LSB */
43 IO1H, 8, /* Base Address 1 MSB */
44 IO1L, 8, /* Base Address 1 LSB */
46 IQ00, 8, /* Interrupt Select */
49 Name (SFDC, 0) /* Floppy Disk Controller */
50 Name (SSP1, 1) /* Serial Port 1 */
51 Name (SENV, 4) /* Environment Controller */
52 Name (SKBC, 5) /* Keyboard */
53 Name (SKBM, 6) /* Mouse */
54 Name (SGPI, 7) /* GPIO */
55 Name (SINF, 10) /* Consumer IR */
57 Method (ENTR, 0, NotSerialized)
65 Method (EXIT, 0, NotSerialized)
70 /* Parse activate register for an LDN */
71 Method (ISEN, 1, NotSerialized)
78 /* Check if it exists */
79 If (LEqual (Local0, 0xFF))
84 /* Check if activated */
85 If (LEqual (Local0, One))
95 /* Enable an LDN via the activate register */
96 Method (SENA, 1, NotSerialized)
104 /* Disable an LDN via the activate register */
105 Method (SDIS, 1, NotSerialized)
113 #ifdef SIO_ENABLE_ENVC
115 Name (_HID, EISAID ("PNP0C02"))
118 Method (_STA, 0, NotSerialized) {
122 Name (_CRS, ResourceTemplate ()
124 IO (Decode16, SIO_ENVC_IO0, SIO_ENVC_IO0, 0x08, 0x08)
125 IO (Decode16, SIO_ENVC_IO1, SIO_ENVC_IO1, 0x04, 0x04)
128 Name (_PRS, ResourceTemplate ()
130 IO (Decode16, SIO_ENVC_IO0, SIO_ENVC_IO0, 0x08, 0x08)
131 IO (Decode16, SIO_ENVC_IO1, SIO_ENVC_IO1, 0x04, 0x04)
134 OperationRegion (ECAP, SystemIO, SIO_ENVC_IO0, 0x07)
135 Field (ECAP, ByteAcc, NoLock, Preserve)
138 ECAI, 8, // Address Index Register
139 ECAD, 8, // Address Data Register
142 // Registers for thermal zone implementations
143 IndexField (ECAI, ECAD, ByteAcc, NoLock, Preserve)
146 TIN1, 8, // TMPIN1 Reading
147 TIN2, 8, // TMPIN2 Reading
148 TIN3, 8, // TMPIN3 Reading
150 F2PS, 8, // FAN2 PWM Setting
152 F3PS, 8, // FAN3 PWM Setting
157 #ifdef SIO_ENABLE_GPIO
159 Name (_HID, EISAID ("PNP0C02"))
162 Method (_STA, 0, NotSerialized) {
166 Name (_CRS, ResourceTemplate ()
168 IO (Decode16, SIO_GPIO_IO0, SIO_GPIO_IO0, 0x01, 0x01)
169 IO (Decode16, SIO_GPIO_IO1, SIO_GPIO_IO1, 0x08, 0x08)
172 Name (_PRS, ResourceTemplate ()
174 IO (Decode16, SIO_GPIO_IO0, SIO_GPIO_IO0, 0x01, 0x01)
175 IO (Decode16, SIO_GPIO_IO1, SIO_GPIO_IO1, 0x08, 0x08)
180 #ifdef SIO_ENABLE_COM1
182 Name (_HID, EISAID ("PNP0501"))
185 Method (_STA, 0, NotSerialized) {
189 Name (_CRS, ResourceTemplate ()
191 IO (Decode16, 0x03F8, 0x03F8, 0x08, 0x08)
195 Name (_PRS, ResourceTemplate ()
197 IO (Decode16, 0x03F8, 0x03F8, 0x08, 0x08)
203 #ifdef SIO_ENABLE_PS2K
204 Device (PS2K) // Keyboard
206 Name (_HID, EISAID("PNP0303"))
207 Name (_CID, EISAID("PNP030B"))
209 Method (_STA, 0, NotSerialized) {
213 Name (_CRS, ResourceTemplate()
215 IO (Decode16, 0x60, 0x60, 0x01, 0x01)
216 IO (Decode16, 0x64, 0x64, 0x01, 0x01)
220 Name (_PRS, ResourceTemplate()
222 IO (Decode16, 0x60, 0x60, 0x01, 0x01)
223 IO (Decode16, 0x64, 0x64, 0x01, 0x01)
229 #ifdef SIO_ENABLE_PS2M
230 Device (PS2M) // Mouse
232 Name (_HID, EISAID("PNP0F13"))
234 Method (_STA, 0, NotSerialized) {
238 Name (_CRS, ResourceTemplate()
243 Name (_PRS, ResourceTemplate()
250 #ifdef SIO_ENABLE_FDC0
251 Device (FDC0) // Floppy controller
253 Name (_HID, EISAID ("PNP0700"))
255 Method (_STA, 0, NotSerialized) {
259 Name (_CRS, ResourceTemplate()
261 IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06)
262 IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01)
264 DMA (Compatibility, NotBusMaster, Transfer8) {2}
267 Name (_PRS, ResourceTemplate()
269 IO (Decode16, 0x03F0, 0x03F0, 0x01, 0x06)
270 IO (Decode16, 0x03F7, 0x03F7, 0x01, 0x01)
272 DMA (Compatibility, NotBusMaster, Transfer8) {2}
277 #ifdef SIO_ENABLE_INFR
278 Device (INFR) // Infrared controller
280 Name (_HID, EISAID ("PNP0510"))
282 Method (_STA, 0, NotSerialized) {
286 Name (_CRS, ResourceTemplate()
288 IO (Decode16, SIO_INFR_IO0, SIO_INFR_IO0, 0x08, 0x08)
289 IRQNoFlags () { SIO_INFR_IRQ }
292 Name (_PRS, ResourceTemplate()
294 IO (Decode16, SIO_INFR_IO0, SIO_INFR_IO0, 0x08, 0x08)
295 IRQNoFlags () { SIO_INFR_IRQ }