1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 * Copyright 2011 Joyent, Inc. All rights reserved.
25 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
26 */
27 /*
28 * Solaris x86 ACPI CA Embedded Controller operation region handler
29 */
30
31 #include <sys/file.h>
32 #include <sys/errno.h>
33 #include <sys/conf.h>
34 #include <sys/modctl.h>
35 #include <sys/open.h>
36 #include <sys/stat.h>
37 #include <sys/ddi.h>
38 #include <sys/sunddi.h>
39 #include <sys/note.h>
40 #include <sys/atomic.h>
41
42 #include <sys/acpi/acpi.h>
43 #include <sys/acpica.h>
44
45 /*
46 * EC status bits
47 * Low to high
48 * Output buffer full?
49 * Input buffer full?
50 * <reserved>
51 * Data register is command byte?
52 * Burst mode enabled?
53 * SCI event?
54 * SMI event?
55 * <reserved>
56 */
57 #define EC_OBF (0x01)
58 #define EC_IBF (0x02)
59 #define EC_DRC (0x08)
60 #define EC_BME (0x10)
61 #define EC_SCI (0x20)
62 #define EC_SMI (0x40)
|
1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 * Copyright 2011 Joyent, Inc. All rights reserved.
26 * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
27 */
28
29 /*
30 * x86 ACPI CA Embedded Controller operation region handler
31 */
32
33 #include <sys/file.h>
34 #include <sys/errno.h>
35 #include <sys/conf.h>
36 #include <sys/modctl.h>
37 #include <sys/open.h>
38 #include <sys/stat.h>
39 #include <sys/ddi.h>
40 #include <sys/sunddi.h>
41 #include <sys/note.h>
42 #include <sys/atomic.h>
43
44 #include <acpica/include/acpi.h>
45 #include <sys/acpica.h>
46
47 /*
48 * EC status bits
49 * Low to high
50 * Output buffer full?
51 * Input buffer full?
52 * <reserved>
53 * Data register is command byte?
54 * Burst mode enabled?
55 * SCI event?
56 * SMI event?
57 * <reserved>
58 */
59 #define EC_OBF (0x01)
60 #define EC_IBF (0x02)
61 #define EC_DRC (0x08)
62 #define EC_BME (0x10)
63 #define EC_SCI (0x20)
64 #define EC_SMI (0x40)
|