Lenovo ThinkPad 560E TP 560Z Technical Reference Manual - Page 68
Calling Convention, Parameter Structure, Input Field
View all Lenovo ThinkPad 560E manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 68 highlights
Calling Convention The client can invoke the SMAPI BIOS with a far-call to the entry point that is specified in the header file. All parameters for the BIOS and other results are stored in the client data area; the client needs to prepare an input parameter and output parameter area in its data area, and informs this area by pushing those pointers onto its stack before the far-calls. The SMAPI BIOS uses the stack/data area directly with the selector when the BIOS is invoked. Therefore, the caller needs to define the same privilege level as the BIOS. Parameter Structure The memory allocation for the input/output field should be prepared by the caller. The input field specifies the function request to the SMAPI BIOS, and the BIOS fills in the return value to the output field. Input Field Field Major function number Minor function number Parameter 1 Parameter 2 Parameter 3 Parameter 4 Parameter 5 Offset X'00' X'01' X'02' X'04' X'06' X'08' X'0C' Length Byte Byte Word Word Word Doubleword Doubleword Output Field Field Return code Auxiliary return code Parameter 1 Parameter 2 Parameter 3 Parameter 4 Parameter 5 Offset X'00' X'01' X'02' X'04' X'06' X'08' X'0C' Length Byte Byte Word Word Word Doubleword Doubleword A-6 ThinkPad 560Z SMAPI BIOS