background image

   

 

Calling Convention Pseudo Code

The following describes the calling convention using pseudo code.

 Assembler Language

 

InputParm

SMB_INPARM

< >

 

OutputParm

SMB_OUTPARM

< >

 

16-bit

 

push

ds

mov

ax, offset OutputParm

 

push

ax

 

push

ds

mov

ax, offset InputParm

 

push

ax

call

dword ptr SmapiBios

 

add

sp, 8

 

32-bit

 

push

ds

mov

eax, offset OutputParm

 

push

eax

 

push

ds

mov

eax, offset InputParm

 

push

eax

call

fword ptr SmapiBios

 

add

sp, 16

 C Language

typedef WORD (far   SMB)(FPINPARM, FPOUTPARM) ;

 

SMB 

SmapiBios ;

 

INPARM

InputParm ;

 

OUTPARM

OutputParm ;

 

WORD

RC ;

RC = SmapiBios(&InputParm, &OutputParm) ;

B-10  SMAPI BIOS

Summary of Contents for ThinkPad 600

Page 1: ......

Page 2: ...riodically made to the information herein these changes will be incorporated in new editions of the publication IBM may make improvements or changes to the products or the programs described in this p...

Page 3: ...upply Connector 1 11 Battery Pack 1 12 Section 2 System Board 2 1 Description 2 2 Microprocessor 2 2 Cache Memory Operation 2 2 Cacheable Address Space 2 3 Bus Adapter 2 3 Keyboard Mouse Connector 2 4...

Page 4: ...lephony Modem Function 3 6 Audio Subsystem 3 6 MIDI Port Function 3 6 Sound Blaster Support Function 3 7 Audio Port Specifications 3 7 Infrared IR Subsystem 3 8 IRQ Level and DMA Channel 3 8 PC Card S...

Page 5: ...Power Management Service B 29 Event Bit Definition B 34 Samples B 53 Function Declaration B 57 Installation Check B 58 BIOS Call B 62 Appendix C Appendix C C 1 Index X 1 v...

Page 6: ...vi...

Page 7: ...al Bus Connector Pin Assignments 2 9 2 9 UltraSlim Bay Connector Pin Assignments 2 12 2 10 Diskette Drive Read Write and Format Capabilities 2 14 2 11 System Memory Map 2 16 2 12 DIMM Adapter Card Mem...

Page 8: ...t A Hex 0092 2 29 2 32 System Control Port B Hex 0061 Write 2 30 2 33 System Control Port B Hex 0061 Read 2 30 2 34 Error Codes 2 34 3 1 BIOS Video VGA Modes 3 3 3 2 Video BIOS Extended Modes NeoMagic...

Page 9: ...e available system resources for the computer and docking stations Appendix B System Management API SMAPI BIOS Overview describes the system software interface built into the system called the System...

Page 10: ...x Preface...

Page 11: ...dress Map 1 5 Specifications 1 7 Performance Specifications 1 7 Physical Specifications 1 8 Electrical Specifications 1 9 Acoustical Readings 1 9 Power Supply 1 10 Voltages 1 10 Output Protection 1 11...

Page 12: ...egoing computer model from other ThinkPad models by reading the system ID Interrupt 15H Function code AH C0H Returns ES BX 2 Model Byte ES BX 3 Submodel Byte The system microprocessor contains an inte...

Page 13: ...mers 1 Channel 0 system timer Channel 1 refresh generation Channel 2 tone generator for speaker ROM subsystem 128 KB by 4 banks 1 KB equals 1024 bytes RAM subsystem 32 to 160 MB 1 MB equals 1 048 576...

Page 14: ...grammable as parallel port 1 2 or 3 IEEE P1284 A compatible Supports bidirectional input and output Enhanced Parallel Port EPP compatible Extended Capabilities Port ECP compatible Expansion bus adapte...

Page 15: ...0092 System Control Port A 0096 Reserved 0098 System Flash ROM Control Register DCR 2282 00A0 00A1 Interrupt Controller Slave 00B2 00B3 Power Management Register 00C0 00DF DMA Controller 4 7 00F0 00FF...

Page 16: ...l Port 3 03E8 03EF IR Port 3 03F0 03F5 03F7 Diskette Drive Controller 03F6 03F7 Primary IDE Registers 03F8 03FF Serial Port 1 03F8 03FF IR Port 1 0530 0537 Audio WSS 1 0538 053F Audio Control Port 1 0...

