Josef Kellermann | bfa7ee5 | 2011-05-11 07:47:43 +0000 | [diff] [blame] | 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. |
Josef Kellermann | bfa7ee5 | 2011-05-11 07:47:43 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | |
| 17 | /* Status and notification definitions */ |
| 18 | |
| 19 | #define STA_MISSING 0x00 |
| 20 | #define STA_PRESENT 0x01 |
| 21 | #define STA_ENABLED 0x03 |
| 22 | #define STA_DISABLED 0x09 |
| 23 | #define STA_INVISIBLE 0x0B |
| 24 | #define STA_UNAVAILABLE 0x0D |
| 25 | #define STA_VISIBLE 0x0F |
| 26 | |
| 27 | /* SMBus status codes */ |
| 28 | #define SMB_OK 0x00 |
| 29 | #define SMB_UnknownFail 0x07 |
| 30 | #define SMB_DevAddrNAK 0x10 |
| 31 | #define SMB_DeviceError 0x11 |
| 32 | #define SMB_DevCmdDenied 0x12 |
| 33 | #define SMB_UnknownErr 0x13 |
| 34 | #define SMB_DevAccDenied 0x17 |
| 35 | #define SMB_Timeout 0x18 |
| 36 | #define SMB_HstUnsuppProtocol 0x19 |
| 37 | #define SMB_Busy 0x1A |
| 38 | #define SMB_PktChkError 0x1F |
| 39 | |
| 40 | /* Device Object Notification Values */ |
| 41 | #define NOTIFY_BUS_CHECK 0x00 |
| 42 | #define NOTIFY_DEVICE_CHECK 0x01 |
| 43 | #define NOTIFY_DEVICE_WAKE 0x02 |
| 44 | #define NOTIFY_EJECT_REQUEST 0x03 |
| 45 | #define NOTIFY_DEVICE_CHECK_JR 0x04 |
| 46 | #define NOTIFY_FREQUENCY_ERROR 0x05 |
| 47 | #define NOTIFY_BUS_MODE 0x06 |
| 48 | #define NOTIFY_POWER_FAULT 0x07 |
| 49 | #define NOTIFY_CAPABILITIES 0x08 |
| 50 | #define NOTIFY_PLD_CHECK 0x09 |
| 51 | #define NOTIFY_SLIT_UPDATE 0x0B |
| 52 | |
| 53 | /* Battery Device Notification Values */ |
| 54 | #define NOTIFY_BAT_STATUSCHG 0x80 |
| 55 | #define NOTIFY_BAT_INFOCHG 0x81 |
| 56 | #define NOTIFY_BAT_MAINTDATA 0x82 |
| 57 | |
| 58 | /* Power Source Object Notification Values */ |
| 59 | #define NOTIFY_PWR_STATUSCHG 0x80 |
| 60 | |
| 61 | /* Thermal Zone Object Notification Values */ |
| 62 | #define NOTIFY_TZ_STATUSCHG 0x80 |
| 63 | #define NOTIFY_TZ_TRIPPTCHG 0x81 |
| 64 | #define NOTIFY_TZ_DEVLISTCHG 0x82 |
| 65 | #define NOTIFY_TZ_RELTBLCHG 0x83 |
| 66 | |
| 67 | /* Power Button Notification Values */ |
| 68 | #define NOTIFY_POWER_BUTTON 0x80 |
| 69 | |
| 70 | /* Sleep Button Notification Values */ |
| 71 | #define NOTIFY_SLEEP_BUTTON 0x80 |
| 72 | |
| 73 | /* Lid Notification Values */ |
| 74 | #define NOTIFY_LID_STATUSCHG 0x80 |
| 75 | |
| 76 | /* Processor Device Notification Values */ |
| 77 | #define NOTIFY_CPU_PPCCHG 0x80 |
| 78 | #define NOTIFY_CPU_CSTATECHG 0x81 |
| 79 | #define NOTIFY_CPU_THROTLCHG 0x82 |
| 80 | |
| 81 | /* User Presence Device Notification Values */ |
| 82 | #define NOTIFY_USR_PRESNCECHG 0x80 |
| 83 | |
| 84 | /* Battery Device Notification Values */ |
| 85 | #define NOTIFY_ALS_ILLUMCHG 0x80 |
| 86 | #define NOTIFY_ALS_COLORTMPCHG 0x81 |
| 87 | #define NOTIFY_ALS_RESPCHG 0x82 |