C Language
//
//SMAPI BIOS Header
typedef struct {
BYTE | SMBHDR_SIG[4] | ; // | Signature | |
BYTE | SMBHDR_VER | ; | // | Major Version |
BYTE | SMBHDR_VER_VER | ; | // | Minor Version |
BYTE | SMBHDR_LEN | ; | // | Length |
BYTE | SMBHDR_CHKSUM | ; | // | Checksum |
WORD | SMBHDR_INFO | ; | // | Information word |
WORD | SMBHDR_RSV1 | ; | // | Reserve 1 |
WORD | SMBHDR_R_OFFSET | ; | // | Real mode offset |
WORD | SMBHDR_R_SEGMENT | ; | // | Real mode segment |
WORD | SMBHDR_RSV2 | ; | // | Reserve 2 |
WORD | SMBHDR_P16_OFFSET |
|
|
|
; // |
| |||
DWORD | SMBHDR_P16_BASE |
|
|
|
; // | ||||
DWORD | SMBHDR_P32_OFFSET |
|
|
|
; // |
| |||
DWORD | SMBHDR_P32_BASE |
|
|
|
;//
}SMB_HEADER, \PSMB_HEADER ;
ThinkPad 560/560E SMAPI BIOS |