Western Digital T13/2132-D Offset 9 PIO type, Bit 0 fast PIO, Bit 1 fast DMA, Bit 6 Atapi device

Page 68

T13/2132-D Revision 3

June 23, 2010

8.20.4.7 Offset 8 - DMA channel/Multiword DMA Type

If the BIOS has configured the system to perform multiword DMA data transfers in place of PIO transfers, this field shall specify the DMA mode in the upper four bits, as per the definition in ATA/ATAPI-6 or later, and the DMA Channel in the lower four bits. ATA channels that support PCI DMA bus mastering shall set the DMA channel to zero. Note that the DMA Type field does not follow the format of the data returned by the device. The value of the DMA mode shall not be limited to two.

8.20.4.8 Offset 9 - PIO type

If the BIOS has configured the system to perform PIO data transfers other than mode 0, this field shall specify the PIO mode as per the definition in ATA-5 or later.

8.20.4.9 Offset 10-11 - BIOS selected hardware specific option flags

These bytes specify the current hardware options enabled by the BIOS, a bit for each of the options listed below.

8.20.4.9.1 Bit 0 - fast PIO

If the system is configured for a PIO mode greater than 0, this bit shall be set to one and byte 9 (PIO Type) shall be used to configure the system. If this bit is cleared to zero, the PIO-Type field shall be ignored.

8.20.4.9.2 Bit 1 - fast DMA

If the system is configured for DMA, this bit shall be set to one and byte 8 (DMA Channel/DMA Type) should be used to configure the system. If this bit and bit 11, clause 8.24.3.9.11, are cleared to zero, then the DMA Channel/DMA Type field shall be ignored.

8.20.4.9.3 Bit 2 - ATA READ/WRITE MULTIPLE

If the system is configured for multi-sector transfers, this bit shall be set to one and byte 7 (sector count) specifies the number of sectors used for each data transfer. If block PIO is disabled, ignore the block count field.

8.20.4.9.4 Bit 3 - CHS translation

If the device reports more than 1024 cylinders in the IDENTIFY DEVICE command data, this bit shall be set to one. See 8.20.4.9.10 to determine the method of geometry translation.

8.20.4.9.5 Bit 4 - LBA translation

If the system is configured for LBA type addressing, this bit shall be set to one and the Extended INT 13h interface (FN 41h through 48h) shall pass LBA values directly to the device. The conventional INT 13h interface shall ignore this bit and shall use CHS. LBA-type addressing shall be available on devices with less than 1024 cylinders, and therefore bit 3 (CHS translation) shall be independent from bit 4 (LBA translation).

8.20.4.9.6 Bit 5 - removable media

If the device supports removable media, this bit shall be set to one and the extended INT 13h device locking and ejecting subset shall also be supported.

8.20.4.9.7 Bit 6 - ATAPI device

If this ATA device implements the PACKET command feature set (ATAPI) as defined in ATA/ATAPI-5, this bit shall be set to one.

8.20.4.9.8 Bit 7 - 32-bit transfer mode

If the BIOS has configured the host adapter to perform 32-bit wide data transfers, this bit shall be set to one.

8.20.4.9.9 Bit 8 - ATAPI device uses command packet interrupt

If bit 6 is cleared to zero, then this field shall be ignored and shall be zero. If bit 6 is set to one, this bit indicates how the ATAPI devices signals it is ready to receive a packet command. When this bit is set to one, it indicates that the ATAPI device returns an interrupt, and sets DRQ, when it is ready for a packet. When this bit is cleared to zero, it indicates that the ATAPI device sets DRQ, without an interrupt, when it is ready for a packet.

56

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

Image 68
Contents Information technology Enhanced Disk Drive 4 EDD-4 Revision June 23Working Draft Enhanced Disk Drive 4 EDD-4 Points of ContactT13/2132-D Revision 3June 23 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 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 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 SubsetsEDD Support Function Code Locking and Ejecting Function CodeEnhanced Disk Drive EDD Support Subset 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 SectorsCD/DVD Format Boot Volume Descriptor BVDBoot Volume Descriptor 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 Annex a Hybrid MBR boot Hybrid MBR boot overviewGPT support for hybrid MBR boot code Hybrid MBR boot code Hybrid MBR boot code endeavor procedure EAXHybrid VBR boot code