Page 17: ...cache 64bit read write hit 1 CPUCLK L2 cache 64bit for not all models read hit back to back write hit back to back 3 1 1 1 1 1 1 1 Memory 64bit see Note read page hit read bank miss read page miss 5 1...

Page 18: ...35 0 C 50 F to 95 F System off 5 0 C to 43 0 C 41 F to 110 F Humidity System without diskette 8 to 95 System with diskette 8 to 80 Maximum altitude 3 048 m 10 000 ft in unpressurized conditions Heat...

Page 19: ...0 0 25 5 600 with SelectaDock III 4 60 4 30 37 5 34 0 31 0 28 0 Notes LWAd Is the declared sound power level for the random sample of machines LpAm Is the mean value of the A weighted sound pressure l...

Page 20: ...ROM drive Auxiliary devices Keyboard LCD panel PCMCIA cards Voltages The power supply generates six different dc voltages VCC5M VCC3M VCC12 and VCCSW Figure 1 8 shows the maximum current for each vol...

Page 21: ...utput exceeds 135 of the nominal value of the power supply Voltage Sequencing When power is turned on the output voltages reach their operational voltages within 2 seconds Power Supply Connector The f...

Page 22: ...ets the following electrical specifications Figure 1 10 Lithium Ion Battery Pack Specifications Nominal Voltage 10 8 V dc Capacity average 3 2 ampere hours AH Protection Overcurrent protection Overvol...

Page 23: ...15 ROM Subsystem 2 15 RAM Subsystem 2 15 System Memory Map 2 16 System Board Memory for the DIMM Connectors 2 17 RT CMOS RAM 2 18 RT CMOS Address and NMI Mask Register Hex 0070 2 19 RT CMOS Data Regi...

Page 24: ...el 2 L2 cache memory The cache memory in the Intel Pentium II microprocessor and the L2 external cache memory enable the microprocessor to read instructions and data much faster than if the microproce...

Page 25: ...cache and no external bus cycle is used to write the data to system memory If the address of the write operation was not in the cache memory but was in cacheable address space the data is read back i...

Page 26: ...ge 5 0 V dc minus pullup Minimum Low level output voltage 0 5 V dc Maximum High level input voltage 2 0 V dc Minimum Low level input voltage 0 8 V dc Maximum Connector The keyboard mouse connector use...

Page 27: ...the key numbers assigned to keys on the 86 key keyboard for countries other than the U S and Japan Figure 2 4 Key Numbers for the 86 Key Keyboard Figure 2 5 on page 2 6 shows the key numbers assigned...

Page 28: ...o the IBM Personal System 2 Hardware Interface Technical Reference Keyboard ID The keyboard ID consists of 2 bytes hex 83AB the built in keyboard with the external numeric keypad or hex 84AB the built...

Page 29: ...m 2 Hardware Interface Technical Reference 90 95 96 97 98 99 100 101 102 103 104 108 105 106 91 92 93 Figure 2 6 Key Numbers for the External Numeric Keypad Displayable Characters and Symbols For disp...

Page 30: ...I O 15 PDD1 I O 16 PDD14 I O 17 PDD0 I O 18 PDD15 I O 19 GND Ground 20 Key NC 21 PDREQ I 22 GND Ground 23 PDIOW O 24 GND Ground 25 PDIOR O 26 GND Ground 27 PIODRY I 28 CSEL GND 0 29 PDACK O 30 GND Gro...

Page 31: ...OCK 083 AD6 024 GND 084 C_BE0 025 GND 085 GND 026 SERR_DOCK 086 AD9 027 PAR_DOCK 087 AD11 028 TDO 088 AD13 029 TMS 089 R_ S 030 TRST 090 MOTENO 031 BRRESET 091 TCLK 032 AD14 092 TDI 033 AD12 093 AD15...

Page 32: ...D1 144 LPTD6 204 DIR 145 LPTD3 205 MOTEN1 146 LPTD2 206 GND 147 LPTD1 207 DISKCHG 148 LPTD0 208 INDEX_1 149 LPTAFD 209 PDDATA_1 150 GND 210 GND 151 GND 211 GND 152 GND 212 LPTSTB 153 LPTERR 213 LPTINI...

