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

 

 

 

; // 16-bit Protect mode offset

 

DWORD

SMBHDR_P16_BASE

 

 

 

; // 16-bit Protect mode base address

DWORD

SMBHDR_P32_OFFSET

 

 

 

; // 32-bit Protect mode offset

 

DWORD

SMBHDR_P32_BASE

 

 

 

;// 32-bit Protect mode base address

}SMB_HEADER, \PSMB_HEADER ;

ThinkPad 560/560E SMAPI BIOS

A-55

Page 119
Image 119
IBM 560E manual Byte SMBHDRSIG4