T13/1386D Revision 2

Working T13

DraftD1386

Revision 12

October 21, 1999August 23, 1999

Information Technology -

BIOS Enhanced Disk Drive Services (EDD)

This is an internal working document of T13, a Technical Committee of Accredited Standards Committee NCITS. As such, this is not a completed standard and has not been approved. The T13 Technical Committee may modify the contents. The contents are actively being modified by T13. This document is made available for review and comment only.

Permission is granted to members of NCITS, its technical committees, and their associated task groups to reproduce this document for the purposes of NCITS standardization activities without further permission, provided this notice is included. All other rights are reserved. Any commercial or for-profit replication or republication is prohibited.

T13 Technical Editor:

Curtis E. Stevens

Phoenix Technologies LTD

135 Technology Drive

Irvine, Ca. 92618

USA

Tel: (949) 790-2121

Fax: (949) 790-2003

Email:

Reference number

ANSI NCITS.*** - 199x

Printed September, 11, 2018 7:59AM

Other Points of Contact:

T13 ChairT13 Vice-Chair

Gene MilliganPete McLean

Seagate TechnologyMaxtor Corporation

OKM 2512190 Miller Drive

10323 West Reno (West Dock)Longmont, CO 80501

P.O. Box 12313Tel:303-678-2149

Oklahoma City, OK 73157-2313Fax:303-682-4811

Tel:405-324-3070

Fax:405-324-3794

NCITS Secretariat

Administrator Standards Processing

1250 Eye Street, NW Suite 200

Washington, DC 20005

Tel:202-737-8888

Fax:202-638-4922

Email:

T13 Reflector

Internet address for subscription to the T13 reflector:

Send email to above account and include in BODY of text, on a line by itself the following:

"subscribe T13 [your email address]"

Internet address for distribution via T13 reflector:

T13 WEB site

T13 mailings

Global Engineering

15 Inverness Way East

Englewood, CO 80112-5704

Tel:303-792-2181 or 800-854-7179

Fax:303-792-2192

DOCUMENT STATUS

Revision 0 – June 21, 1999

Initial revision, document created from NCITS TR-21

Revision 1 - August 23, 1999

Added NCITS standard cover pages, table of contents, etc.

Revision 2 - August 25, 1999

Implemented changes based on meeting review.

­Added forward and membership lists for NCITS and T13

­Removed references to the word new

­Changed references to the word specification to standard

­Changed references to the phrase Technical Report to standard

­Added references to the Normative references section

­Changed many references from drive to device

­Reworked the concept of Physical geometry/addressing to refer to default geometry/addressing

­Changed references in the BIOS section from drive number to refer to BIOS drive number for clarity

­Upgraded the overview to contain a drawing that shows the points of definition that are used later in the document

­Added a conventions section that describes hex and decimal notation

­Updated tables that show ASCII strings to have the actual numeric values

­Changes references from must to shall

­Made formatting changes based on input from the group

ANSI®

NCITS.****-199x

American National Standard

For Information Systems

BIOS Enhanced Disk Drive Services

Secretariat

Information Technology Industry Council

Approved mm dd yy

American National Standards Institute, Inc.

Abstract

This standard describes services currently in use on IA-32 and IA64 architecture personal computers systems. These services are provided by BIOS firmware to support hard disks up to 16 mega-tera-bytes (16x1018). This standard also provides new BIOS level services for determining the relationship between BIOS device numbers and the physical mass storage devices attached to the personal computer. The services defined in this standard can be applied to mass storage devices with ATA, ATAPI, SCSI, USB, Fibre Channel, 1394, I2O, and other interfaces.

American
National
Standard / Approval of an American National Standard requires verification by ANSI that the requirements for due process, consensus, and other criteria for approval have been met by the standards developer. Consensus is established when, in the judgment of the ANSI Board of Standards Review, substantial agreement has been reached by directly and materially affected interests. Substantial agreement means much more than a simple majority, but not necessarily unanimity. Consensus requires that all views and objections be considered, and that effort be made towards their resolution.
The use of American National Standards is completely voluntary; their existence does not in any respect preclude anyone, whether he has approved the standards or not, from manufacturing, marketing, purchasing, or using products, processes, or procedures not conforming to the standards.
The American National Standards Institute does not develop standards and will in no circumstances give interpretation on any American National Standard. Moreover, no person shall have the right or authority to issue an interpretation of an American National Standard in the name of the American National Standards Institute. Requests for interpretations should be addressed to the secretariat or sponsor whose name appears on the title page of this standard.
CAUTION NOTICE: This American National Standard may be revised or withdrawn at any time. The procedures of the American National Standards Institute require that action be taken periodically to reaffirm, revise, or withdraw this standard. Purchasers of American National Standards may receive current information on all standards by calling or writing the American National Standards Institute.

