lilacious | 57241a2 | 2023-06-13 22:48:23 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef PSP_POST_CODE_H |
| 4 | #define PSP_POST_CODE_H |
| 5 | |
Yuchen He | 1e67adb | 2023-07-25 21:28:36 +0200 | [diff] [blame^] | 6 | #define POSTCODE_ENTERED_PSP_VERSTAGE 0x00 |
| 7 | #define POSTCODE_CONSOLE_INIT 0x01 |
| 8 | #define POSTCODE_EARLY_INIT 0x02 |
| 9 | #define POSTCODE_LATE_INIT 0x03 |
| 10 | #define POSTCODE_VERSTAGE_MAIN 0x04 |
| 11 | #define POSTCODE_VERSTAGE_S0I3_RESUME 0x05 |
lilacious | 57241a2 | 2023-06-13 22:48:23 +0200 | [diff] [blame] | 12 | |
Yuchen He | 1e67adb | 2023-07-25 21:28:36 +0200 | [diff] [blame^] | 13 | #define POSTCODE_SAVE_BUFFERS 0x0E |
| 14 | #define POSTCODE_UPDATE_BOOT_REGION 0x0F |
lilacious | 57241a2 | 2023-06-13 22:48:23 +0200 | [diff] [blame] | 15 | |
Yuchen He | 1e67adb | 2023-07-25 21:28:36 +0200 | [diff] [blame^] | 16 | #define POSTCODE_DEFAULT_BUFFER_SIZE_NOTICE 0xC0 |
| 17 | #define POSTCODE_WORKBUF_RESIZE_WARNING 0xC1 |
| 18 | #define POSTCODE_WORKBUF_SAVE_ERROR 0xC2 |
| 19 | #define POSTCODE_WORKBUF_BUFFER_SIZE_ERROR 0xC3 |
| 20 | #define POSTCODE_ROMSIG_MISMATCH_ERROR 0xC4 |
| 21 | #define POSTCODE_PSP_COOKIE_MISMATCH_ERROR 0xC5 |
| 22 | #define POSTCODE_BHD_COOKIE_MISMATCH_ERROR 0xC6 |
| 23 | #define POSTCODE_UPDATE_PSP_BIOS_DIR_ERROR 0xC7 |
| 24 | #define POSTCODE_FMAP_REGION_MISSING 0xC8 |
| 25 | #define POSTCODE_AMD_FW_MISSING 0xC9 |
| 26 | #define POSTCODE_CMOS_RECOVERY 0xCA |
| 27 | #define POSTCODE_EARLY_INIT_ERROR 0xCB |
| 28 | #define POSTCODE_INIT_TPM_FAILED 0xCC |
| 29 | #define POSTCODE_MAP_SPI_ROM_FAILED 0xCD |
lilacious | 57241a2 | 2023-06-13 22:48:23 +0200 | [diff] [blame] | 30 | |
Yuchen He | 1e67adb | 2023-07-25 21:28:36 +0200 | [diff] [blame^] | 31 | #define POSTCODE_UNMAP_SPI_ROM 0xF0 |
| 32 | #define POSTCODE_UNMAP_FCH_DEVICES 0xF1 |
| 33 | #define POSTCODE_LEAVING_VERSTAGE 0xF2 |
lilacious | 57241a2 | 2023-06-13 22:48:23 +0200 | [diff] [blame] | 34 | |
| 35 | #endif |