Page 33: ...traSlim Bay Connector The removable diskette drive or CD ROM drive can be connected to the UltraSlim Bay connector on the system board This connector has the following pin assignments System Board 2 1...

Page 34: ...TEP 0 16 GND GND 17 WRDATA O 18 GND GND 19 WREN O 20 MEDID1 I 21 TRACK0 I 22 DRATE0 O 23 WPROTECT I 24 RDDATA I 25 GND GND 26 SIDE1SEL O 27 UBAYID0 O 28 BAYRESET O 29 GND GND 30 SDD7 I O 31 SDD8 I O 3...

Page 35: ...DREQ I 55 GND GND 56 SDIOW O 57 GND GND 58 SDIOR O 59 GND GND 60 SIORDY I 61 UBAYSLAVE O 62 SDACK O 63 IRQ I 64 Reserved I 65 SDA1 O 66 PDIAGHDD I O 67 SDA0 O 68 SDA2 O 69 CS1S O 70 CS3S O 71 DASPUBAY...

Page 36: ...ive for the ThinkPad computer Figure 2 10 Diskette Drive Read Write and Format Capabilities Diskette Type Format Size 720 KB 1 2 MB 1 44 MB 3 5 inch 1 0 MB Diskette RWF 3 5 inch 2 0 MB Diskette RWF RW...

Page 37: ...ng correctly the ROM code is copied to RAM at the same address space and ROM is disabled RAM Subsystem The RAM subsystem on the system board starts at address hex 00000000 of the address space The RAM...

Page 38: ...ks of system board memory starting at or above the hex 100000 boundary Figure 2 11 System Memory Map Hex Address Range Function 00000000 to 0009FFFF 640 KB system board RAM 000A0000 to 000BFFFF Video...

Page 39: ...1 72 73 74 DQ40 DQ9 DQ41 DQ10 DQ42 DQ11 DQ43 Vcc Vcc DQ12 DQ44 DQ13 DQ45 DQ14 DQ46 DQ15 DQ47 Vss Vss Reserved Reserved Reserved Reserved CK0 CKEA Vcc Vcc RAS CAS WE CKEB S0 CKEB S1 RFU RFU CK1 75 76 7...

Page 40: ...guration and other system information Figure 2 13 lists the RT CMOS RAM bytes and their addresses Figure 2 13 RT CMOS RAM Address Map Address Hex RT CMOS RAM Bytes 000 00D Real time clock 00E Diagnost...

Page 41: ...S Address and NMI Mask Register Hex 0070 Bit Function 7 NMI mask 6 0 RT CMOS RAM address Bit 7 When this write only bit is set to 1 the NMI is masked disabled This bit is set to 1 by a power on reset...

Page 42: ...the following 1 Write the RT CMOS RAM address to the RT CMOS address and NMI mask register hex 0070 2 Write the data to the RT CMOS data register hex 0071 3 Write the address hex 0F to the RT CMOS and...

Page 43: ...ters A and B when the time and date are set Interrupt 1AH is the BIOS interface to read and set the time and date it initializes the registers in the same way that the setup program does Status Regist...

Page 44: ...bit to 0 Bit 5 If set to 1 this bit enables the alarm interrupt The system initializes this bit to 0 Bit 4 If set to 1 this bit enables the update ended interrupt The system initializes this bit to 0...

Page 45: ...es that a periodic interrupt has occurred Bit 5 If set to 1 this bit indicates that an alarm interrupt has occurred Bit 4 If set to 1 this bit indicates that an update ended interrupt has occurred Bit...

Page 46: ...k has lost power Bit 6 If set to 1 this bit indicates that the checksum is incorrect Bit 5 This bit indicates the results of a power on check of the equipment byte hex 014 If set to 1 this bit indicat...

Page 47: ...3 0 These bits are reserved Hard Disk Drive Type Byte Hex 011 This byte defines the type of hard disk drive installed Hex 00 indicates that no hard disk drive is installed Figure 2 24 Hard Disk Type...

Page 48: ...28 Equipment Byte Bit Description 7 6 Number of diskette drives 5 4 Display operating mode 3 2 Reserved 1 Coprocessor presence 0 Diskette drive 0 presence Bits 7 6 These bits indicate the number of i...

