After this has been brought up many times before, rename src/arch/i386 to
[coreboot.git] / src / arch / x86 / acpi / statdef.asl
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2008 Advanced Micro Devices, Inc.
5  *
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.
9  *
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.
14  *
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
18  */
19
20
21 /* Status and notification definitions */
22
23 #define STA_MISSING                         0x00
24 #define STA_PRESENT                         0x01
25 #define STA_ENABLED                         0x03
26 #define STA_DISABLED                0x09
27 #define STA_INVISIBLE               0x0B
28 #define STA_UNAVAILABLE             0x0D
29 #define STA_VISIBLE                         0x0F
30
31 /* SMBus status codes */
32 #define SMB_OK                  0x00
33 #define SMB_UnknownFail         0x07
34 #define SMB_DevAddrNAK          0x10
35 #define SMB_DeviceError         0x11
36 #define SMB_DevCmdDenied        0x12
37 #define SMB_UnknownErr          0x13
38 #define SMB_DevAccDenied        0x17
39 #define SMB_Timeout             0x18
40 #define SMB_HstUnsuppProtocol   0x19
41 #define SMB_Busy                0x1A
42 #define SMB_PktChkError         0x1F
43
44 /* Device Object Notification Values */
45 #define NOTIFY_BUS_CHECK                0x00
46 #define NOTIFY_DEVICE_CHECK             0x01
47 #define NOTIFY_DEVICE_WAKE              0x02
48 #define NOTIFY_EJECT_REQUEST    0x03
49 #define NOTIFY_DEVICE_CHECK_JR  0x04
50 #define NOTIFY_FREQUENCY_ERROR  0x05
51 #define NOTIFY_BUS_MODE                 0x06
52 #define NOTIFY_POWER_FAULT              0x07
53 #define NOTIFY_CAPABILITIES             0x08
54 #define NOTIFY_PLD_CHECK                0x09
55 #define NOTIFY_SLIT_UPDATE              0x0B
56
57 /* Battery Device Notification Values */
58 #define NOTIFY_BAT_STATUSCHG    0x80
59 #define NOTIFY_BAT_INFOCHG      0x81
60 #define NOTIFY_BAT_MAINTDATA    0x82
61
62 /* Power Source Object Notification Values */
63 #define NOTIFY_PWR_STATUSCHG    0x80
64
65 /* Thermal Zone Object Notification Values */
66 #define NOTIFY_TZ_STATUSCHG         0x80
67 #define NOTIFY_TZ_TRIPPTCHG         0x81
68 #define NOTIFY_TZ_DEVLISTCHG    0x82
69 #define NOTIFY_TZ_RELTBLCHG     0x83
70
71 /* Power Button Notification Values */
72 #define NOTIFY_POWER_BUTTON             0x80
73
74 /* Sleep Button Notification Values */
75 #define NOTIFY_SLEEP_BUTTON             0x80
76
77 /* Lid Notification Values */
78 #define NOTIFY_LID_STATUSCHG    0x80
79
80 /* Processor Device Notification Values */
81 #define NOTIFY_CPU_PPCCHG       0x80
82 #define NOTIFY_CPU_CSTATECHG    0x81
83 #define NOTIFY_CPU_THROTLCHG    0x82
84
85 /* User Presence Device Notification Values */
86 #define NOTIFY_USR_PRESNCECHG   0x80
87
88 /* Battery Device Notification Values */
89 #define NOTIFY_ALS_ILLUMCHG     0x80
90 #define NOTIFY_ALS_COLORTMPCHG  0x81
91 #define NOTIFY_ALS_RESPCHG      0x82
92
93