statdef.asl 2.2 KB

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