blob: e8cff100fc23c84926880fa87ca13a38d67467b0 [file] [log] [blame]
Bin Meng9e70a112016-05-07 07:46:29 -07001/*
2 * Copyright (C) 2008 Advanced Micro Devices, Inc.
3 * Copyright (C) 2016 Bin Meng <bmeng.cn@gmail.com>
4 *
5 * Modified from coreboot src/arch/x86/acpi/statdef.asl
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10/* Status and notification definitions */
11
12#define STA_MISSING 0x00
13#define STA_PRESENT 0x01
14#define STA_ENABLED 0x03
15#define STA_DISABLED 0x09
16#define STA_INVISIBLE 0x0b
17#define STA_UNAVAILABLE 0x0d
18#define STA_VISIBLE 0x0f
19
20/* SMBus status codes */
21#define SMB_OK 0x00
22#define SMB_UNKNOWN_FAIL 0x07
23#define SMB_DEV_ADDR_NAK 0x10
24#define SMB_DEVICE_ERROR 0x11
25#define SMB_DEV_CMD_DENIED 0x12
26#define SMB_UNKNOWN_ERR 0x13
27#define SMB_DEV_ACC_DENIED 0x17
28#define SMB_TIMEOUT 0x18
29#define SMB_HST_UNSUPP_PROTOCOL 0x19
30#define SMB_BUSY 0x1a
31#define SMB_PKT_CHK_ERROR 0x1f
32
33/* Device Object Notification Values */
34#define NOTIFY_BUS_CHECK 0x00
35#define NOTIFY_DEVICE_CHECK 0x01
36#define NOTIFY_DEVICE_WAKE 0x02
37#define NOTIFY_EJECT_REQUEST 0x03
38#define NOTIFY_DEVICE_CHECK_JR 0x04
39#define NOTIFY_FREQUENCY_ERROR 0x05
40#define NOTIFY_BUS_MODE 0x06
41#define NOTIFY_POWER_FAULT 0x07
42#define NOTIFY_CAPABILITIES 0x08
43#define NOTIFY_PLD_CHECK 0x09
44#define NOTIFY_SLIT_UPDATE 0x0b
45#define NOTIFY_SRA_UPDATE 0x0d
46
47/* Battery Device Notification Values */
48#define NOTIFY_BAT_STATUSCHG 0x80
49#define NOTIFY_BAT_INFOCHG 0x81
50#define NOTIFY_BAT_MAINTDATA 0x82
51
52/* Power Source Object Notification Values */
53#define NOTIFY_PWR_STATUSCHG 0x80
54#define NOTIFY_PWR_INFOCHG 0x81
55
56/* Thermal Zone Object Notification Values */
57#define NOTIFY_TZ_STATUSCHG 0x80
58#define NOTIFY_TZ_TRIPPTCHG 0x81
59#define NOTIFY_TZ_DEVLISTCHG 0x82
60#define NOTIFY_TZ_RELTBLCHG 0x83
61
62/* Power Button Notification Values */
63#define NOTIFY_POWER_BUTTON 0x80
64
65/* Sleep Button Notification Values */
66#define NOTIFY_SLEEP_BUTTON 0x80
67
68/* Lid Notification Values */
69#define NOTIFY_LID_STATUSCHG 0x80
70
71/* Processor Device Notification Values */
72#define NOTIFY_CPU_PPCCHG 0x80
73#define NOTIFY_CPU_CSTATECHG 0x81
74#define NOTIFY_CPU_THROTLCHG 0x82
75
76/* User Presence Device Notification Values */
77#define NOTIFY_USR_PRESNCECHG 0x80
78
79/* Ambient Light Sensor Notification Values */
80#define NOTIFY_ALS_ILLUMCHG 0x80
81#define NOTIFY_ALS_COLORTMPCHG 0x81
82#define NOTIFY_ALS_RESPCHG 0x82