Western Digital T13/2132-D manual Bit Description, Value Emulation

Page 72

T13/2132-D Revision 3

 

June 23, 2010

 

 

 

 

Table 27 — CD Specification Packet

 

 

 

 

 

Offset

Type

 

 

Description

0

Byte

13h (e.g., Packet size in bytes)

 

 

 

1

Byte

Boot Media Type

 

 

Bit

Description

 

 

7

Emulated image requirements

 

 

 

Value

Description

 

 

 

0b

Emulated image is not driver dependent

 

 

 

1b

Emulated image contains SCSI drivers for CD/DVD-ROM, bytes 8 and 9 refer

 

 

 

 

to a SCSI interface

 

 

6

Emulated image requirements

 

 

 

Value

Description

 

 

 

0b

Emulated image is not driver dependent

 

 

 

1b

Emulated image contains ATAPI drivers for CD/DVD-ROM, bytes 8 and 9 refer

 

 

 

 

to an ATAPI interface

 

 

5:4

Reserved

 

 

3:0

Type of image to be booted

 

 

 

Value

Emulation

 

 

 

0

No Emulation

 

 

 

1

1.2MB Diskette

 

 

 

2

1.44MB Diskette

 

 

 

3

2.88MB Diskette

 

 

 

4

Hard Disk

 

 

 

5-Fh

Reserved

 

 

 

2

Byte

INT 13h device number. This shall be the INT 13h number of the device which shall be started

 

 

or terminated. This value shall be zero for a floppy image, 80h for a bootable hard disk, and

 

 

81h through FFh for a non-bootable or no emulation device.

3

Byte

Controller Index. This shall be the controller number of the to which the CD/DVD-ROM drive is

 

 

attached. If there are several controllers in a system, their number is system dependent.

4-7 DWord Logical Block Address of the disk image to be emulated. This shall be the absolute sector address of the image on the CD or DVD media.

8-9

Word

Device Number. SCSI controllers shall use byte 8 as the Logical Unit Number (LUN) and byte

 

 

9 as the Physical Unit Number (PUN) of the CD or DVD drive. ATA/ATAPI controllers shall use

 

 

bit 0 of byte 8 to indicate device 0 or device 1.

10-11

Word

User Buffer Segment. If this field is non-zero, the system may use a supplied buffer for

 

 

caching CD/DVD reads. This buffer shall be at least 3k in size. The buffer begins at

 

 

segment:0

 

 

 

12-13

Word

Load Segment. This field is only used for booting (INT 13h FN 4Ch). If the value is zero, the

 

 

system shall use 7C0h as the load address and start address for booting. if the value is

 

 

non-zero, the system shall load the boot image at segment:0 and initiate the boot process by

 

 

jumping to segment:0

60

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

Image 72
Contents Information technology Enhanced Disk Drive 4 EDD-4 Revision June 23Points of Contact T13/2132-D Revision 3June 23Working 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 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 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 SubsetsLocking and Ejecting Function Code Enhanced Disk Drive EDD Support SubsetEDD 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 BVD Boot Volume DescriptorCD/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 Hybrid MBR boot Hybrid MBR boot overview GPT support for hybrid MBR boot codeAnnex a Hybrid MBR boot code Hybrid MBR boot code endeavor procedure EAXHybrid VBR boot code