2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
31 #define kDefaultInquirySize 255
33 typedef UInt32 ATAUnit
;
36 enum ATADeviceTimeouts
38 kATATimerIntervalmS
= 500,
39 kATAProbeTimeoutmS
= 5000,
40 kATAResetIntervalmS
= 3000,
41 kATAAbortTimeoutmS
= 5000,
42 kATAReqSenseTimeoutmS
= 5000,
43 kATADisableTimeoutmS
= 5000,
44 kATAResetPollIntervalmS
= 50,
45 kATAResetTimeoutmS
= 25000,
46 kATABusyTimeoutmS
= 10,
47 kATADRQTimeoutmS
= 10,
52 kATAClientMsgNone
= 0x00005000,
53 kATAClientMsgDeviceAbort
,
54 kATAClientMsgDeviceReset
,
55 kATAClientMsgBusReset
,
56 kATAClientMsgSelectTiming
,
58 kATAClientMsgDone
= 0x80000000,
69 kATAQPositionTail
= 0,
70 kATAQPositionHead
= 1,
74 #define kATAPropertyProtocol "ATA Protocol" /* IOCString */
75 #define kATAPropertyDeviceNumber "ATA Device Number" /* OSNumber */
76 #define kATAPropertyDeviceType "ATA Device Type" /* IOCString */
77 #define kATAPropertyDeviceId "ATA Device Id" /* OSNumber */
78 #define kATAPropertyModelNumber "ATA Device Model Number" /* IOCString */
79 #define kATAPropertyFirmwareRev "ATA Device Firmware Revision" /* IOCString */
80 #define kATAPropertyVendorName "ATA Device Vendor Name" /* IOCString */
81 #define kATAPropertyProductName "ATA Device Product Name" /* IOCString */
82 #define kATAPropertyProductRevision "ATA Device Product Revision" /* IOCString */
83 #define kATAPropertyLocation "IOUnit" /* OSNumber */
85 #define kATAMaxProperties 9
87 #define kATAPropertyProtocolATA "ATA"
88 #define kATAPropertyProtocolATAPI "ATAPI"
90 #define kATADeviceTypeDisk "Disk"
91 #define kATADeviceTypeTape "Tape"
92 #define kATADeviceTypeCDRom "CDRom"
93 #define kATADeviceTypeScanner "Scanner"
94 #define kATADeviceTypeOther "Other"