CAUTION: The developers of this standard have requested that holder's of patents that may be required for the implementation of the standard, disclose such patents to the publisher. However, neither the developers nor the publisher have undertaken a patent search in order to identify which, if any, patents may apply to this standard.

As of the date of publication of this standard and following calls for the identification of patents that may be required for the implementation of the standard, no such claims have been made.

The developer or the publisher in respect to any standard it processes conducts no further patent search. No representation is made or implied that licenses are not required to avoid infringement in the use of this standard. See clause 2.

Published by

American National Standards Institute

11 West 42nd Street, New York, New York 10036

Copyright 199n by American National Standards Institute

All rights reserved.

ContentsPage

Foreword

Introduction......

1Scope......

2Normative References......

2.1Approved references......

2.2References under development......

2.3Other references......

3Definitions, abbreviations, and conventions......

3.1Keywords......

3.2Definitions and Abbreviations......

3.3Conventions......

4Overview......

5INT 13 Calling Conventions......

5.1Data Structure......

5.2Removable media......

5.3Int 13h interface subsets......

6Int 13h Function Definitions......

6.1Check extensions present......

6.2Extended read......

6.3Extended write......

6.4Verify sectors......

6.5Lock/unlock media......

6.6Eject removable media......

6.7Extended seek......

6.8Get device parameters......

6.9Get extended media change status......

6.10Set hardware configuration......

6.11Send Packet Command......

7Int 15h removable media eject......

1Scope8

2Normative References8

2.1Approved references8

2.2References under development9

2.3Other references9

3Definitions, abbreviations, and conventions9

3.1Keywords9

3.2Definitions and Abbreviations10

4Overview14

5INT 13 Calling Conventions14

5.1Data Structure14

5.2Removable media15

5.3Int 13h interface subsets16

6Int 13h Function Definitions17

6.1Check extensions present17

6.2Extended read18

6.3Extended write18

6.4Verify sectors18

6.5Lock/unlock media19

6.6Eject removable media19

6.7Extended seek20

6.8Get drive parameters20

6.9Get extended media change status26

6.10Set hardware configuration26

6.11Send Packet Command27

7Int 15h removable media eject28

Page 1

T13/1386D Revision 2

TablePage

1 Device Address Packet......

2 Extension Result buffer

3 Result buffer

4 Interface Path Definitions

5 Device Path Definitions

6 Device parameter table extension

7 Translation type

Page 1

T13/1386D Revision 2

FigurePage

1 System Component Diagram......

Page 1

T13/1386D Revision 2

Foreword

(This foreword is not part of American National Standard NCITS.xxx-199x)

In the past, DOS has accessed its mass storage devices using a BIOS provided INT 13 interface. This interface was designed in the early 1980’s and upgraded in the late 1980’s. The maximum theoretical capacity of this API is 8.4 giga-bytes. This INT 13 interface, now known as the legacy INT 13 interface, uses function numbers 1-15h and is Cylinder-Head-Sector (CHS) oriented. An extended INT 13 interface has been created, the purpose of these Int 13h extensions is to:

­Replace CHS addressing with Logical Block Addressing (LBA).

­Remove the current requirement of using interrupt 41h/46h to point at the Fixed Disk Parameter Table information.

­Give the BIOS better control over how this data is used.

­Make location and configuration information available to operating systems that do not use the BIOS to access mass storage devices.

­Use data structures that apply to both IA-32 and IA-64 architecture systems.

­Use data structures that can address media capacities for the next 20 years.

Short description of spec

Requests for interpretation, suggestions for improvement and addenda, or defect reports are welcome. They should be sent to the NCITS Secretariat, Information Technology Industry Council, 1250 I Street NW, Suite 200, Washington, DC 20005-3922.

This standard was processed and approved for submittal to ANSI by National Committee for Information Technology Standardization (NCITS). Committee approval of this standard does not necessarily imply that all committee members voted for approval. At the time it approved this standard, NCITS had the following members:

James D. Converse, Chair

Donald C. Loughry, Vice-chair

Joanne M. Flanagan, Secretary

Organization RepresentedName of Representative

American Nuclear Society...... Geraldine C. Main

AMP, Inc...... Edward Kelly

Apple Computer...... Karen Higginbottom

Association of the Institute for Certification of Professionals....Kenneth Zemrowski

AT&T/NCR...... Thomas W. Kern

Boeing Company...... Catherine Howells

Bull HN Information Systems, Inc...... William George

Compaq Computer Corporation...... James Barnes

