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