]> git.saurik.com Git - apple/xnu.git/blame_incremental - iokit/IOKit/ata/ata-device/ATADevice.h
xnu-201.42.3.tar.gz
[apple/xnu.git] / iokit / IOKit / ata / ata-device / ATADevice.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
23 *
24 * ATADevice.h
25 *
26 */
27
28#ifndef _ATADEVICE_H
29#define _ATADEVICE_H
30
31#define kDefaultInquirySize 255
32
33typedef UInt32 ATAUnit;
34
35
36enum ATADeviceTimeouts
37{
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,
48};
49
50enum ATAClientMessage
51{
52 kATAClientMsgNone = 0x00005000,
53 kATAClientMsgDeviceAbort,
54 kATAClientMsgDeviceReset,
55 kATAClientMsgBusReset,
56 kATAClientMsgSelectTiming,
57
58 kATAClientMsgDone = 0x80000000,
59};
60
61enum ATAQueueType
62{
63 kATAQTypeNormalQ = 0,
64 kATAQTypeBypassQ = 1,
65};
66
67enum ATAQueuePosition
68{
69 kATAQPositionTail = 0,
70 kATAQPositionHead = 1,
71};
72
73
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 */
84
85#define kATAMaxProperties 9
86
87#define kATAPropertyProtocolATA "ATA"
88#define kATAPropertyProtocolATAPI "ATAPI"
89
90#define kATADeviceTypeDisk "Disk"
91#define kATADeviceTypeTape "Tape"
92#define kATADeviceTypeCDRom "CDRom"
93#define kATADeviceTypeScanner "Scanner"
94#define kATADeviceTypeOther "Other"
95
96#endif