Page 49: ...e low byte is hex 017 the high byte is hex 018 Reserved Bytes Hex 01D 02D These bytes are reserved Configuration Checksum Bytes Hex 02E and Hex 02F The configuration checksum bytes contain the checksu...

Page 50: ...upts The interrupt return IRET instruction restores the interrupt flag to the state it was in before the interrupt occurred A system reset causes a reset of the NMI The NMI requests from a system boar...

Page 51: ...provides an alternative method of resetting the system microprocessor This alternative method supports operating systems requiring faster operation than that provided on the IBM Personal Computer AT...

Page 52: ...tem Control Port B Hex 0061 Bit definitions for the write and read functions of this port are shown in the following figures Figure 2 32 System Control Port B Hex 0061 Write Bit Function 7 4 Reserved...

Page 53: ...wer on password is installed the password bytes are locked and cannot be accessed by any program During power on password installation the password 1 to 7 characters is stored in the security space In...

Page 54: ...perating system is the drive startup sequence If you are working with multiple operating systems you might want to change the drive startup sequence to load the operating system from the hard disk wit...

Page 55: ...and status fields only The command and request registers and the rotate and mask functions are not supported The mode register is partially supported The NS16550 serial communications controller The...

Page 56: ...62 Check sum or configuration error 163 Date and time are not set clock not updated 173 CMOS CRC error 174 Configuration error 175 Bad EEPROM CRC 1 177 Bad supervisor password checksum 178 EEPROM is n...

Page 57: ...error 2401 System board video error 8081 PCMCIA presence test failure PCMCIA revision number also checked 8082 PCMCIA register test failure 8601 System bus error 8042 mouse interface 8602 External mo...

Page 58: ...2 36 System Board...

Page 59: ...rt Function 3 6 Sound Blaster Support Function 3 7 Audio Port Specifications 3 7 Infrared IR Subsystem 3 8 IRQ Level and DMA Channel 3 8 PC Card Subsystem 3 9 Pin Assignments 3 10 IDE Channel on the U...

Page 60: ...ing HPA as follows The video subsystem also supports PS 2 analog displays without any additional adapters LCD Type VRAM Size Color Depth Resolution On the LCD On the External Monitor On the LCD On the...

Page 61: ...ze 8 8 8 14 8 16 8 8 8 14 8 16 8 8 8 8 8 14 8 16 8 8 8 8 8 14 8 14 8 16 8 16 8 8 Buffer Start Address B8000 B8000 B8000 B8000 B8000 B8000 B8000 B8000 B0000 B0000 A0000 A0000 A0000 A0000 A0000 A0000 A0...

Page 62: ...o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o VESA Mode Number Hex 10D 10E 120 121 122 123 124 125 100 101 110 111 112 102 103 113 114 115 104 105 116 117 Video M...

Page 63: ...rovides three system settings I O address IRQ level and DMA channel MIDI Port Function The MIDI port function provides one system setting Sound Blaster Support Function The Sound Blaster support funct...

Page 64: ...1 UART mode DMA control and ISA bus interface logic The AudioDrive provides the computer with the following audio features High quality audio 44 1 kHz MPC 2 16 bit audio General MIDI compatible 32 voi...

Page 65: ...r output 25 mW 32 maximum Maximum output level 2 4 V pp Output impedance 75 Audio Input inch mini jack for microphone or line input Microphone gain 34 3 dB maximum Maximum input level Microphone 570 m...

Page 66: ...ister address IRQ Level and DMA Channel The IR subsystem uses one IRQ level and two DMA channels for ThinkPad mode Generic mode and Sharp mode do not require DMA channels I O Address 03F8 03FF Serial...

Page 67: ...he available interrupt levels are IRQ 3 4 5 7 9 10 11 and 15 The system unit resumes operation from suspend mode when it receives the RI_OUT signal The Type I and Type II PC Cards can be installed int...

Page 68: ...Ground Ground 2 D3 CAD0 3 D4 CAD1 4 D5 CAD3 5 D6 CAD5 6 D7 CAD7 7 CE1 CC BE0 8 A10 CAD9 9 OE CAD11 10 A11 CAD12 11 A9 CAD14 12 A8 CC BE1 13 A13 CPAR 14 A14 CPERR 15 WE CGNT 16 IRQ CINT 17 Vcc Vcc 18 V...

