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 struct SCSITargetLun
40 typedef struct SCSILunParms
42 Boolean disableDisconnect
;
47 typedef struct SCSITargetParms
49 UInt32 transferPeriodpS
;
50 UInt32 transferOffset
;
52 UInt32 transferOptions
;
54 Boolean enableTagQueuing
;
55 Boolean disableParity
;
60 enum SCSITransferOptions
62 kSCSITransferOptionClockDT
= 0x00000001,
63 kSCSITransferOptionQAS
= 0x00000100,
64 kSCSITransferOptionIUS
= 0x00000200,
65 kSCSITransferOptionPPR
= 0x00000400,
68 #define kSCSITransferOptionsSCSI3 (kSCSITransferOptionClockDT | kSCSITransferOptionQAS | kSCSITransferOptionIUS | kSCSITransferOptionPPR)
71 enum SCSIDeviceTimeouts
73 kSCSITimerIntervalmS
= 500,
74 kSCSIProbeTimeoutmS
= 5000,
75 kSCSIResetIntervalmS
= 3000,
76 kSCSIAbortTimeoutmS
= 5000,
77 kSCSIReqSenseTimeoutmS
= 5000,
78 kSCSIDisableTimeoutmS
= 5000,
81 enum SCSIClientMessage
83 kSCSIClientMsgNone
= 0x00005000,
84 kSCSIClientMsgDeviceAbort
,
85 kSCSIClientMsgDeviceReset
,
86 kSCSIClientMsgBusReset
,
88 kSCSIClientMsgDone
= 0x80000000,
97 enum SCSIQueuePosition
104 #define kSCSIMaxProperties 12
106 #define kSCSIPropertyTarget "SCSI Target" /* OSNumber */
107 #define kSCSIPropertyLun "SCSI Lun" /* OSNumber */
108 #define kSCSIPropertyIOUnit "IOUnit" /* OSNumber */
109 #define kSCSIPropertyDeviceTypeID "SCSI Device Type" /* OSNumber */
110 #define kSCSIPropertyRemovableMedia "SCSI Removable Media" /* OSBoolean */
111 #define kSCSIPropertyVendorName "SCSI Vendor Name" /* OSString */
112 #define kSCSIPropertyProductName "SCSI Product Name" /* OSString */
113 #define kSCSIPropertyProductRevision "SCSI Product Revision" /* OSString */
114 #define kSCSIPropertyTransferPeriod "SCSI Transfer Period" /* OSNumber */
115 #define kSCSIPropertyTransferOffset "SCSI Transfer Offset" /* OSNumber */
116 #define kSCSIPropertyTransferWidth "SCSI Transfer Width" /* OSNumber */
117 #define kSCSIPropertyTransferOptions "SCSI Transfer Options" /* OSNumber */
118 #define kSCSIPropertyCmdQueue "SCSI CmdQueue Enabled" /* OSNumber */