Western Digital T13/2132-D Removable Media, INT 13h Interface Subsets, Fixed Disk Access Subset

Page 29

June 23, 2010

T13/2132-D Revision 3

6.3 Removable Media

The distinction between "removable" disks numbered 00h through 7Fh and "fixed" disks numbered 80h through FFh differs from conventional INT 13h functions. Devices numbered 0 through 7Fh are not changed. They follow conventional INT 13h standards for floppy disk operation. Devices numbered 80h through FFh include traditional fixed disks, and now also include removable media devices that support media change notification as well as software locking and unlocking capabilities. Functions in this standard support these devices. The values returned in the AL register upon completion of an INT 13h Function are vendor specific. Table 10 describes the return codes that are supported for removable media devices.

Table 10 — Removable Media Return Codes

 

Return Code

Description

 

B0h

Media Not Locked In Device

 

 

 

 

B1h

Media Locked In Device

 

 

 

 

B2h

Media Not Removable

 

 

 

 

B3h

Media In Use

 

 

 

 

B4h

Lock Count Exceeded

 

 

 

 

B5h

Valid Eject Request Failed

 

 

 

 

B6h

Media Present but Read Protected

 

 

 

6.4 INT 13h Interface Subsets

 

6.4.1 Overview

 

It is permissible for BIOS to support only certain subsets of the INT 13h extensions. These subsets are defined in this standard. If a subset is supported then all functions within that subset shall be supported. The supported subsets shall be determined via the Check Extensions Present function. If a function is not supported and that function is subsequently invoked; then the function rejects the request with CF = 1b and AH = 01h. There are three subsets defined. At least one of these shall be supported.

NOTE 1 — Conventional INT 13h may be used for media accessing if the Fixed Disk Access Subset is not present.

6.4.2 Fixed Disk Access Subset

These functions support basic access to devices using the device address packet structure (see table 11).

Table 11 — Fixed Disk Access

Function

Code

Check Extensions Present (see 8.14)

41h

 

 

Extended Read (see 8.15)

42h

 

 

Extended Write (see 8.16)

43h

 

 

Verify Sectors (see 8.17)

44h

 

 

Obsolete

47h

 

 

Get Device Parameters (see 8.20)

48h

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

17

Image 29
Contents Revision June 23 Information technology Enhanced Disk Drive 4 EDD-4Working Draft Enhanced Disk Drive 4 EDD-4 Points of ContactT13/2132-D Revision 3June 23 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 American National Standard for Information Technology ScopeBSR Incits ATA8-APT ATA8-AST Approved Ansi References Name Normative references GeneralApproved references References Under Development Name Project Number References under developmentOther references June 23 T13/2132-D Revision Master Boot Record MBR The first LBA on a disk Symbols and abbreviationsConventions Abbreviation MeaningLists Lists overview PrecedenceUnordered lists Ordered listsNumbering T13/2132-D Revision June 23 KeywordsInterrupt Services and Functions Register and CF ContentsNumbering conventions French English This standard Bit conventionsWord at offset n ByteDWord at word offset n QWord at word offset nATA firmware revision example ATA string byte swapping Word Byte Character in stringWord Byte ValueOverview Conventional Register Definitions 8GB INT 13h Functions Conventional FunctionsRegister Description Bit Description Conventional Function Definitions Function a Description Data Structure 8GB INT 13h Functions OverviewExtended Function Definitions Function DescriptionT13/2132-D Revision June 23 Device Address Packet Offset Fixed Disk Access Function Code Fixed Disk Access SubsetRemovable Media INT 13h Interface SubsetsEDD Support Function Code Locking and Ejecting Function CodeEnhanced Disk Drive EDD Support Subset ISO 9660 CD Layout Working Draft Enhanced Disk Drive 4 EDD-4 CD/DVD Boot OverviewSystem Area Unused Emulation Process Boot MethodsFloppy Boot No Emulation BootHard Drive Boot Floppy Geometries Type Cylinders Heads SectorsCD/DVD Format Boot Volume Descriptor BVDBoot Volume Descriptor 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 7 READ/WRITE Multiple command block count Offset 5 Bios use only Bios use only Offset 6 IRQ numberOffset 0-1 I/O port base Offset 2-3 control port baseBit 7 32-bit transfer mode Offset 10-11 Bios selected hardware specific option flagsBit 8 Atapi device uses command packet interrupt Offset 9 PIO typeJune 23 T13/2132-D Revision Bits 9-10 translation type Bit 13h 48-bit LBA addressing enabledTranslation Type Bits Description Bit 11 Ultra DMAGet 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 Annex a Hybrid MBR boot Hybrid MBR boot overviewGPT support for hybrid MBR boot code Hybrid MBR boot code EAX Hybrid MBR boot code endeavor procedureHybrid VBR boot code