background image

   

 

 Header Image

Systems that support SMAPI BIOS must provide the following header
image in the F000 segment system ROM area at the 16-byte
boundary. The client needs to search and find this SMAPI BIOS
header image to get the entry point for the service.

Field

Offset
(in
Hex)

Length

Value

Signature

00

4 bytes

'

$SMB

'

 (ASCII)

Version (Major)

04

Byte

01h

Version (Minor)

05

Byte

00h

Length

06

Byte

20h

Checksum

07

Byte

Information Word

08

Word

Reserved 1

0A

Word

Real mode 16-bit offset to entry
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-bit protected mode offset to
entry point

18

Double
words

32-bit protected mode code
segment base address

1C

Double
words

Signature

ASCII Code 

'

$SMB

'

 is stored at the top of the header

image.

Version (Major or Minor)

Indicates the SMAPI BIOS version.

Length

The length of the header image.

Checksum

Checksum byte area. The client verifies that this
header image is valid by using this checksum; the client
should check all header image bytes, and the result will
be zero bytes.

B-4  SMAPI BIOS

Summary of Contents for ThinkPad 770

Page 1: ...05L1739 S05L 1739 00...

Page 2: ...warranties in certain transactions therefore this statement may not apply to you This publication could include technical inaccuracies or typographical errors Changes are periodically made to the inf...

Page 3: ...Supply Connector 1 11 Battery Pack 1 11 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...

Page 4: ...5 Telephony Modem Function 3 6 Audio Subsystem 3 7 MIDI Port Function 3 7 Sound Blaster Support Function 3 7 Audio Port Specifications 3 8 Infrared IR Subsystem 3 9 IRQ Level and DMA Channel 3 9 Enhan...

Page 5: ...e B 12 System Configuration Service B 22 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 Notices C 1 Tr...

Page 6: ...vi...

Page 7: ...8 UltraBay II Connector Pin Assignments 2 13 2 9 Diskette Drive Read Write and Format Capabilities 2 15 2 10 System Memory Map 2 17 2 11 DIMM Adapter Card Memory Connector Pin Assignments 2 18 2 12 RT...

Page 8: ...2 31 System Control Port B Hex 0061 Write 2 31 2 32 System Control Port B Hex 0061 Read 2 31 2 33 Error Codes 2 35 3 1 BIOS Video VGA Modes 3 3 3 2 Video BIOS Extended Modes Trident 9397 3 4 3 3 PCMCI...

Page 9: ...he 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: ...sh the foregoing computer model from other ThinkPad models by reading the system ID Interrupt 15H Function code AH 23H and AL 10H Returns AL 27H The system microprocessor contains an internal cache an...

Page 13: ...imers 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 256 MB 1 MB equals 1 048 576...

Page 14: ...rallel controller port 1 Programmable 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 com...

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: ...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 0604 060B Audio...

Page 17: ...or 233 MHz L1 cache 64bit read write hit 1 CPUCLK L2 cache 64bit for not all models read hit back to back write hit back to back 90 ns 60 ns 90 ns 60 ns Memory 64bit see Note read page hit read raw m...

Page 18: ...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 output 56 W Acousti...

Page 19: ...0 0 25 5 770 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: ...rive Auxiliary devices Keyboard LCD panel PCMCIA cards DVD drive Voltages The power supply generates six different dc voltages VCC5M VCC3M VCC12 and VCCSW Figure 1 8 shows the maximum current for each...

Page 21: ...tage Sequencing When power is turned on the output voltages reach their operational voltages within 2 seconds Power Supply Connector The following connector is used with the AC adapter The total power...

Page 22: ...m ion Battery Pack Specifications Nominal Voltage 10 8 V dc Capacity average 4 5 ampere hours AH Protection Overcurrent protection Overvoltage protection Overdischarge protection Thermal protection 1...

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

Page 24: ...l Pentium microprocessor and the L2 external cache memory enable the microprocessor to read instructions and data much faster than if the microprocessor had to access system memory When an instruction...

Page 25: ...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 into the cache...

Page 26: ...mum High level output voltage 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 k...

Page 27: ...gure 2 4 on page 2 6 shows the key numbers assigned to keys on the 85 key keyboard for countries other than the U S and Japan For scan codes assigned to each numbered key refer to the IBM Personal Sys...

Page 28: ...Keyboard 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 in keyboard only Interrupt 16H function code AH 0AH retu...

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 5 Key Numbers for the External Numeric Keypad Displayable Characters and Symbols For disp...

Page 30: ...GND Ground 37 PDIOR O 8 PDD7 I O 38 GND Ground 9 PDD8 I O 39 PIORDY I 10 GND Ground 40 CSEL O 11 PDD6 I O 41 PDACK O 12 PDD9 I O 42 GND Ground 13 GND Ground 43 IRQ14HDD I 14 PDD5 I O 44 IOCS16 I 15 P...

Page 31: ...d has the following pin assignments 1 240 120 121 60 180 181 61 Type Legend A Audio signal M PC Card signal C System control signal P PCI bus signal F Diskette drive signal R Reserved G Ground S Seria...

Page 32: ...R 086 G GND 027 P PAR 087 P AD11 028 R Reserved 088 P AD13 029 R Reserved 089 R R S 030 R Reserved 090 R Reserved 031 R Reserved 091 R Reserved 032 P AD14 092 R Reserved 033 P AD12 093 P AD15 034 G GN...

Page 33: ...D 204 F DIR 145 L D3 205 G GND 146 L D2 206 F MOTEN1 147 L D1 207 F DISKCHG 148 L D0 208 F INDEX 149 L AFD 209 F RDDATA 150 G GND 210 G GND 151 G GND 211 G GND 152 L ERR 212 L STB 153 F WRDATA 213 L I...

Page 34: ...tor The removable diskette drive secondary hard disk drive DVD drive or CD ROM drive can be connected to the UltraBay II connector on the system board This connector has the following pin assignments...

Page 35: ...I 15 STEP 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 RSTDRV O 29 GND GND 30 DD7 I O 31 DD8 I...

Page 36: ...HDD I 54 DMARQ I 55 GND GND 56 DIOW O 57 GND GND 58 DIOR O 59 GND GND 60 IORDY I 61 CSEL O 62 DMACK O 63 IRQ I 64 IOCS16 I 65 DA1 O 66 PDIAG I O 67 DA0 O 68 DA2 O 69 CS1 O 70 CS3 O 71 DASP I 72 MCS O...

Page 37: ...ive for the ThinkPad computer Figure 2 9 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 RWF...

Page 38: ...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 subsystem for the ThinkPad 770 is 64 bits wide T...

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

Page 40: ...71 72 73 74 D40 DQ9 DQ41 DQ10 DQ42 DQ11 DQ43 Vcc Vcc DQ12 DQ44 DQ13 DQ45 DQ14 DQ46 DQ15 DQ47 Vss Vss Reserved Reserved Reserved Reserved CK CKE Vcc Vcc RAS CAS WE RFU S0 RFU S1 RFU RFU RFU 75 76 77 7...

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

Page 42: ...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 43: ...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 44: ...ogram initializes status registers 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 se...

Page 45: ...this bit updates the cycle normally by advancing the count at a rate of one cycle per second If set to 1 it immediately ends any update cycle in progress and the program can initialize the 14 time byt...

Page 46: ...to 0 Status Register C Hex 00C Figure 2 18 Status Register C Hex 00C Bit Function 7 Interrupt request flag 6 Periodic interrupt flag 5 Alarm interrupt flag 4 Update ended interrupt flag 3 0 Reserved N...

Page 47: ...er drive C initialization status 2 Time status indicator 1 0 Reserved Bit 7 If set to 1 this bit indicates that the real time clock has lost power Bit 6 If set to 1 this bit indicates that the checksu...

Page 48: ...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 23 Hard Disk Type...

Page 49: ...27 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 50: ...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 51: ...rupts 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 system board...

Page 52: ...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 53: ...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 31 System Control Port B Hex 0061 Write Bit Function 7 4 Reserved...

Page 54: ...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 55: ...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 56: ...rs 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 Th...

Page 57: ...ad battery 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 not functional 179 NVRAM e...

Page 58: ...or 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 mouse...

