Western Digital T13/2132-D 8GB INT 13h Functions Overview, Data Structure, Function Description

Page 27

June 23, 2010

T13/2132-D Revision 3

6 >8GB INT 13h Functions

6.1 Overview

The extended INT 13h functions are numbered from 41h through 49h, 4E, and 50h. These functions are different from the conventional INT 13h interface in the following ways:

a)register conventions have been changed to support the passing of data structures;

b)all media addressing information shall be passed via a buffer, not registers; and

c)flags are used to identify optional capabilities.

The caller shall specify a device number in the DL register when calling functions 41h through 48h. This is a logical number that has been assigned to the physical device by system firmware. The physical device addressing information can be retrieved via INT 13h FN 48h. The following registers in IA-32 and IA-64 compatible systems are used: AX, BX, CX, DX, DS, and SI.

 

Table 8 — Extended Function Definitions

 

 

Function

Description

41h

Check Extensions Present (see 8.14)

 

 

42h

Extended Read (see 8.15)

 

 

43h

Extended Write (see 8.16)

 

 

44h

Verify Sectors (see 8.17)

 

 

45h

Lock/Unlock Media (see 8.18)

 

 

46h

Eject Removable Media (see 8.19)

 

 

47h

Obsolete

 

 

48h

Get Device Parameters (see 8.20)

 

 

49h

Get Extended Media Change Status (see 8.21)

 

 

4Eh

Set Hardware Configuration (see 8.26)

 

 

50h

Send Packet Command (see 8.27)

 

 

6.2 Data Structure

The data structure for the INT 13h extensions shall be the device address packet. INT 13h converts addressing information in the device address packet to default parameters appropriate to the media. Table 9 defines the device address packet.

Working Draft Enhanced Disk Drive - 4 (EDD-4)

15

Image 27
Contents Revision June 23 Information technology Enhanced Disk Drive 4 EDD-4Points of Contact T13/2132-D Revision 3June 23Working Draft Enhanced Disk Drive 4 EDD-4 June 23 T13/2132-D Revision DraftT13/2132-D Revision June 23 American National StandardNew Capabilities added to EDD-4 Document StatusContents Working Draft Enhanced Disk Drive 4 EDD-4 Vii Viii Working Draft Enhanced Disk Drive 4 EDD-4 Output Parameters TablesFigures Introduction ForewordXii Working Draft Enhanced Disk Drive 4 EDD-4 Scope BSR IncitsAmerican National Standard for Information Technology ATA8-APT ATA8-AST Normative references General Approved referencesApproved Ansi References Name References under development Other referencesReferences Under Development Name Project Number June 23 T13/2132-D Revision Abbreviation Meaning Symbols and abbreviationsMaster Boot Record MBR The first LBA on a disk ConventionsOrdered lists PrecedenceLists Lists overview Unordered listsNumbering T13/2132-D Revision June 23 KeywordsBit conventions Register and CF ContentsInterrupt Services and Functions Numbering conventions French English This standardQWord at word offset n ByteWord at offset n DWord at word offset nByte Value ATA string byte swapping Word Byte Character in stringATA firmware revision example WordOverview Bit Description 8GB INT 13h Functions Conventional FunctionsConventional Register Definitions Register DescriptionConventional Function Definitions Function a Description Function Description 8GB INT 13h Functions OverviewData Structure Extended Function DefinitionsT13/2132-D Revision June 23 Device Address Packet Offset INT 13h Interface Subsets Fixed Disk Access SubsetFixed Disk Access Function Code Removable MediaLocking and Ejecting Function Code Enhanced Disk Drive EDD Support SubsetEDD Support Function Code ISO 9660 CD Layout Working Draft Enhanced Disk Drive 4 EDD-4 CD/DVD Boot OverviewSystem Area Unused Emulation Process Boot MethodsFloppy Geometries Type Cylinders Heads Sectors No Emulation BootFloppy Boot Hard Drive BootBoot Volume Descriptor BVD Boot Volume DescriptorCD/DVD Format Offset Type Description T13/2132-D Revision June 23 Validation EntrySection Header June 23 T13/2132-D Revision Initial/Default Entry00h Byte Header ID Type Description June 23 T13/2132-D Revision Section EntryT13/2132-D Revision June 23 Section Entry Extension INT 13h Function Definitions Overview Reset Disk Subsystem FN 00h Get Status of Last Operation FN 01h Read Sectors into Memory FN 02h Write Sectors From Memory FN 03h Verify Sectors FN 04h Get Drive Parameters FN 08h Read Buffer FN 0Eh Write Buffer FN 0Fh Value Description Get Disk Type FN 15hSet Media Type FN 18h Park Heads FN 19h Identify Device Information FN 25h Interface Support Bit Map Description Check Extensions Present FN 41hExtended Read FN 42h Extended Write FN 43h Verify Sectors FN 44h Lock/Unlock Media FN 45h Eject Removable Media FN 46h Result Buffer Get Device Parameters FN 48hAscii Interface Path Definitions part 1 Host Bus Type Offset T13/2132-D Revision June 23 Interface PathDevice Path Definition00h ATA Device 01h 02h..FFh Reserved Byte Word DWord QWord Byte Port number Device parameter table extension Offset 2-3 control port base Offset 5 Bios use only Bios use only Offset 6 IRQ numberOffset 7 READ/WRITE Multiple command block count Offset 0-1 I/O port baseOffset 9 PIO type Offset 10-11 Bios selected hardware specific option flagsBit 7 32-bit transfer mode Bit 8 Atapi device uses command packet interruptBit 11 Ultra DMA Bit 13h 48-bit LBA addressing enabledJune 23 T13/2132-D Revision Bits 9-10 translation type Translation Type Bits DescriptionGet Extended Media Change Status FN 49h Initiate Disk Emulation FN 4Ah Value Emulation Working Draft Enhanced Disk Drive 4 EDD-4 Terminate Disk Emulation FN 4Bh Initiate Disk Emulation & Boot FN 4Ch CD Command Packet Return Boot Catalog FN 4DhHardware Configuration Sub-Functions Set Hardware Configuration FN 4EhFormatted Command Packet Offset Type Description Send Packet Command FN 50hFormatted Protocol Specific Data T13/2132-D Revision June 23 Output Parameters Security Protocol Commands FN 51h INT 15h Removable Media Eject Hybrid MBR boot Hybrid MBR boot overview GPT support for hybrid MBR boot codeAnnex a Hybrid MBR boot code EAX Hybrid MBR boot code endeavor procedureHybrid VBR boot code