Digital Equipment Corporation...... Delbert Shoemaker

Eastman Kodak...... James D. Converse

GUIDE International...... Frank Kirshenbaum

Hewlett-Packard...... Donald C. Loughry

Hitachi America, Ltd...... John Neumann

Hughes Aircraft Company ...... Harold L. Zebrack

IBM Corporation...... Joel Urman

National Communication Systems ...... Dennis Bodson

National Institute of Standards and Technology...... Robert E. Roundtree

Northern Telecom, Inc...... Mel Woinsky

Neville & Associates...... Carlton Neville

Recognition Technology Users Association...... Herbert P. Schantz

Share, Inc...... Gary Ainsworth

Sony Corporation...... Michael Deese

Storage Technology Corporation...... Joseph S. Zajaczkowski

Sun Microsystems...... Scott Jameson

3M Company...... Eddie T. Morioka

Unisys Corporation...... John L. Hill

US Department of Defense...... William C. Rinehuls

US Department of Energy...... Alton Cox

US General Services Administration...... Douglas Arai

Wintergreen Information Services ...... Joun Wheeler

Xerox Corporation...... Dwight McBain

Technical Committee T13 on Lower Level Interfaces, which developed and reviewed this standard, had the following members:

Gene Milligan, Chair

Pete McLean, Vice-chair

Dan Colegrove, Secretary [Editors Note: Need to fill in table]

P. D. Aloisi / G. Barton / R. Bellino / I. D. Allan
J. Chen / R. Cummings / Z. Daggett / C. Brill
J. V. Dedek / E. Fong / E. A. Gardner / J. Dambach
D. Guss / K. J. Hallam / N. Harris / L. Grantham
S. F. Heil / S. Holmstead / P. Johansson / E. Haske
S. Jones / T. J. Kulesza / E. Lappin / G. Johnsen
B. McFerrin / J. McGrath / P. McLean / R. Liu
G. Milligan / C. Monia / D. Moore / P. Mercer
J. Moy / S. Nadershahi / E. Oetting / I. Morrell
G. Penokie / A. E. Pione / D. Piper / D. Pak
S. D. Schueler / R. N. Snively / G. R. Stephens / R. Reisch
T. Totani / D. Wagner / D. Wallace / C. E. Strang, Jr.
M. Wingard / M. Yokoyama / J. L. Williams

Introduction

This standard encompasses the following:

Clause 1 describes the scope.

Clause 2 provides normative references.

Clause 3 provides definitions, abbreviations, and conventions

Clause 4 Specification Ooverview

Clause 5 is the INT 13 Calling Conventions

Clause 6 is the INT 13 Function Definitions

Clause 7 Int 15h removable media eject

Page 1

T13/1386D Revision 2

AMERICAN NATIONAL STANDARD NCITS.***-199n

American National Standard
for Information Systems 

Information Technology
BIOS Enhanced Disk Drive Services (EDD)

1Scope

This specificationstandard assumes that the reader is familiar with the conventional Int 13h interface, the usage of the BIOS Device Parameter Table, and the basic operation of mass storage devices. This specificationstandard describes in detail BIOS functions and data structures that are used as an abstraction layer to allow higher level applications to access mass storage devices in an interface and command-set independent manner.

The disk-drivestorage industry has increased the capacity and functionality of many types of mass storage devices. This increase in capacitiy and functionality has required the development of a new BIOS interface. This specificationstandard documents the new BIOS interface that is currently supplied by many BIOS vendors. This specificationstandard addresses the following BIOS specific issues:

­The BIOS mustshall support drivedevices with a capacity greater than 528 MB. The conventional Int 13h interface has a limit of 1024 cylinders;

­The Int 13h interface allows more than two drivedevices to be attached to a system but has no consistent method for storing the additional configuration parameters;

­CHS-independent methods for accessing the drivedevices have now been defined. These are drivedevice-geometry independent and require a different method of address representation and operation;

­NewMmethods of data transfer continue to be added to ATA devices. Capabilities such as, DMA modes, multi-sector data transfers and Fast PIO are not reported to the operating system;

­Systems require more than two disk drivesstorage devices, and with this requirement comes the requirement to assign the order in which the drivedevices are to be accessed.

­Make location and configuration information available to operating systems that do not use the BIOS to access mass storage devices.

­Provide a linkage between the BIOS device assignments on the operating system drivedevice letter assignments.

­Use data structures that apply to both IA-32 and IA-64 architecture systems

2Normative References

