The current parameter situation of post_code() is rather mixed between
numeric constants and #defines for such constants. Since grepping the tree shouldn't be necessary to find a POST code and we already have too many duplicated POST codes, gather almost all of them in a common header file. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@549 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
06f72c080f
commit
29d69787ea
9 changed files with 67 additions and 32 deletions
|
|
@ -25,6 +25,41 @@
|
|||
|
||||
SHARED(post_code, void, u8 value);
|
||||
|
||||
#define POST_START_OF_MAIN 0x01
|
||||
/* This is a collection of existing POST values used by post_code().
|
||||
* port80_post() and Geode specific codes are not (yet?) listed here.
|
||||
* FIXME: Conflicts remain.
|
||||
*/
|
||||
#define POST_START_OF_MAIN 0x01
|
||||
#define POST_KBD_EMPTY_INPUT_BUFFER 0x00
|
||||
#define POST_KBD_EMPTY_OUTPUT_BUFFER 0x00
|
||||
#define POST_STAGE1_STOP_AP 0xf0
|
||||
#define POST_STAGE1_ENABLE_ROM 0xf2
|
||||
#define POST_STAGE1_MAIN 0x02
|
||||
#define POST_STAGE2_BEGIN 0x20
|
||||
#define POST_STAGE2_PHASE1_START 0x30
|
||||
#define POST_STAGE2_PHASE1_ENTER 0x31
|
||||
#define POST_STAGE2_PHASE1_DONE 0x3e
|
||||
#define POST_STAGE2_PHASE1_EXIT 0x3f
|
||||
#define POST_STAGE2_PHASE2_PCI_SET_METHOD 0x5f
|
||||
#define POST_STAGE2_PHASE2_START 0x40
|
||||
#define POST_STAGE2_PHASE2_ENTER 0x41
|
||||
#define POST_STAGE2_PHASE2_DONE 0x4e
|
||||
#define POST_STAGE2_PHASE2_EXIT 0x4f
|
||||
#define POST_STAGE2_PHASE3_START 0x30
|
||||
#define POST_STAGE2_PHASE3_MIDDLE 0x41
|
||||
#define POST_STAGE2_PHASE3_SCAN_ENTER 0x42
|
||||
#define POST_STAGE2_PHASE3_SCAN_EXIT 0x4e
|
||||
#define POST_STAGE2_PHASE4_START 0x40
|
||||
#define POST_STAGE2_PHASE5_START 0x50
|
||||
#define POST_STAGE2_PHASE6_START 0x60
|
||||
#define POST_STAGE2_WRITE_TABLES 0x70
|
||||
#define POST_STAGE2_ARCH_WRITE_TABLES_ENTER 0x9a
|
||||
#define POST_STAGE2_ARCH_WRITE_TABLES_MIDDLE 0x96
|
||||
#define POST_STAGE2_PCISCANBUS_ENTER 0x24
|
||||
#define POST_STAGE2_PCISCANBUS_DONEFORLOOP 0x25
|
||||
#define POST_STAGE2_PCISCANBUS_EXIT 0x55
|
||||
#define POST_ELFBOOT_JUMPING_TO_BOOTCODE 0xfe
|
||||
#define POST_ELFBOOT_LOADER_STARTED 0xf8
|
||||
#define POST_ELFBOOT_LOADER_IMAGE_FAILED 0xff
|
||||
|
||||
#endif /* POST_CODE_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue