Lenovo ThinkPad 600X Technical Reference Manual for the ThinkPad 600
Lenovo ThinkPad 600X Manual
View all Lenovo ThinkPad 600X manuals
Add to My Manuals
Save this manual to your list of manuals |
Lenovo ThinkPad 600X manual content summary:
- Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 1
- Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 2
, or services in your country. Requests for technical information about IBM products should be made to your IBM authorized dealer or your IBM marketing representative. Copyright International Business Machines Corporation 1998. All rights reserved. Note to US Government Users - Documentation - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 3
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 Signals 2-4 Connector 2-4 Scan Codes 2-4 Keyboard ID 2-6 Displayable Characters and Symbols 2-7 Hard Disk - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 4
Passwords Selectable Drive-Startup Sequence Hardware Compatibility Error Codes 2-18 2-28 2-28 2-29 2-30 2-31 2-31 2-32 2-33 2-34 Section 3. Subsystems 3-1 Video Subsystem 3-2 Video Modes 3-3 Modem Subsystem 3-5 ThinkPad Modem 3-5 MIDI Port Function 3-5 Sound Blaster Support Function - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 5
Power Management Service Event Bit Definition Samples Function Declaration Installation Check BIOS Call B-29 B-34 B-53 B-57 B-58 B-62 Appendix C. Appendix C C-1 Index X-1 v - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 6
vi - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 7
Pin Assignments . . 2-9 UltraSlim Bay Connector Pin Assignments 2-12 Diskette Drive Read, Write, and Format Capabilities 2-14 System Memory Map 2-16 DIMM Adapter Card Memory Connector Pin Assignments 2-17 RT/CMOS RAM Address Map 2-18 RT/CMOS Address and NMI Mask Register (Hex 0070 2-19 RT - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 8
33. 2-34. 3-1. 3-2. 3-3. Display Operating Mode Bits 2-26 System Control Port A (Hex 0092 2-29 System Control Port B (Hex 0061, Write 2-30 System Control Port B (Hex 0061, Read 2-30 Error Codes 2-34 BIOS Video VGA Modes 3-3 Video BIOS Extended Modes-NeoMagic NM2160 . . 3-4 PCMCIA PC Card Slot - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 9
contains hardware and software interface information specific to the IBM ThinkPad 600 computer. This technical reference is intended for those who develop hardware and software products for the computer. Users should understand computer architecture and programming concepts. This publication - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 10
x Preface - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 11
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 Voltage Sequencing 1-11 Power Supply Connector 1-11 Battery Pack 1-12 Copyright IBM Corp - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 12
The IBM ThinkPad 600 computer (hereafter called the ThinkPad computer or the computer) is a notebook-size computer that features AT bus architecture. Each computer supports one UltraSlim Bay and one internal hard disk drive. The ThinkPad 600 computer also supports an internal CD-ROM drive or - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 13
IBM Personal System/2 Hardware Interface Technical Reference describes devices common to PS/2 products by type number. Device Microprocessor External cache System timers ROM subsystem RAM subsystem CMOS RAM 576 bytes) 128 bytes CMOS RAM with real-time clock/ monitor DMA controller See "Video - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 14
40 bits Crystal Audio Voice band CODEC for modem Internal DAA Internal omnidirectional microphone Supports: ThinkPad IR/SIR/D-ASK (500 KHz) IR Supports: USB input and output devices Personal Computer Memory Card International Association Figure 1-2 (Part 2 of 2). System Board Devices and Features - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 15
System Control Port A Reserved System Flash ROM Control Register (DCR 2282) Interrupt Controller (Slave) Power Management Register DMA Controller (4-7) Reserved ThinkPad Modem Secondary IDE Registers Primary IDE Registers Joystick Port Audio Subsystem - Sound Blaster Audio Subsystem - Sound Blaster - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 16
3 IR Port 3 Diskette-Drive Controller Primary IDE Registers Serial Port 1 IR Port 1 Audio - WSS 1 Audio Control Port 1 Audio - WSS 2 ThinkPad Modem PCI Configuration Address Register PCI Configuration Data Register ThinkPad Modem Audio Control Port 2 Audio - WSS 3 Audio Control Port 3 Audio - WSS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 17
Figure 1-4 to Figure 1-7 list the specifications for the computers. Performance Specifications Device/Cycle Clock Counts (66 MHz) Microprocessor L1 cache (64bit) read/write hit L2 cache (64bit) (for not all models) read hit (back-to-back) write hit (back-to-back) Memory (64bit) (see Note) read - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 18
Physical Specifications Size Width: 300.0 mm (12 in.) Depth: 240.0 / 254.0 mm (9.6 / 10.16 in 1-9) Electrical (see Figure 1-6 on page 1-9) Electromagnetic compatibility: FCC class B With battery pack installed. This is the maximum altitude at which the specified air temperatures apply. At higher - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 19
is required. At maximum configuration. Figure 1-6. Electrical Specifications Acoustical Readings 600 600 (with SelectaDock III) LWAd in bels Operate Idle sound pressure levels at the 1 meter position for the random sample of machines. Operate Shows the value while using the hard disk drive - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 20
The power supply converts the ac voltage to dc voltage and provides power for the following: System board set Diskette drive Hard disk drive CD-ROM drive Auxiliary devices Keyboard LCD panel PCMCIA cards Voltages The power supply generates six different dc voltages: VCC5M, VCC3M, VCC12, and VCCSW - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 21
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 capacity of this connector must not exceed 4.0 A. Refer to Figure 1-9 for the appropriate - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 22
Pack The ThinkPad computer uses a lithium-ion (Li-ion) battery pack that meets the following electrical specifications: Nominal Voltage Capacity (average) Protection +10.8 V dc 3.2 ampere hours (AH) Overcurrent protection Overvoltage protection Overdischarge protection Thermal protection Figure - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 23
Scan Codes 2-4 Keyboard ID 2-6 Displayable Characters and Symbols 2-7 Hard Disk Drive Connector 2-8 External Bus Connector 2-8 UltraSlim Bay Connector 2-11 Diskette Drive and Controller 2-14 Memory 2-15 ROM Subsystem 2-15 RAM Subsystem 2-15 System Memory Map 2-16 System Board Memory for - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 24
and instruction, 32-KB write-back cache. It includes pipelined math coprocessor functions and superscalar architecture (two execution units). Cache Memory Operation In addition to the 32 KB of internal Level 1 (L1) cache memory in the microprocessor, the system board of the ThinkPad 600 computer - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 25
L1 cacheable for code read operations only. If data in this address range is already in cache memory and the address range is written to, the cached line is invalidated and is read again from RAM, where the BIOS is shadowed. Bus Adapter When the computer is attached to the ThinkPad SelectaDock III - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 26
/Mouse Connector Each ThinkPad computer has a keyboard/mouse connector, where the IBM mouse, keyboard, or numeric keypad is connected. Signals The keyboard and mouse signals are driven by open-collector drivers pulled to 5 V dc through a pull-up resistor. Figure 2-1 lists the signals. Sink current - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 27
Figure 2-3. Key Numbers for the 85-Key Keyboard Figure 2-4 shows 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 to the keys on the 90-key - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 28
Figure 2-5. Key Numbers for the 90-Key Keyboard For scan codes assigned to each numbered key, refer to 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 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 29
assigned to keys on the external numeric keypad. For scan codes assigned to each numbered key, refer to the IBM Personal System/2 Hardware Interface Technical Reference. 90 95 100 keyable from the keyboard, refer to the IBM Personal System/2 Hardware Interface Technical Reference. System Board 2-7 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 30
O 40 GND Ground 42 VCC5B Vcc 44 Reserved NC Figure 2-7. Hard Disk Drive Connector Pin Assignments External Bus Connector The docking station is connected through the 240-pin external bus connector on the rear panel. This connector is installed on the system board and has the following pin - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 31
GND -FRAME_DOCK GND AD16 AD18 GND AD20 GND AD22 C_BE3 GND GND AD25 AD27 AD29 AD31 GND -REQ_DOCK PCICLK_DOCK -BATOPDSBL VCC5B VCC5B Signal Name Figure 2-8 (Part 1 of 2). 240-Pin External Bus Connector Pin Assignments System Board 2-9 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 32
185 GND 186 GND 187 12C_DATA 188 JBCY 189 JBCX 190 JBB2 191 VTTON 192 JBB1 193 MIDIOUT_DOCK 194 MIDIIN_DOCK 195 GND 196 GND 197 -PWRSWITCH 198 - IRQ3 239 GND 240 -DOCK_ID0 Figure 2-8 (Part 2 of 2). 240-Pin External Bus Connector Pin Assignments 2-10 System Board - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 33
UltraSlim 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-11 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 34
46 SDD13 47 GND 48 SDD1 49 SDD14 50 SDD0 I/O and Feature I I GND GND I O I I N/C I O O O I 0 GND O GND O I I O I I GND O O O GND I/O I/O I/O I/O GND I/O I/O I/O I/O VCC VCC VCC VCC I/O I/O I/O I/O GND I/O I/O I/O Figure 2-9 (Part 1 of 2). UltraSlim Bay Connector Pin Assignments 2-12 System Board - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 35
73 CD_MUTE 74 AUDIO_RTN 75 CD_L_IN 76 CD_R_IN 77 GND 78 GND 79 -UBAYID3 80 -UBAYID4 I/O and Feature I/O GND I I GND O GND O GND I O O I I O I/O O O O O I O I I I I GND GND I I Figure 2-9 (Part 2 of 2). UltraSlim Bay Connector Pin Assignments System Board 2-13 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 36
Diskette Drive and Controller Figure 2-10 shows the read, write, and format capabilities of the diskette drive for the ThinkPad computer. Diskette Type 720 KB 3.5-inch 1.0 MB Diskette 3.5-inch 2.0 MB Diskette RWF − Legend: 1 KB (kilobyte) 1 MB (megabyte) R W F 1024 bytes 1,048,576 bytes Read - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 37
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 subsystem for the ThinkPad 600 computer is 64 bits wide. The 32-MB base memory is on the system - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 38
System Memory Map Memory is mapped by the memory controller registers. Figure 2-11 shows the memory map for a correctly functioning system. Memory can be mapped differently if POST detects an error in system board memory or RT/CMOS RAM. In the figure, the variable x represents the number of 1-MB - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 39
System Board Memory for the DIMM Connectors The system board has two DIMM connectors. Figure 2-12 shows the pin assignments for the DIMM connector. 137 DQ31 138 DQ63 139 Vss 140 Vss 141 SDA 142 SCL 143 Vcc 144 Vcc Figure 2-12. DIMM Adapter Card Memory Connector Pin Assignments System Board 2-17 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 40
/CMOS RAM Bytes Real-time clock Diagnostic status Shutdown status Diskette drive type Hard disk 2 and 3 drive type Hard disk 0 and 1 drive type Reserved Equipment Low and high base memory Low and high expansion memory Hard disk 0 extended byte Hard disk 1 extended byte Hard disk 2 extended byte Hard - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 41
The operation following a write to hex 0070 should access hex 0071; otherwise, intermittent failures of the RT/CMOS RAM can occur. Bit Function 7 NMI mask 6-0 RT/CMOS RAM address Figure 2-14. RT/CMOS Address and NMI Mask Register (Hex 0070) Bit 7 Bits 6-0 When this write-only bit is set to - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 42
The operation following a write to hex 0070 should access hex 0071; otherwise, intermittent failures of the RT/CMOS RAM can occur. Writing to the RT/CMOS RAM requires 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 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 43
BIOS interface to read and set the time and date; it initializes the registers in the same way that the setup program does. Status Register A (Hex 00A) Bit Function 7 Update update transfer will soon occur. If this bit 0, the update transfer will not occur for at least 244 µs. These bits control - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 44
-selection bits in status register A. The system initializes this bit to 0. This bit indicates whether the binary-coded-decimal (BCD) or binary format is used for time-and-date calendar updates. If set to 1, this bit indicates binary format. The system initializes this bit to 0. This bit indicates - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 45
this bit indicates that an update-ended interrupt has occurred. Bits 3-0 These bits are reserved. Status Register D (Hex 00D) Bit Function 7 Valid RAM 6-0 Reserved Figure 2-20. Status Register D (Hex 00D) Bit 7 Bits 6-0 This read-only bit monitors the internal battery. If set to 1, this - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 46
the bit definitions for the CMOS RAM configuration bytes. Diagnostic Status Byte (Hex 00E) Bit Function 7 Real-time clock power 6 Configuration record and checksum status 5 Incorrect configuration 4 Memory size mismatch 3 Hard disk controller/drive C initialization status 2 Time status - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 47
no hard disk drive is installed. Bit Drive Type 7-4 Hard disk drive type 2 3-0 Hard disk drive type 3 Figure 2-24. Hard Disk Type Byte (Hex 011) Bit 7-4 0 0 0 0 1 1 1 1 Description No drive installed for hard disk drive 2 Use CMOS 1BH for hard disk drive 2 Figure 2-25. Hard Disk Drive Type - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 48
Type Byte (Hex 012): This byte defines the type of hard disk drive installed. Hex 00 indicates that no hard disk drive is installed. Bit Drive Type 7-4 Hard disk drive 0 3-0 Hard disk drive 1 Figure 2-27. Hard Disk Drive Type Byte Reserved Bytes (Hex 013): These bytes are reserved. Equipment - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 49
032): Bits 7 through 0 of the date-century byte contain the binary-coded decimal value for the century. For information about reading and setting this byte, refer to the IBM Personal System/2 and Personal Computer BIOS Interface. Reserved Bytes (Hex 033-07F): These bytes are reserved. System Board - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 50
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 board channel check are subject to mask control with the NMI mask bit in the RT/CMOS Address register. See - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 51
gate A20 0 Alternate hot reset Figure 2-31. System Control Port A (Hex 0092) Bits 7-4 Bit 3 Bit bit provides a security lock for the secured area of RT/CMOS. If this bit is set to 1, the 8-byte supports operating systems requiring faster operation than that provided on the IBM Personal Computer - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 52
the system microprocessor, refer to the IBM Personal System/2 and Personal Computer BIOS Interface. System Control Port B (Hex 0061) Bit PCI error) check 1 Enable speaker data 0 Timer 2 gate to speaker Figure 2-33. System Control Port B (Hex 0061, Read) Bit 7 If a system board error occurs - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 53
RT/CMOS RAM has screen when it is installed, changed, or removed. After the power-on password has been installed, it can be changed or removed only during POST. The computer also can have a keyboard password. For more information, see the keyboard and auxiliary device controller section of the IBM - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 54
in Easy-Setup from being changed by unauthorized persons. For more information about these passwords, refer to the ThinkPad User's Guide. Selectable Drive-Startup Sequence Selectable drive-startup (selectable boot) allows you to control the startup sequence of the drives in your computer. The order - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 55
. The Intel 82077AA** diskette drive controller. The keyboard interface at addresses hex 0060 and hex 0064. Display modes supported by the IBM Monochrome Display and Printer Adapter, the IBM Color/Graphics Monitor Adapter, and the IBM Enhanced Graphics Adapter. The parallel printer ports (Parallel - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 56
Critical error found during hibernation wake-up. Memory data error. Memory line error 00 through 15. Memory line error 16 through 23. Memory test failure on on-board memory. ROM to RAM remap error. Unsupported memory module is installed. Keyboard error. Figure 2-34 (Part 1 of 2). Error Codes 2-34 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 57
mouse error. System bus error or mouse error. System bus error (I/F between 8042 and IPDC). TrackPoint error. System board or TrackPoint error. Hard disk error. Invalid hard disk boot record. Bank-2 flash ROM checksum error. No bootable device. Figure 2-34 (Part 2 of 2). Error Codes System - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 58
2-36 System Board - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 59
Channel 3-8 PC Card Subsystem 3-9 Pin Assignments 3-10 IDE Channel on the UltraSlim Bay 3-12 MIDI/Joystick Port 3-12 MIDI Interface 3-12 Joystick Interface 3-13 This section describes the video, DSP, audio, IR, and PCMCIA subsystems of the ThinkPad 600 computer. Copyright IBM Corp. 1998 3-1 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 60
the External Monitor 65,536 16,777,216 Resolution On the LCD 1024×768 On the External Monitor 640×480 800×600 1024×768 The video subsystem also supports PS/2 analog displays without any additional adapters. Color 65,536 colors 16,777,216 colors Resolution 640×480 800×600 1024×768 640×480 800 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 61
Video Modes The video subsystem supports the modes listed in Figure 3-1 and Figure 3-2 on page 3-4: Figure 3-1. BIOS Video VGA Modes Subsystems 3-3 Mode 4 2 2 1 1 1 Pels 320×200 320×350 320×400 640×200 640×350 640×400 320×200 640×200 640×350 640×400 320×200 640×200 640×350 640×350 640×480 640×480 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 62
The following shows the video BIOS extended modes for the ThinkPad 600 computer (containing a NeoMagic NM2160 video chip, which inteprets 2 MB VRAM): Figure 3-2. Video BIOS Extended Modes-NeoMagic NM2160 3-4 Subsystems Video Mode 320x200x32k 320x200x64k 320x240x256 320x240x64k 400x300x256 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 63
feature telephone Answering machine Headphone-free, full-duplex speaker phone ThinkPad Modem The modem subsystem provides three system settings: I/O 0313 0320-0323 0330-0333 (default) Sound Blaster Support Function The Sound Blaster support function provides three system settings: I/O address - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 64
compatible MPU401 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-voice wave table synthesizer Sound Blaster support MIDI Port Function The MIDI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 65
The Sound Blaster support function provides three system settings: I/O address, IRQ level, and DMA channel. I/O Address 0220-022F (default) 0240-024F 0338-038B (FM synthesizer) IRQ Level IRQ 5 (default) IRQ 7 IRQ 10 IRQ 11 DMA Channel DMA 0 DMA 1 (default) Audio Port Specifications Audio - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 66
supports the following functions: MIF/FIR mode - 9.6 Kbps - 57.6 Kbps - 115.2 Kbps - 1.152 Mbps - 4.0 Mbps Sharp** mode - 9,600 bps The I/O address can be selected from the following with the system utility program. The IR subsystem uses one serial port address and one IR controller register - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 67
supported. The maximum current per slot is: 500 mA at 5 V dc 500 mA at 3.3 V dc 50 mA at 12 V dc The PCI1250 PCI-to-Cardbus Controller Unit1 is used as the PC Card controller at the same time. The Type III PC Card, however, must be installed only in the lower slot. The Type II PC card cannot be used - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 68
CAD11 CAD12 CAD14 CC/BE1# CPAR CPERR# CGNT# CINT# Vcc Vpp CCLK CIRDY# CC/BE2# CAD18 CAD20 CAD21 CAD22 CAD23 CAD24 CAD25 CAD26 CAD27 Figure 3-3 (Part 1 of 2). PCMCIA PC Card Slot Pin Assignments 3-10 Subsystems - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 69
CBLOCK# CSTOP# CDEVSEL# Vcc Vpp CTRDY# CFRAME# CAD17 CAD19 CVS2 CRST# CSERR# CREQ# CC/BE3# CAUDIO CSTSCHG CAD28 CAD30 CAD31 CCD2# GND Figure 3-3 (Part 2 of 2). PCMCIA PC Card Slot Pin Assignments The maximum current for +5 V dc is .5 A for each slot (including both slots and V pp). The maximum - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 70
slave. (The hard disk attached to the hard disk connector is the primary 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 600. The MIDI/joystick - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - 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 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 72
3-14 Subsystems - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 73
ThinkPad Configuration program or application programs. The default values are highlighted. System Resource Timer Keyboard Serial port Parallel port Infrared port Diskette controller Video controller Sound 022F, 0240-024F, 0260-0273, or 0280-0293 Memory Address (Hex) None None None None None None - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 74
with internal modems only) ThinkPad modem WSS codec base Video control base Hard disk drive, CD-ROM drive (for the CD-ROM drive model) PCMCIA controller 03E3) (Dependent on the PC Card type) 0070-0071 0060 and 0064 None Memory Address (Hex) None None None None None None None None (Dependent on the - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 75
None The IDE hard disk drive or IDE CD-ROM drive in the docking station 15, 10, 11 0170-0177 and 0376, 01F0-01F7 and 3F6, 01E8-01EF and 03EE, or 0168-016F and 036E None None The ISA adapter card (option card) in the docking station (Refer to the manual that came with the adapter card.) The - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 76
A-4 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 77
Code B-10 Return Codes B-11 Function Description B-12 System Information Service B-12 Get System Identification B-12 Get CPU Information B-13 Get Display Device Information B-14 Get Docking Station Information B-15 Get UltraBay II Information B-16 Get Slave Micro Control IBM Corp. 1998 B-1 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 78
Set System Resume Timer Request System Standby Request System Suspend Request System Hibernation Request System Off Samples Data Structure Function Declaration Installation Check BIOS Call B-43 B-44 B-45 B-46 B-47 B-48 B-49 B-50 B-51 B-51 B-52 B-52 B-53 B-53 B-57 B-58 B-62 B-2 SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 79
special software interface, called the System Management Application Program Interface (SMAPI) BIOS, to control the following unique features of the ThinkPad system: System Information This BIOS provides unique ThinkPad information, such as the system identifier (system ID). System Configuration The - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 80
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 Signature Version (Major) Version (Minor) - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 81
BIOS service level: Information Word Bit : Real/V86 mode interface support Bit 1 : 16-bit protected mode support Bit 2 : 32-bit protected mode support The code base code address specifies the physical address for this BIOS, and the client must prepare the selector for this BIOS. The length - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 82
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 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 83
Output Field Field Return Code Auxiliary Return Code Parameter 1 Parameter 2 Parameter 3 Parameter 4 Parameter 5 Offset (in Hex) 00 01 02 04 06 08 0C Length Byte Byte Word Word Word Double word Double word SMAPI BIOS B-7 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 84
DD ? SMB_INPARM ENDS ; ; Output Parameter Structure ; SMB_OUTPARM @SMBOUT_RC @SMBOUT_SUB_RC @SMBOUT_PARM_1 @SMBOUT_PARM_2 @SMBOUT_PARM_3 @SMBOUT_PARM_4 @SMBOUT_PARM_5 SMB_OUTPARM STRUC DB ? DB ? DW ? DW ? DW ? DD ? DD ? ENDS B-8 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 85
{ BYTE SMBOUT_RC ; BYTE SMBOUT_SUB_RC ; WORD SMBOUT_PARM_1 ; WORD SMBOUT_PARM_2 ; WORD SMBOUT_PARM_3 ; DWORD SMBOUT_PARM_4 ; DWORD SMBOUT_PARM_5 ; } OUTPARM, POUTPARM ; typedef INPARM far FPINPARM ; typedef OUTPARM far FPOUTPARM ; SMAPI BIOS B-9 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 86
The following describes the calling convention using pseudo code. Assembler Language InputParm OutputParm SMB_INPARM SMB_OUTPARM < > 16-bit push mov push push ; SMB INPARM OUTPARM WORD SmapiBios ; InputParm ; OutputParm ; RC ; RC = SmapiBios(&InputParm, &OutputParm) ; B-10 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 87
the AL (AX) register and the return code field of the output parameter: No error 53 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 not - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 88
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 Parameter 3 - System BIOS revision Parameter 4 - (Bits 31-16) Reserved - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 89
5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved 254 MHz = FFh : Unknown (parameter 4 is valid) (Bits 7- ) Internal clock (units: MHz) = FEh : Internal clock is over 254 MHz = FFh : Unknown (parameter 5 is valid) Parameter - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 90
Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - (Bits 15-8) Built-in display FF : Unknown (Bits 7- ) Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved B-14 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 91
4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Docking station status Bit - Docking status = : 1 - Docking station ID Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved SMAPI BIOS B-15 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 92
Output Field Return Code - 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 = FE : No UltraBay - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 93
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 Parameter 2 - Slave controller Revision (= FFFF) - Not valid Parameter 3 - Reserved Parameter - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 94
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 = 1 : Open Bit 1 - AC Adapter = : Not attached = 1 : Attached Bits - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 95
- 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 Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 96
x12 x256 = A 2 - 16 x12 x32K = A 3 - 16 x12 x64K = A 4 - 16 x12 x16M = Others : Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field B-20 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 97
Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Refresh rate capability for specified mode: Bit - 6 Hz available Bits 8-15 : Reserved (must be B' ') Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved SMAPI BIOS B-21 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 98
System Configuration Service Get Display Device 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 - Reserved Parameter 5 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 99
Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Bits 15-8 : Reserved Bits 7- : Capability of display device function Bit - Display function type = : Not support = 1 : Support mode = 1 : LCD - TV selection mode Bits 7-1 : Reserved Parameter 5 - Reserved SMAPI BIOS B-23 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 100
selection mode = 1 : LCD - TV selection mode Bits 7-1 : Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved B-24 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 101
Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Bits 15-8 Pointing device current status Bits 1 , 8 - Built-in pointing device control = : Disable = 1 : Enable = 1 : Auto = 11 : Reserved Bit - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 102
current status Bits 1 , 8 - Built-in pointing device auto control = : Disable = 1 : Enable = 1 : Auto = CMOS (effective after reboot) Bits 7-2: Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 103
4 - Reserved Parameter 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 support Bits 15-1 - Reserved Bits 7- Current status - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 104
Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 105
5 - Reserved Output Field Return 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 power management mode Bits 7- Power - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 106
Battery operation = h - High performance mode = 1h - Auto power management mode = 2h - Manual power Manual power management mode Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - 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 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 108
Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Bits 15-8 Capability of timer control Bit 8 - System (Hibernation/suspend) timer = : Not support = 1 : Support Bit 9 - Standby timer = : Not support = 1 : Support Bit 1 - LCD - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 109
15-8 Reserved Bits 7- Timer control Bit - System (Hibernation/suspend) HDD off timer = : Disable = 1 : Enable Bits 7-4 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - 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 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 111
Field Return 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 each event condition.) = - Not support = 1 - Support Bits 7- Global - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 112
Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 113
Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Hardware and software Bits 15-8 - Capability (see page B-34) Bits 7- - Condition (see page B-34) SMAPI BIOS B-37 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 114
Bits 15-8 - Capability (see page B-34) Bits 7- - Condition (see page B-34) Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved B-38 SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 115
definition. Bits 15-8 - Capability (see page B-34) Bits 7- - Condition (see page B-34) Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 116
expired Bits 15-8 - Capability (see page B-34) Bits 7- - Condition (see page B-34) Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved B-40 SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 117
Manual PM mode (ac) = 2h - Manual PM mode (battery) = F3h - High performance mode = F4h - Auto power management mode Bits 7- Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error - Reserved SMAPI BIOS B-41 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 118
Manual PM mode (battery) = F3h - High performance 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 Output Field Return Code - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 119
1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 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 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 120
Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 121
5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Critical low battery condition detection event definition Bits 15 (see page B-34) Bits 7- - Condition (see page B-34) Parameter 5 - Reserved SMAPI BIOS B-45 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 122
Parameter 1 - Bits 15-8 : Reserved Bits 7- Condition for critical low battery condition detection Bits 7- - Condition (see page B-34) Parameter 2 - 34) Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 123
4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Condition for from the serial device detection Bits 15-4 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved SMAPI BIOS B-47 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 124
Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 125
Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter - Reserved Bit 31 - Resume date validation = - Valid (specified day) = 1 - Invalid (every day) SMAPI BIOS B-49 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 126
Bit 31 - Resume date validation = - Valid (specified day) = 1 - Invalid (every day) Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved B-50 SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 127
Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 128
Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 129
Samples Data Structure Assembler Language ; ; SMAPI BIOS Header ; SMB_HEADER STRUC @SMBHDR_SIG DB 4 dup (?) ; + - Signature @SMBHDR_VER DB ? ; + 4 - Major version @SMBHDR_VER_VER DB ? ; + 5 - Minor version @SMBHDR_LEN DB ? ; + 6 - Length @SMBHDR_CHKSUM DB ? ; + 7 - Checksum @ - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 130
@SMBOUT_PARM_2 @SMBOUT_PARM_3 @SMBOUT_PARM_4 @SMBOUT_PARM_5 SMB_OUTPARM STRUC DB ? DB ? DW ? DW ? DW ? DD ? DD ? ENDS STRUC DB ? DB ? DW ? DW ? DW ? DD ? DD ? ENDS B-54 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 131
C Language // // SMAPI BIOS Header // typedef struct { BYTE SMBHDR_SIG]4[ ; // Signature BYTE SMBHDR_VER ; // Major version BYTE SMBHDR_VER_VER ; // Minor version BYTE mode offset DWORD SMBHDR_P32_BASE ; // 32-bit Protect mode base address } SMB_HEADER, PSMB_HEADER ; SMAPI BIOS B-55 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 132
SMBOUT_RC ; BYTE SMBOUT_SUB_RC ; WORD SMBOUT_PARM_1 ; WORD SMBOUT_PARM_2 ; WORD SMBOUT_PARM_3 ; DWORD SMBOUT_PARM_4 ; DWORD SMBOUT_PARM_5 ; } OUTPARM, POUTPARM ; typedef INPARM far FPINPARM; typedef OUTPARM far FPOUTPARM; B-56 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 133
Function Declaration C Language // // SMAPI BIOS function // typedef WORD (far SMB)(FPINPARM, FPOUTPARM) ; SMAPI BIOS B-57 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 134
Installation Check Assembler Language: Real Mode ; ; FindSmapi ; ; On Entry : None ; On Exit : CF = .. Find out ; DX - Segment ; BX - Pointer to header ; ; CF = 1 .. No SMAPI BIOS ; FindSmapi Proc Near push eax push cx push si push ds mov ax, BIOS_SEG ; F Segment mov - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 135
ah, al @b popf cmp cmc ah, 1 ; Restore Direction flags ; Checksum is OK? FindSmapiFin: pop ds pop si pop cx pop eax ret FindSmapi Endp SMAPI BIOS B-59 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 136
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 } SMB_HEADER_REAL, far PFSMB_HEADER_REAL ; B-60 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 137
+= (BYTE)((MyPtr->SMBHDR_SIG)[cnt]) ; if (cksum) { // Bad Checksum return FALSE ; } else { // Build Return Address ( pFunc) = ( (DWORD)(MyPtr->SMBHDR_R_OFFSET) + (((DWORD)(MyPtr->SMBHDR_R_SEGMENT)) - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 138
BIOS Call Assembler Language: 16-Bit Protected Mode ; ; Build Input Parameter Field ; mov al, SMB_GET_SYSID mov [bx].@Func add ax, offset InputParm ax _SmapiBios sp, 8 ; ; Get information from Output Parm ; or ax, ax jnz Error mov bx, offset OutputParm mov al, [bx].@Parm1 B-62 SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 139
push call add ds eax, offset OutputParm eax ds eax, offset InputParm eax _SmapiBios sp, 16 ; ; Get information from Output Parm ; or ax, ax jnz Error mov ebx, offset OutputParm mov ax, [ebx].@Parm1 SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 140
= -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 interface. // Try to use CBIOS INT 15. } return Rc ; } B-64 SMAPI - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 141
any country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 142
C-2 SMAPI BIOS - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 143
board RAM, specifications 1-7 C cables 1-8 cache memory operation 2-2 CD-ROM drive 1-2 CMOS RAM 2-28 CMOS RAM configuration 2-24 CMOS RAM subsystem 1-3 compatibility hardware 2-33 configuration CRC bytes, RT/CMOS RAM 2-27 connectors external bus 2-8 hard disk drive 2-8 keyboard 2-4 connectors - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 144
device controller 1-4 keyboard/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-27 low and high expansion memory bytes, RT/CMOS RAM configuration - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 145
page miss 1-7 parallel controller port 1-4 passwords hard disk 2-31 power-on 2-31 supervisor 2-31 PC Card subsystem 3-9 PCI error check enable 2-31 PCMCIA 3-9 interface 1-6 slots 1-4 Pentium 90/120 MHz 1-3 performance, system 1-7 POST cache test 2-2 error codes 2-34 memory errors 2-16 password 2-29 - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 146
23 status register D (hex 00D) 2-23 S scan codes 2-4 selectable drive-startup sequence 2-32 sequencing, output voltage 1-11 serial port 1-4 shutdown status byte, RT/CMOS RAM configuration 2-24 size, specifications 1-8 SMAPI assembler sample B-8 BIOS call B-62 C language sample B-9 calling convention - Lenovo ThinkPad 600X | Technical Reference Manual for the ThinkPad 600 - Page 147
controller port 1-4 RAM subsystem 1-3 serial controller port 1-4 system timers 1-3 video subsystem 1-3 I/O address map 1-5 system control port A 2-29 system control port B 2-30 system management API (SMAPI) B-1 system memory power supply 1-11 voltage specifications 1-8 voltages, power supply 1-10