The following standards contain provisions that, through reference in the text, constitute provisions of this standard. Many of these standards are referenced because they contain the information necessary for describing a method of accessing a device on the specified interface. At the time of publication, the editions indicated were valid. All standards are subject to revision, and parties to agreements based on this standard are encouraged to investigate the possibility of applying the most recent editions of the standards listed below.

Copies of the following documents can be obtained from ANSI: Approved ANSI standards, approved and draft international and regional standards (ISO, IEC, CEN/CENELEC, ITUT), and approved and draft foreign standards (including BSI, JIS, and DIN). For further information, contact ANSI Customer Service Department at 212-642-4900 (phone), 212-302-1286 (fax) or via the World Wide Web at

Additional availability contact information is provided below as needed.

2.1Approved references

The following approved ANSI standards and technical reports, approved international and regional standards and technical reports (ISO, IEC, CEN/CENELEC, ITUT), may be obtained from the international and regional organizations who control them.

NCITS 317-1998 ATA/ATAPI-4NCITS 317-1998

NCITS TR-21 BIOS Enhanced Disk Drive Technical Report NCITS TR-21

NCITS 325-1998 SBP-2

IEEE 1394-1995 IEEE Standard for a High Peformance Serial Bus

X3.303 Physical and Signaling Interface-3

X3.301-1997 SCSI3 SPC

2.2References under development

At the time of publication, the following referenced standards were still under development. For information on the current status of the document, or regarding availability, contact the relevant standards body or other organization as indicated.

NCITS 1321D ATA/ATAPI-5

NCITS 1236D SPC-2

NCITS 1363D MMC-3

NCITS 1228D MMC-2 [Editors Note: I think this will be accepted as a standard before EDD gets voted]

IEEE P1394a Standard for a High Performance Serial Bus

IEEE P1394b Standard for High Performance Serial Bus (High Speed Supplement) NCITS 1321D

For more information on the current status of the above documents, contact NCITS. To obtain copies of these documents, contact Global Engineering or NCITS.

2.3Other references

The following standards and specifications were also referenced.

BIOS Boot Specification (Compaq, Phoenix and Intel),

El Torito CD-ROM Boot Specification,

ATAPI Removable Media BIOS Specification,

Universal Serial Bus Revision 1.1,

SBP-2

USB Mass Storage Bulk Only,

Mass Storage Control/Interrupt/Bulk (CBI) SpecificationUSB Mass Storage Control Bulk Interrupt,

I2O Software Specification v2.0,

3Definitions, abbreviations, and conventions

3.1Keywords

Several keywords are used to differentiate between different levels of requirements and optionality.

3.1.1Expected

A keyword used to describe the behavior of the hardware or software in the design models assumed by this standard. Other hardware and software design models may also be implemented.

3.1.2Mandatory

A keyword indicating items to be implemented as defined by this standard.

3.1.3May

A keyword that indicates flexibility of choice with no implied preference.

3.1.4Obsolete

A keyword used to describe bits, bytes, fields and code values that no longer have consistent meaning or functionality from one implementation to another. However, some degree of functionality may be required for items designated as “obsolete” to provide for backward compatibility. An obsolete bit, byte, field or command shall never be reclaimed for any other use in any future standard. Bits, bytes, fields and code values that had been designated as “obsolete” in previous standards may have been reclassified as “retired” in this standard based on the definitions herein for “obsolete” and “retired”.

3.1.5Optional

A keyword that describes features that are not required by this standard. However, if any optional feature defined by the standard is implemented, it shall be done in the way defined by the standard. Describing a feature as optional in the text is done to assist the reader.

3.1.6Retired

A keyword indicating that the designated bits, bytes, fields and code values that had been defined in previous standards are not defined in this standard and may be reclaimed for other uses in future standards. If retired bits, bytes, fields or code values are utilized before they are reclaimed, they shall have the meaning or functionality as described in previous standards.

3.1.7Reserved

A keyword indicating reserved bits, bytes, words, fields, and code values that are set aside for future standardization. Their use and interpretation may be specified by future extensions to this or other standards. A reserved bit, byte, word, or field shall be set to zero, or in accordance with a future extension to this standard. The recipient shall not check reserved bits, bytes, words, or fields. Receipt of reserved code values in defined fields shall be treated as an error.

3.1.8Shall

A keyword indicating a mandatory requirement. Designers are required to implement all such mandatory requirements to ensure interoperability with other standard conformant products.

3.1.9Should

A keyword indicating flexibility of choice with a strongly preferred alternative. Equivalent to the phrase “it is recommended”.

3.2Definitions and Abbreviations

For the purposes of this standard, the following definitions apply:

3.2.1ATA

An Advanced Technology Attachmentdrivedevice, also known as an IDE drive, is a hard drivestorage device that conforms to an ATA standard.