Western Digital manual T13/2132-D Revision June 23 Device Address Packet Offset

Page 28

T13/2132-D Revision 3

June 23, 2010

 

 

Table 9 — Device Address Packet

 

 

 

Offset

Type

Description

0

Byte

Packet size in bytes. The value in this field shall be 16 (10h) or greater. If the packet size

 

 

is less than 16 the request shall be rejected with CF = 1b and AH = 01h.

 

 

 

1

Byte

Reserved.

 

 

 

2

Byte

Number of blocks to transfer. This field shall contain a maximum value of 127 (7Fh). If

 

 

this field is set to FFh, then the transfer buffer address shall be found at offset 10h, the

 

 

number of blocks to transfer shall be found at offset 18h, and the transfer buffer at offset 4

 

 

shall be ignored. If this field is set to 00h, then no data shall be transferred. If any other

 

 

value is supplied, then the request shall be rejected with CF=1b and AH=01h

 

 

 

3

Byte

Reserved.

 

 

 

4

DWord

Address of host transfer buffer. This is the host buffer that Read/Write operations shall

 

 

use to transfer the data. This is a 32-bit host address of the form Seg:Offset. If this field

 

 

is set to FFFFh:FFFFh then the address of the transfer buffer shall be found at offset 10h.

8

QWord

Starting logical block address on the target device of the data to be transferred. This is a

 

 

64-bit unsigned linear address. If the device supports LBA addressing this value should

 

 

be passed unmodified. If the device does not support LBA addressing the routine making

 

 

the INT 13h call shall convert this LBA to a CHS address using the current geometry in

 

 

the following formula:

 

 

LBA = (C1 * H0 + H1) * S0 + S1 = 1

 

 

Where:

 

 

C1 = Selected Cylinder Number

 

 

H0 = Number of Heads (Maximum Head Number + 1)

 

 

H1 = Selected Head Number

 

 

S0 = Maximum Sector Number

 

 

S1 = Selected Sector Number

 

 

For ATA compatible devices with less than or equal to 15,482,880 logical sectors, the H0

 

 

and S0 values are supplied by words 3 and 6 of the data returned as a result of an

 

 

IDENTIFY DEVICE command.

10h

QWord

64-bit unsigned linear address of the host transfer buffer. This is the host buffer that

 

 

Read/Write operations shall use to transfer the data if the data at offset 4 is set to

 

 

FFFFh:FFFFh, or the data at offset 2 is set to FFh.

18h

DWord

Total number of blocks to transfer when the data at offset 2 is set to FFh

 

 

 

1Ch

DWord

Reserved.

 

 

 

Note 1 - The options described in table 1 allow a host to use a 7-bit transfer size with a 32 -bit or 64-bit memory address for the transfer buffer. Table 1 also allows a 32-bit transfer size in conjunction with a 64-bit address. A 32-bit transfer size shall not be used in conjunction with a 32-bit memory address.

16

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

Image 28
Contents Information technology Enhanced Disk Drive 4 EDD-4 Revision June 23T13/2132-D Revision 3June 23 Points of ContactWorking Draft Enhanced Disk Drive 4 EDD-4 Draft June 23 T13/2132-D RevisionAmerican National Standard T13/2132-D Revision June 23Document Status New Capabilities added to EDD-4Contents Working Draft Enhanced Disk Drive 4 EDD-4 Vii Viii Working Draft Enhanced Disk Drive 4 EDD-4 Tables Output ParametersFigures Foreword IntroductionXii Working Draft Enhanced Disk Drive 4 EDD-4 BSR Incits ScopeAmerican National Standard for Information Technology ATA8-APT ATA8-AST Approved references Normative references GeneralApproved Ansi References Name Other references References under developmentReferences Under Development Name Project Number June 23 T13/2132-D Revision Symbols and abbreviations Master Boot Record MBR The first LBA on a diskConventions Abbreviation MeaningPrecedence Lists Lists overviewUnordered lists Ordered listsT13/2132-D Revision June 23 Keywords NumberingRegister and CF Contents Interrupt Services and FunctionsNumbering conventions French English This standard Bit conventionsByte Word at offset nDWord at word offset n QWord at word offset nATA string byte swapping Word Byte Character in string ATA firmware revision exampleWord Byte ValueOverview 8GB INT 13h Functions Conventional Functions Conventional Register DefinitionsRegister Description Bit DescriptionConventional Function Definitions Function a Description 8GB INT 13h Functions Overview Data StructureExtended Function Definitions Function DescriptionT13/2132-D Revision June 23 Device Address Packet Offset Fixed Disk Access Subset Fixed Disk Access Function CodeRemovable Media INT 13h Interface SubsetsEnhanced Disk Drive EDD Support Subset Locking and Ejecting Function CodeEDD Support Function Code CD/DVD Boot Overview ISO 9660 CD Layout Working Draft Enhanced Disk Drive 4 EDD-4System Area Unused Boot Methods Emulation ProcessNo Emulation Boot Floppy BootHard Drive Boot Floppy Geometries Type Cylinders Heads SectorsBoot Volume Descriptor Boot Volume Descriptor BVDCD/DVD Format T13/2132-D Revision June 23 Validation Entry Offset Type DescriptionJune 23 T13/2132-D Revision Initial/Default Entry Section Header00h Byte Header ID June 23 T13/2132-D Revision Section Entry Type DescriptionT13/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 Get Disk Type FN 15h Value DescriptionSet Media Type FN 18h Park Heads FN 19h Identify Device Information FN 25h Check Extensions Present FN 41h Interface Support Bit Map DescriptionExtended Read FN 42h Extended Write FN 43h Verify Sectors FN 44h Lock/Unlock Media FN 45h Eject Removable Media FN 46h Get Device Parameters FN 48h Result BufferAscii T13/2132-D Revision June 23 Interface Path Interface Path Definitions part 1 Host Bus Type OffsetDefinition Device Path00h ATA Device 01h 02h..FFh Reserved Byte Word DWord QWord Byte Port number Device parameter table extension Offset 5 Bios use only Bios use only Offset 6 IRQ number Offset 7 READ/WRITE Multiple command block countOffset 0-1 I/O port base Offset 2-3 control port baseOffset 10-11 Bios selected hardware specific option flags Bit 7 32-bit transfer modeBit 8 Atapi device uses command packet interrupt Offset 9 PIO typeBit 13h 48-bit LBA addressing enabled June 23 T13/2132-D Revision Bits 9-10 translation typeTranslation 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 Return Boot Catalog FN 4Dh CD Command PacketSet Hardware Configuration FN 4Eh Hardware Configuration Sub-FunctionsSend Packet Command FN 50h Formatted Command Packet Offset Type DescriptionFormatted Protocol Specific Data T13/2132-D Revision June 23 Output Parameters Security Protocol Commands FN 51h INT 15h Removable Media Eject GPT support for hybrid MBR boot code Hybrid MBR boot Hybrid MBR boot overviewAnnex a Hybrid MBR boot code Hybrid MBR boot code endeavor procedure EAXHybrid VBR boot code