Page 69: ...48 A19 CBLOCK 49 A20 CSTOP 50 A21 CDEVSEL 51 Vcc Vcc 52 Vpp Vpp 53 A22 CTRDY 54 A23 CFRAME 55 A24 CAD17 56 A25 CAD19 57 AS2 CVS2 58 RESET CRST 59 WAIT CSERR 60 INPACK CREQ 61 REG CC BE3 62 SPKR CAUDI...

Page 70: ...y master If no hard disk is attached to the hard disk connector an IDE device on the UltraSlim Bay is a primary master MIDI Joystick Port Note To use a the MIDI joystick port you need a SelectaBase 60...

Page 71: ...Joystick Interface A joystick interface is provided at I O address 0201 You can select whether to enable or disable it with the ThinkPad Configurations program Subsystems 3 13...

Page 72: ...3 14 Subsystems...

Page 73: ...None None Serial port Disabled Disabled None None 4 03F8 03FF 3 02F8 02FF 4 03E8 03EF 3 02E8 02EF Parallel port 7 03BC 03BE and 07BC 07BE None 0 1 3 or disabled 7 0378 037F and 0778 077A 5 0278 027F...

Page 74: ...base 5 7 9 10 11 15 0530 0537 0604 060B 0E80 0E87 0F40 0F47 None 0 1 3 Video control base None 0538 053F 0D38 0D3F 0E88 0E8F 0FF0 0FF7 None None Hard disk drive CD ROM drive for the CD ROM drive model...

Page 75: ...ng station Refer to the manual that came with the adapter card The PCI adapter card option card in the SelectaDock 11 3 4 5 7 9 10 15 or disabled Refer to the adapter card manual Note The I O addresse...

Page 76: ...A 4...

Page 77: ...us B 18 Get Video Information B 19 Get Refresh Rate Capability B 20 System Configuration Service B 22 Get Display Device State B 22 Set Display Device State B 24 Get Pointing Device State B 25 Set Poi...

Page 78: ...sume Condition B 47 Set System Resume Condition B 48 Get System Resume Timer B 49 Set System Resume Timer B 50 Request System Standby B 51 Request System Suspend B 51 Request System Hibernation B 52 R...

Page 79: ...tion such as the system identifier system ID System Configuration The ThinkPad SMAPI BIOS provides system configuration control for such features as display device selection or resource configuration...

Page 80: ...point 0C Word Real mode 16 bit code segment address 0E Word Reserved 2 10 Word 16 bit protected mode offset to entry point 12 Word 16 bit protected mode code segment base address 14 Double words 32 bi...

Page 81: ...e support Bit 3 15 Reserved Real Mode Entry Point The entry point is specified in segment offset format Clients using Real V86 mode can use this area for the far call value 16 Bit or 32 Bit Protected...

Page 82: ...s 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 in...

Page 83: ...eld Field Offset in Hex Length Return Code 00 Byte Auxiliary Return Code 01 Byte Parameter 1 02 Word Parameter 2 04 Word Parameter 3 06 Word Parameter 4 08 Double word Parameter 5 0C Double word SMAPI...

Page 84: ...FUNC DB SMBIN_PARM_1 DW SMBIN_PARM_2 DW SMBIN_PARM_3 DW SMBIN_PARM_4 DD SMBIN_PARM_5 DD SMB_INPARM ENDS Output Parameter Structure SMB_OUTPARM STRUC SMBOUT_RC DB SMBOUT_SUB_RC DB SMBOUT_PARM_1 DW SMBO...

Page 85: ...WORD SMBIN_PARM_3 DWORD SMBIN_PARM_4 DWORD SMBIN_PARM_5 INPARM PINPARM Output Parameter Structure typedef struct BYTE SMBOUT_RC BYTE SMBOUT_SUB_RC WORD SMBOUT_PARM_1 WORD SMBOUT_PARM_2 WORD SMBOUT_PAR...

Page 86: ...fset OutputParm push ax push ds mov ax offset InputParm push ax call dword ptr SmapiBios add sp 8 32 bit push ds mov eax offset OutputParm push eax push ds mov eax offset InputParm push eax call fword...

Page 87: ...SMAPI function is not available 81 Invalid parameter 86 Function is not supported 9 System error 91 System is invalid 92 System is busy A Device error disk read error A1 Device is busy A2 Device is no...