Page 59: ...rt Function 3 7 Audio Port Specifications 3 8 Infrared IR Subsystem 3 9 IRQ Level and DMA Channel 3 9 Enhanced Video Subsystem 3 10 Video Port Specification 3 10 PCMCIA Subsystem 3 11 Pin Assignments...

Page 60: ...thout any additional adapters Note Use of any video subsystem features not documented in this book can result in future incompatibility LCD Type VRAM Size Color Depth Resolution On the LCD On the Exte...

Page 61: ...50 640 480 640 480 320 200 Max Pages 8 8 8 8 8 8 1 1 8 8 8 4 2 2 1 1 1 Box Size 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 B80...

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 o o o o o o o o o o o o o o o VESA Mode Number Hex 100 101 110 111 112 102 103 113 114 115 104 105 116 117 106 107...

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: ...I O Address IRQ Level DMA Channel 0220 0233 default 0240 0253 0260 0273 0280 0293 0388 038B synthesizer IRQ 5 default IRQ 7 IRQ 10 IRQ 11 DMA 0 DMA 1 default DMA 6 DMA 7 Serial Port COM1 I O 03F8 IRQ...

Page 65: ...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 voice wave table synthesizer Sound Blaster suppor...

Page 66: ...32 ohm maximum Maximum output level 2 4 V pp Output impedance 75 ohm Audio Input inch mini jack for microphone or line input Microphone gain 26 dB minimum 48 5 dB maximum Maximum input level Micropho...

Page 67: ...el 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 port 1 default 02F8 0...

Page 68: ...Video Port Specification S Video Jack In Out 4 pin mini DIN jack provided with attached special cable Color standard NTSC or PAL Y signal 1 V pp 75 ohm with negative composite sync C signal 0 286 V p...

Page 69: ...is used as the PC card controller in the system unit The available interrupt levels are IRQ 3 4 5 7 9 10 11 14 and 15 The system unit resumes operation from suspend mode when it receives the RI_OUT s...

Page 70: ...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 71: ...A18 Reserved 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 6...

Page 72: ...sk connector an IDE device on the UltraBay is a primary master MIDI Joystick Port The MIDI joystick port consists of the following functions MIDI port in out Joystick port A standard game port connect...

Page 73: ...3 None None Keyboard 1 0060 and 0064 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...

Page 74: ...isabled 0330 0332 0300 0302 0310 0313 or 0320 0323 None None Joystick port None 0201 None None For models with internal modems only ThinkPad modem 3 02F8 02FF None None 4 03F8 03FF 4 03E8 03EF 3 02E8...

Page 75: ...064 None None Math coprocessor exception 13 None None None SCSI controller SelectaDock III 11 3 4 5 7 9 10 15 or disabled Automatically set by the system None None The IDE hard disk drive or IDE CD RO...

Page 76: ...ThinkPad Configuration program When you enable ECP as the printer operating mode from the ThinkPad Configuration program you must select one value from the four selections including disabled The enha...

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: ...nge any of the intellectual property rights of IBM may be used instead of the IBM product program or service The evaluation and verification of operation in conjunction with other products except thos...

Page 142: ...onal Computer AT Personal System 2 PS 2 ThinkPad TrackPoint UltraBay Pentium MMX ProShare LANDesk and ActionMedia are trademarks or registered trademarks of Intel Corporation in the United States and...

Page 143: ...RT CMOS RAM 2 28 connectors external bus 2 9 hard disk drive 2 8 keyboard 2 4 connectors continued mouse 2 4 PCMCIA 3 11 system board DIMM 2 18 UltraBay II 2 12 control ports system 2 30 2 31 crystal...

Page 144: ...e 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 11 low and high base memory bytes RT CMOS RAM configuration 2 28 low and...

Page 145: ...memory RAM 1 3 2 16 read only memory ROM 1 3 2 16 real mode switch 2 30 real time clock 2 19 real time clock bytes RT CMOS 2 22 refresh rate specifications 1 7 refresh request 2 32 register CD ROM dri...

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

Page 147: ...tem resources 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 25 timers...

Page 148: ...IBM Part Number 05L1739 Printed in the United States of America...

Reviews: