Lenovo ThinkPad 770Z Technical Reference Manual for the ThinkPad 770
Lenovo ThinkPad 770Z Manual
View all Lenovo ThinkPad 770Z manuals
Add to My Manuals
Save this manual to your list of manuals |
Lenovo ThinkPad 770Z manual content summary:
- Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 1
05L1739 S05L-1739-00 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 2
Note Before using this information and the product it supports, be sure to read the general information under Appendix C, or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 3
Symbols 2-7 Hard Disk Drive Connector 2-8 External Bus Connector 2-9 UltraBay II Connector 2-12 Diskette Drive and Controller 2-15 Memory 2-16 ROM Subsystem 2-16 RAM Subsystem 2-16 System Memory Map 2-17 System Board Memory for the DIMM Connectors . . . . . 2-18 © Copyright IBM Corp. 1997 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 4
Passwords Selectable Drive-Startup Sequence Hardware Compatibility Error Codes 2-19 2-29 2-29 2-30 2-31 2-32 2-32 2-33 2-34 2-35 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 5
System Information Service System Configuration Service Power Management Service Event Bit Definition Samples Function Declaration Installation Check BIOS Call B-12 B-22 B-29 B-34 B-53 B-57 B-58 B-62 Appendix C. Notices C-1 Trademarks C-2 Index X-1 v - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 6
vi - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 7
Pin Assignments . 2-11 UltraBay II Connector Pin Assignments 2-13 Diskette Drive Read, Write, and Format Capabilities 2-15 System Memory Map 2-17 DIMM Adapter Card Memory Connector Pin Assignments 2-18 RT/CMOS RAM Address Map 2-19 RT/CMOS Address and NMI Mask Register (Hex 0070 2-20 RT - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 8
30. 2-31. 2-32. 2-33. 3-1. 3-2. 3-3. System Control Port A (Hex 0092 2-30 System Control Port B (Hex 0061, Write 2-31 System Control Port B (Hex 0061, Read 2-31 Error Codes 2-35 BIOS Video VGA Modes 3-3 Video BIOS Extended Modes-Trident 9397 3-4 PCMCIA PC Card Slot Pin Assignments 3-12 viii - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 9
IBM ThinkPad 770 computer. This technical reference is intended for those who develop hardware and software products for the computer. Users Program Interface (SMAPI) BIOS, which controls the system information, system configuration, and power management features of the ThinkPad computer. Appendix C, - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 10
x Preface - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 11
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-11 © Copyright IBM Corp. 1997 1-1 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 12
The IBM ThinkPad 770 computer (hereafter called the ThinkPad computer or the computer) is notebook-size computer that feature the AT bus architecture. Each computer supports one UltraBay II and one internal hard disk drive. The ThinkPad 770 computer also supports an internal CD-ROM drive or - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 13
and their features. The 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 subsystem EEPROM subsystem Video subsystem Type - Features Intel - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 14
for: CardBus Two Type I or II PC cards One Type III PC card Is driven by: MDSP 3780i SRAM 32 Kb by 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 Figure 1-2 (Part - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 15
and NMI Mask Extended RT and CMOS Reserved DMA Page Registers (0-3) DMA Page Registers (4-7) 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 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 16
Device MIDI Port 4 ThinkPad Modem Secondary IDE Registers Parallel Port 2 Reserved Audio Subsystem - FM Synthesizer Reserved Video Subsystem Parallel Port 1 Video Subsystem Video DAC Video Subsystem PCMCIA Interface (DCR 2959) Serial Port 3 IR Port 3 Diskette-Drive Controller Primary IDE Registers - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 17
(64bit) (for not all models) read hit (back-to-back) write hit (back-to-back) Memory (64bit) (see Note) read, page hit read, raw miss read, page miss posted write write retire for access to system board RAM are based on 70 ns EDO memory. Figure 1-4. Performance Specifications System Overview 1-7 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 18
Heat output: 56 W Acoustical readings (see Figure 1-7 on page 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 altitudes, the maximum air - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 19
is required. At maximum configuration. Figure 1-6. Electrical Specifications Acoustical Readings 770 770 (with SelectaDock III) LWAd in bels Operate Idle 4.40 3.90 of machines. Operate Shows the value while using the hard disk drive. All measurements made in accordance with ANSI S12.10 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 20
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 DVD drive Voltages The power supply generates six different dc voltages: VCC5M, VCC3M, VCC12, and VCCSW. Figure 1-8 shows - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 21
. Pin Voltage 1 +7.0 V dc to +17.0 V dc (depending on charging conditions) 2 Ground Figure 1-9. Voltage Pin Assignments for the 56W AC Adapter Battery Pack The ThinkPad computer uses a lithium-ion (Li-ion) battery pack that meets the following electrical specifications: System Overview 1-11 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 22
Nominal Voltage Capacity (average) Protection +10.8 V dc 4.5 ampere hours (AH) Overcurrent protection Overvoltage protection Overdischarge protection Thermal protection Figure 1-10. Lithium-ion Battery Pack Specifications 1-12 System Overview - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 23
2-7 Hard Disk Drive Connector 2-8 External Bus Connector 2-9 UltraBay II Connector 2-12 Diskette Drive and Controller 2-15 Memory 2-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 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 24
the microprocessor, the system board of the ThinkPad 770 computer contains an additional 256 KB of external Level 2 (L2) cache memory. The cache memory in the Intel Pentium microprocessor and the L2 external cache memory enable the microprocessor to read instructions and data much faster than if the - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 26
Keyboard/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 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 27
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 System/2 Hardware Interface Technical Reference. Figure 2-3. Key Numbers for the 84-Key Keyboard System Board 2-5 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 28
Figure 2-4. Key Numbers for the 85-Key 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, returns the keyboard ID. 2-6 System Board - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 29
Figure 2-5 shows the key numbers 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 105 91 96 101 106 92 97 102 93 98 99 103 108 104 Figure 2-5. Key - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 30
Hard Disk Drive Connector The hard disk drive connected to the system board is removable. Figure 2-6 shows the pin assignments for the connector on the VCC5B Vcc 57 VCC5B Vcc 58 Reserved NC 59 -HDDDETECTI 60 GND Ground Figure 2-6. Hard Disk Drive Connector Pin Assignments 2-8 System Board - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 31
C: System control signal F: Diskette drive signal G: Ground I: IDE hard disk drive signal J: Joy stick / Midi K: Keyboard/mouse signal L: Parallel port 61 181 M: PC Card signal P: PCI-bus signal R: Reserved S: Serial port signal T: ISA-bus signal U: USB V: Video signal W: Power line System Board - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 32
Pin Type Signal Name 001 W 002 W 003 P 004 G 005 P 006 P 007 G 008 P 009 P 010 G 011 P 012 P 013 G 014 P 015 P 016 G 017 P 018 P 019 G 020 P 021 P 022 G 023 P 024 R 025 G 026 P 027 P 028 R 029 R 030 R 031 R 032 P 033 P 034 G 035 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 33
142 L 143 L 144 G 145 L 146 L 147 L 148 L 149 L 150 G 151 G 152 L 153 F 154 G 155 F 156 F 157 F 158 F 159 G 160 F 161 F 162 F 163 F 164 G 165 C 166 C 167 C 168 M 169 G 170 J 171 J 172 J 173 J 174 G 175 C 176 C 177 R 178 U 179 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 34
UltraBay II Connector 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. 2-12 System Board - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 35
Pin Signal 1 UBAYID1 2 UBAYID2 3 GND 4 GND 5 -INDEX 6 -DRVSEL0 7 -DISKCHG 8 -DRVID0 9 NC 10 -MEDID0 11 -MONTEN0 12 DRATE1 13 -DIR 14 -DRVID1 15 -STEP 16 GND 17 -WRDATA 18 GND 19 -WREN 20 -MEDID1 21 -TRACK0 22 DRATE0 23 -WPROTECT 24 -RDDATA 25 GND 26 -SIDE1SEL 27 UBAYID0 28 RSTDRV 29 GND 30 DD7 31 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 36
Pin Signal 51 DD15 52 GND 53 -UBAY_HDD 54 DMARQ 55 GND 56 -DIOW 57 GND 58 -DIOR 59 GND 60 IORDY 61 CSEL 62 -DMACK 63 IRQ 64 -IOCS16 65 DA1 66 -PDIAG 67 DA0 68 DA2 69 -CS1 70 -CS3 71 -DASP 72 -MCS 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 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 37
and Controller Figure 2-9 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 Write Format - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 38
After POST checks that system memory is operating 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 770 is 64 bits wide - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 39
2-10 on page 2-17 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 blocks of system board memory starting at or above the hex 100000 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 40
System Board Memory for the DIMM Connectors The system board has two DIMM connectors. Figure 2-11 shows the pin assignments for the DIMM connector. 72 RFU 108 Vss 142 SCL 73 RFU 109 A9 143 Vcc 74 RFU 144 Vcc Figure 2-11. DIMM Adapter Card Memory Connector Pin Assignments 2-18 System Board - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 41
/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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 42
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-13. RT/CMOS Address and NMI Mask Register (Hex 0070) Bit 7 Bits 6-0 When this write-only bit is set to - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 43
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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 44
-Time Clock Bytes (Hex 000-00D) Note: The setup program 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 setup program does. Status Register A (Hex - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 45
keep time. The next update will occur at 500 ms after a pattern of 01 is written to these bits. To use the original bank of memory, select 0. To use the extended registers, select 1. These bits allow the selection of a divider output frequency or disable the divider output. Status Register B (Hex - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 46
Bit 2 Bit 1 Bit 0 This bit indicates whether the binary-coded-decimal (BCD) or binary format is used for time-and-date calendar . Bits 3-0 These bits are reserved. Status Register D (Hex 00D) Bit Function 7 Valid RAM 6-0 Reserved Figure 2-19. Status Register D (Hex 00D) 2-24 System Board - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 47
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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 48
1 1 1 Description No drive installed for hard disk drive 2 Use CMOS 1BH for hard disk drive 2 Figure 2-24. Hard Disk Drive Type 2 (Bits 7-4) Bit 3-0 0 0 0 0 1 1 1 1 Description No drive installed for hard disk drive 3 Use CMOS 1CH for hard disk drive 3 Figure 2-25. Hard Disk Drive Type 3 (Bits - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 49
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-26. Hard Disk Drive Type Byte Reserved Bytes (Hex 013): These bytes are reserved. Equipment - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 50
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. 2-28 System - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 51
microprocessor that a channel check timeout has occurred. This situation can cause lost data or an overrun error on some I/O devices. The NMI masks all other interrupts. The interrupt return (IRET) instruction restores the interrupt flag to the state it was in before the interrupt occurred. A system - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 52
Bit 0 These bits are reserved. This bit provides a security lock for the secured area of RT/CMOS. If this bit is set to 1, the 8-byte power-on password is locked by the software. alternative method supports operating systems requiring faster operation than that provided on the IBM Personal Computer - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 53
instruction to the system microprocessor. 4. Reenable all maskable and nonmaskable interrupts. If you do not follow this procedure, the results are unpredictable. Note: Whenever possible, use BIOS IBM Personal System/2 and Personal Computer BIOS 7 PCI SERR# (PCI error) status 6 Channel check status - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 54
this bit enables the timer 2 gate. Power-On Password RT/CMOS RAM has 8 bytes reserved for the power-on password and the check auxiliary device controller section of the IBM Personal System/2 Hardware Interface Technical hard-disk password (HDP) protects the data on your removable hard disk drive - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 55
ThinkPad User's Guide. Selectable Drive-Startup Sequence Selectable drive-startup (selectable boot) allows you to control the startup sequence of the drives want to change the drive-startup sequence to load the operating system from the hard disk without first checking the diskette drive, or to do a - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 56
. 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 57
during hibernation wake-up. 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. Keyboard error. Figure 2-33 (Part 1 of 2). Error Codes System Board 2-35 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 58
I9990303 I9990305 Description Diskette drive or controller error. No valid boot record on diskette. Invalid diskette drive error. Serial-A test failure. Serial-B test failure. Hard disk controller failure. Hard disk 0 error. Hard disk 1 error. System board video error. PCMCIA presence test failure - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 59
Section 3. Subsystems 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 3-5 Telephony (Modem) Function 3-6 Audio Subsystem 3-7 MIDI Port Function 3-7 Sound Blaster Support Function 3-7 Audio Port Specifications - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 60
consists of the XGA video controller and video random-access memory (VRAM). The video subsystem supports an IBM thin-film transistor ( ×1024 1600×1200 The video subsystem also supports PS/2 analog displays without any additional adapters. Note: Use of any video subsystem features not documented in - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 61
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 (Hex) 0, 1 0*, 1* 0#, 1# 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 Max Pages 8 8 8 8 8 8 1 1 8 8 8 4 2 2 1 1 1 Pels 320× - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 62
video BIOS extended modes for the 770 (containing a video chip Trident Cyber 9397 and 2 MB VRAM): Figure 3-2. Video BIOS Extended Modes-Trident 9397 3-4 Subsystems Video 1280x1024x256 107 1600x1200x16 - 1600x1200x256 - Note: o1: Supported by centering mode only. External Monitor 87i 96i 60 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 63
-feature telephone Answering machine Headphone-free, full-duplex speaker phone ThinkPad Modem The modem subsystem provides three system settings: I/O address 0320-0323 0330-0333 (default) Sound Blaster Support Function The Sound Blaster support function provides three system settings: I/O address, - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 64
I/O Address 0220-0233 (default) 0240-0253 0260-0273 0280-0293 0388-038B (synthesizer) IRQ Level IRQ 5 (default) IRQ 7 IRQ 10 IRQ 11 DMA Channel DMA 0 DMA 1 (default) DMA 6 DMA 7 Telephony (Modem) Function The telephony (modem) function provides the following settings: Serial Port COM1 (I/O: 03F8 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 65
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 port I/O address is as follows (only when docked to the docking station): I/O Address 0300-0301 0330-0331 (default - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 66
Audio Port Specifications Audio Output: - ⅛-inch mini-jack for headphone - Headphone speaker output: 22 mW (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 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 67
Infrared (IR) Subsystem The IR subsystem supports the following functions: MIF/FIR mode - 567 Kbps - 1.152 4 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.) IRQ Level IRQ 3 IRQ 4 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 68
attached special cable) - Color standard: NTSC or PAL - Y signal: 1 V pp 75 ohm with negative composite sync - C signal: 0.286 V pp 75 ohm Composite Video Jack (In/Out) - Pin jack (provided with attached special cable) - Color standard: NTSC or PAL - 1 V pp 75 ohm with negative composite sync Dolby - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 69
board has two PCMCIA (Personal Computer Memory Card International Association) slots that support the following types of PC Card: 16 bit PC Card Type-I, II, III 5V, 3.3V 32 bit PC Card Type-I, II, III 5V, 3.3V However, x.xV, y.yV, DMA, and ZV are not supported. The maximum current allowable for both - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 70
Pin Assignments Figure 3-3 shows the pin assignments for the PCMCIA slots. Pin 16-Bit PC Card 1 Ground 2 D3 3 D4 4 D5 5 D6 6 D7 7 CE1# 8 A10 9 OE 10 23 A6 24 A5 25 A4 26 A3 27 A2 28 A1 29 A0 30 D0 32-Bit PC Card Ground CAD0 CAD1 CAD3 CAD5 CAD7 CC/BE0# CAD9 CAD11 CAD12 CAD14 CC/BE1# CPAR CPERR# CGNT - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 71
64 D8 65 D9 66 D10 67 CD2# 68 GND 32-Bit PC Card CAD29 Reserved CCLKRUN# Ground Ground CCD1# CAD2 CAD4 CAD6 Reserved CAD8 CAD10 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 1.0 A (including both slots - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 72
hard disk is attached to the hard disk connector, an IDE device on the UltraBay becomes a primary slave. (The hard disk attached to the hard disk connector is the primary master.) If no hard disk is attached to the hard to enable or disable it with the ThinkPad Features program. 3-14 Subsystems - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 73
selectable in the ThinkPad Configurations program or Keyboard Serial port Parallel port Infrared port Diskette controller Video controller IRQ 0 1 Disabled 4 3 4 3 -03D5, 03D8-03D9, 03DA, 2100-21FF, 2200-2203, 2300-2323 Memory Address (Hex) None None None None None None A0000-BFFFF and C0000-C9FFF - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 74
(for the enhanced video model) (For models with internal modems only) ThinkPad modem Sound blaster MIDI Joystick port (For models with internal modems only) ThinkPad modem WSS codec base Control base Hard disk drive, CD-ROM drive (for the CD-ROM drive model), or hard disk drive in the UltraBay II - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 75
III The IDE hard disk drive or IDE CD-ROM drive in the docking station The ISA adapter card (option card) in the docking station IRQ I/O Address (Hex) (Dependent (Dependent on on the the PC Card PC Card type) type) 8 0070-0071 12 0060 and 0064 13 None Memory Address (Hex) (Dependent - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 76
as the printer operating mode from the ThinkPad Configuration program, you must select one value from the four selections (including "disabled"). The enhanced video features and the PCI adapter card in the SelectaDock docking system share the same IRQ11. The memory address higher than the system - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 77
B-6 Sample in Assembler Language B-8 Sample in C Language B-9 Calling Convention Pseudo 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 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 89
Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved Parameter 2 - CPU ID (Bits (parameter 5 is valid) Parameter 4 - (Bits 31-16) Reserved - (Bits 15- ) CPU clock (units : MHz) Parameter 5 - (Bits 31-16) Reserved - (Bits 15- ) Internal clock - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 93
1 - Reserved Parameter 2 - Reserved 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 Parameter 2 - Slave controller - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 101
CMOS (effective after reboot) Bits 7- Reserved Parameter 2 - Reserved Parameter 3 - Reserved Parameter 4 - Reserved Parameter 5 - Reserved Output Field Return Code - Error status Auxiliary Return Code auto control = : Not support = 1 : Support Parameter 2 - Reserved Parameter - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 102
7- Request type = h - Current hardware = 1h - 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 - Reserved Parameter 1 - Reserved Parameter 2 - Reserved - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 109
= : 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 Output Field Return Code - Error status Auxiliary Return Code - Reserved Parameter 1 - Reserved - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 129
Samples Data Structure Assembler Language ; ; Smapi BIOS Header ; SMB_HEADER @SMBHDR_SIG @SMBHDR_VER @SMBHDR_VER_VER @SMBHDR_LEN @SMBHDR_CHKSUM @SMBHDR_INFO @SMBHDR_RSV1 @SMBHDR_R_OFFSET @SMBHDR_R_SEGMENT @SMBHDR_RSV2 @SMBHDR_P16_OFFSET @SMBHDR_P16_BASE @SMBHDR_P32_OFFSET @SMBHDR_P32_BASET - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 131
C Language // // SMAPI BIOS Header // typedef struct { BYTE SMBHDR_SIG]4[ BYTE SMBHDR_VER BYTE SMBHDR_VER_VER BYTE SMBHDR_LEN BYTE SMBHDR_CHKSUM WORD SMBHDR_INFO mode offset ; // 16-bit Protect mode base address ; // 32-bit Protect mode offset ; // 32-bit Protect mode base address SMAPI BIOS B-55 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 133
Function Declaration C Language // // Smapi BIOS function // typedef WORD (far ᑍ SMB)(FPINPARM, FPOUTPARM) ; SMAPI BIOS B-57 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 134
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 ds, ax mov bx, ; Start - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 135
si, bx ax, ax cx,byte ptr ds:[bx].@SMBHDR_LEN ah, al @b ah, 1 ; Restore Direction flags ; Checksum is OK? ds si cx eax Endp SMAPI BIOS B-59 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 138
BIOS Call Assembler Language: 16-Bit Protected Mode ; ; Build Input Parameter Field ; mov al, SMB_GET_SYSID mov [bx].@ 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - 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 770Z | Technical Reference Manual for the ThinkPad 770 - Page 141
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 those expressly designated by IBM, are the responsibility of the user. IBM may have patents or pending patent - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 142
: AT IBM Mwave Personal 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 other countries. Other company, product, and service names, which - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 143
1-3 electrical specifications 1-8 electromagnetic compatibility, specifications 1-8 enable NMI 2-20 enhanced video subsystem 3-10 display 3-10 equipment byte, RT/CMOS RAM configuration 2-27 error codes 2-35 expansion bus adapter 1-4 external bus connector 2-9 © Copyright IBM Corp. 1997 X-1 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 144
gate A20 2-30 H hard disk drive connector 2-8 hard disk password 2-32 hardware battery pack, power supply 1-11 low and high base memory bytes, RT/CMOS RAM configuration 2-28 low and high expansion memory bytes, RT/CMOS RAM configuration 2-28 low and high usable memory bytes, RT/CMOS RAM - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 145
(POST) cache test 2-2 error codes 2-35 memory errors 2-17 password 2-30, 2-32 reset 2-30 ROM test 2-16 protected mode switch 2-30 R RAM (random access memory) 2-16 RAM I/O operations, RT/CMOS 2-21 RAM subsystem 1-3, 2-16 random access memory (RAM) 1-3, 2-16 read-only memory (ROM) 1-3, 2-16 real - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 146
codes 2-5 selectable drive-startup sequence 2-33 sequencing, output voltage 1-11 serial controller port 1-4 serial port 1-4 shutdown status byte, RT/CMOS RAM configuration 2-25 size, specifications 1-8 SMAPI assembler sample B-8 BIOS 29 processor (CPU) B-13 pseudo code B-10 UltraBay B-16 video B-19 - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 147
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-30 system control port B 2-31 system management API (SMAPI) B-1 system memory PC card, PCMCIA 3-11 type III PC card, PCMCIA 3-11 U UltraBay II connector 2-12 V video - Lenovo ThinkPad 770Z | Technical Reference Manual for the ThinkPad 770 - Page 148
IBM Part Number: 05L1739 Printed in the United States of America
05L1739
S05L-1739-00