Page 88: ...d Parameter 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Return value format ASCII format 1 Binary format Parameter 1 System ID Parameter 2 Country Code...

Page 89: ...rved Parameter 2 CPU ID Bits 15 8 Microprocessor type Bits 7 Microprocessor stepping level FFFFh Unknown Parameter 3 Clock Information Bits 15 8 CPU clock units MHz FEh CPU clock is over 254 MHz FFh U...

Page 90: ...r status Auxiliary Return Code Reserved Parameter 1 Bits 15 8 Built in display device panel information 1 Monochrome STN LCD 1 Monochrome TFT LCD 2 Color STN LCD 3 Color TFT LCD FF Unknown Bits 7 Buil...

Page 91: ...r 5 Reserved Output Field Return Code Error status Auxiliary Return Code Docking station status Bit Docking status Undock 1 Dock Bits 5 1 Reserved Bit 6 Security key status Lock position 1 Unlock posi...

Page 92: ...e Error status Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Bits 15 8 UltraBay device information FDD 1 Serial device 2 TV tuner 1 IDE device 2 PCMCIA adapter 3 Battery 4 AC Adapter...

Page 93: ...eserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Return value format ASCII format 1 Binary format Parameter 1 Reserved...

Page 94: ...ved Parameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Current Status Bit 8 LID Status Open 1 Close Bit 9 Keyboard status Close...

Page 95: ...eserved Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Reserved Parameter 1 Video BIOS revision Paramet...

Page 96: ...4x256 1 9 1 56x35 x16 1 A 1 56x473x16 1 C 1 56x48 x16 11 64 x48 x32K 111 64 x48 x64K 112 64 x48 x16M 113 8 x6 x32K 114 8 x6 x64K 115 8 x6 x16M 116 1 24x768x32K 117 1 24x768x64K 118 1 24x768x16M 119 12...

Page 97: ...ability for specified mode Bit 6 Hz available Bit 1 72Hz available Bit 2 75Hz available Bit 3 43Hz I available Bit 4 56Hz available Bit 5 7 Hz available Bit 6 85Hz available Bit 7 48Hz I available Bit...

Page 98: ...vice State Input Field Major Function Number 1 Minor Function Number Parameter 1 Request type h Current hardware 1h CMOS effective after reboot Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Re...

Page 99: ...le 1 Enable Bit 1 External CRT status Disable 1 Enable Bit 2 TV status Disable 1 Enable Bits 6 3 Reserved Bit 7 Dual enable flag Disable 1 Enable Bits 7 Display function type h No TV out model 1h Not...

Page 100: ...e Bit 7 Dual enable flag Disable 1 Enable Parameter 2 Reserved Parameter 3 Reserved Parameter 4 When parameter 2 bits 7 is 1h in return of Get Display Device State Bits 31 16 Reserved Bits 15 Display...

Page 101: ...Pointing device current status Bits 1 8 Built in pointing device control Disable 1 Enable 1 Auto 11 Reserved Bit 9 External pointing device status Disable 1 Enable Bits 15 11 Reserved Bits 7 Pointing...

Page 102: ...Reserved Bit 9 External pointing device status Disable 1 Enable Bits 15 11 Reserved Bits 7 Request type h Current hardware 1h CMOS effective after reboot Bits 7 2 Reserved Parameter 3 Reserved Parame...

Page 103: ...arameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Bits 15 8 Capability Bit 8 Sticky Fn key support Bit 9 Sticky Lock Fn key supp...

Page 104: ...t Status Disable 1 Sticky Fn key 3 Sticky Lock Fn key Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Re...

Page 105: ...turn Code Error status Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Bits 15 8 Power management mode Battery operation h High performance mode 1h Auto power management mode 2h Manual...

Page 106: ...gement mode Bits 7 Power management mode ac operation h High performance mode 1h Auto power management mode 2h Manual power management mode Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserv...

Page 107: ...Get Timer Control Input Field Major Function Number 22 Minor Function Number 2 Parameter 1 Reserved Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved SMAPI BIOS B 31...

Page 108: ...timer Not support 1 Support Bit 1 LCD off timer Not support 1 Support Bit 11 HDD off timer Not support 1 Support Bits 15 12 Reserved Bits 7 Timer control Bit System Hibernation suspend timer Disable 1...

Page 109: ...timer Disable 1 Enable Bit 2 LCD off timer Disable 1 Enable Bit 3 HDD off timer Disable 1 Enable Bits 7 4 Reserved Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved...

Page 110: ...Event Bit Definition Bits 2 Reserved Bit 3 Standby Bit 4 Suspend Bit 5 RediSafe Bit 6 Hibernation Bit 7 Power off Note If bits are duplicated the highest bit is available B 34 SMAPI BIOS...

Page 111: ...eturn Code Error status Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Bits 15 8 Capability for event Bit 8 RediSafe is controlled by global conditions The RediSafe bit is ignored in...

Page 112: ...event Bit Enable safe suspend if suspend is selected Disable 1 Enable Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Auxiliar...

Page 113: ...arameter 1 Reserved Parameter 2 Hardware and software event definition Bits 15 8 Capability see page B 34 Bits 7 Condition see page B 34 Parameter 3 Reserved Parameter 4 Bits 31 16 Reserved Bits 15 Po...

Page 114: ...4 Bits 31 16 Reserved Bits 15 Condition for power switch detection Bits 15 8 Capability see page B 34 Bits 7 Condition see page B 34 Parameter 5 Bits 31 16 Reserved Bits 15 Condition for LID close det...

Page 115: ...d Bits 15 Standby timer expiration event definition Bits 15 8 Capability see page B 34 Bits 7 Condition see page B 34 Parameter 5 Bits 31 16 Reserved Bits 15 Hibernation timer during suspend mode expi...

Page 116: ...served Bits 15 Condition for standby timer expired Bits 15 8 Capability see page B 34 Bits 7 Condition see page B 34 Parameter 5 Bits 31 16 Reserved Bits 15 Condition for hibernation timer during susp...

Page 117: ...3 Reserved Parameter 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Reserved Parameter 1 Bits 15 8 System timer capability Bit 8 Timer cannot be specified...

Page 118: ...nce mode F4h Auto power management mode Bits 7 System timer initial value units minutes h Disable system timer Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Outpu...

Page 119: ...r 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Bits 15 8 Reserved Bits 7 Hibernation timer during suspend mode...

Page 120: ...initial value units minutes h Disable hibernation timer during suspend mode Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Output Field Return Code Error status Au...

Page 121: ...rror status Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Critical low battery condition detection event definition Bits 15 8 Capability see page B 34 Bits 7 Condition see page B 34...

Page 122: ...see page B 34 Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Bits 31 8 Reserved Bits 7 Condition for out of environment condition detection Bits 7 Condition see page B 34 Parameter 5 Reserved...

Page 123: ...ondition for resuming trigger from system suspend mode Bit Resume switch by hardware Bit 1 LID open detection Bit 2 RTC alarm resume timer detection Bit 3 RI from the serial device detection Bits 15 4...

Page 124: ...1 LID open detection Bit 2 RTC alarm resume timer detection Bit 3 RI from the serial device detection Bits 15 4 Reserved Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Rese...

Page 125: ...tus Auxiliary Return Code Reserved Parameter 1 Reserved Parameter 2 Reserved Parameter 3 Reserved Parameter 4 TOD of resume timer BCD format Bits 7 Seconds 59 Bits 15 8 Minutes 59 Bits 23 16 Hours 23...

Page 126: ...es 59 Bits 23 16 Hours 23 Bits 31 24 Reserved Parameter 5 Date of resume timer BCD format Bits 7 Day 1 31 Bits 15 8 Month 1 12 Bits 23 16 Year 99 Bits 3 24 Reserved Bit 31 Resume date validation Valid...

Page 127: ...served Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Request System Suspend Input Field Major Function Number 7 Minor Function Number 1 Parameter 1 Reserved Param...

Page 128: ...1 Reserved Parameter 2 Reserved Parameter 3 Reserved Parameter 4 Reserved Parameter 5 Reserved Request System Off Input Field Major Function Number 7 Minor Function Number 3 Parameter 1 Reserved Para...

Page 129: ...m SMBHDR_INFO DW 8 Information word SMBHDR_RSV1 DW A Reserve 1 SMBHDR_R_OFFSET DW C Real mode offset SMBHDR_R_SEGMENT DW E Real mode segment SMBHDR_RSV2 DW 1 Reserve 2 SMBHDR_P16_OFFSET DW 12 16 bit p...

Page 130: ...MBIN_PARM_1 DW SMBIN_PARM_2 DW SMBIN_PARM_3 DW SMBIN_PARM_4 DD SMBIN_PARM_5 DD SMB_INPARM ENDS Output Parameter SMB_OUTPARM STRUC SMBOUT_RC DB SMBOUT_SUB_RC DB SMBOUT_PARM_1 DW SMBOUT_PARM_2 DW SMBOUT...

Page 131: ...FO 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 offse...

Page 132: ...SMBIN_PARM_3 DWORD SMBIN_PARM_4 DWORD SMBIN_PARM_5 INPARM PINPARM Output Parameter typedef struct BYTE SMBOUT_RC BYTE SMBOUT_SUB_RC WORD SMBOUT_PARM_1 WORD SMBOUT_PARM_2 WORD SMBOUT_PARM_3 DWORD SMBOU...

Page 133: ...Function Declaration C Language SMAPI BIOS function typedef WORD far SMB FPINPARM FPOUTPARM SMAPI BIOS B 57...

Page 134: ...ader CF 1 No SMAPI BIOS FindSmapi Proc Near push eax push cx push si push ds mov ax BIOS_SEG F Segment mov ds ax mov bx Start point mov cx SMB_CAND_CNT Total check count mov eax BMS Target strings cmp...

Page 135: ...xt pushf Save direction flag cld Clear it mov si bx xor ax ax movzx cx byte ptr ds bx SMBHDR_LEN lodsb add ah al loop b popf Restore Direction flags cmp ah 1 Checksum is OK cmc FindSmapiFin pop ds pop...

Page 136: ...on 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...

Page 137: ...S MyPtr SMBHDR_SIG 2 M MyPtr SMBHDR_SIG 3 B MyPtr 2 Find the Signature if cnt x1 We cannot find it return FALSE else 3 Calculate Checksum for cnt cnt MyPtr SMBHDR_LEN cnt cksum BYTE MyPtr SMBHDR_SIG c...

Page 138: ...rameter Field mov al SMB_GET_SYSID mov bx Func al push ds mov ax offset OutputParm push ax push ds mov ax offset InputParm push ax call _SmapiBios add sp 8 Get information from Output Parm or ax ax jn...

Page 139: ...putParm mov al SMB_GET_SYSID mov ebx Func al push ds mov eax offset OutputParm push eax push ds mov eax offset InputParm push eax call _SmapiBios add sp 16 Get information from Output Parm or ax ax jn...

Page 140: ...PARM MyOutput WORD Rc 1 if GetSmapiEntry SmapiEntry MyInput SMBIN_FUNC MyInput SMBIN_SUB_FUNC if SmapiEntry MyInput MyOutput No System ID is available else Rc MyOutput SMBOUT_PARM_1 else No SMAPI BIOS...

Page 141: ...tates do not allow disclaimer of express or implied warranties in certain transactions therefore this statement may not apply to you This publication could include technical inaccuracies or typographi...

Page 142: ...C 2 SMAPI BIOS...

Page 143: ...C bytes RT CMOS RAM 2 27 connectors external bus 2 8 hard disk drive 2 8 keyboard 2 4 connectors continued mouse 2 4 PC Card 3 9 system board DIMM 2 17 UltraSlim Bay 2 11 control ports system 2 29 2 3...

Page 144: ...yboard mouse connector 2 4 L LCD liquid crystal display 3 2 liquid crystal display LCD 3 2 lithium ion Li ion battery pack power supply 1 12 low and high base memory bytes RT CMOS RAM configuration 2...

Page 145: ...mory RAM 1 3 2 15 read only memory ROM 1 3 2 15 real mode switch 2 29 real time clock 2 18 real time clock bytes RT CMOS 2 21 refresh rate specifications 1 7 refresh request 2 31 register CD ROM drive...

Page 146: ...equest system standby B 51 request system suspend B 51 return codes B 11 SMAPI continued set hibernation timer B 44 set system resume timer B 50 slave micro control unit B 17 system identification B 1...

Page 147: ...sources A 1 system timers 1 3 T temperature 1 8 TFT LCD thin film transistor liquid crystal display 3 2 thin film transistor liquid crystal display TFT LCD 3 2 time status indicator 2 24 timers system...

Reviews: