1 | /*␊ |
2 | * Copyright (c) 2004-2009 Apple Inc. All rights reserved.␊ |
3 | *␊ |
4 | * ␊ |
5 | * This file contains Original Code and/or Modifications of Original Code␊ |
6 | * as defined in and that are subject to the Apple Public Source License␊ |
7 | * Version 2.0 (the 'License'). You may not use this file except in␊ |
8 | * compliance with the License. Please obtain a copy of the License at␊ |
9 | * http://www.opensource.apple.com/apsl/ and read it before using this␊ |
10 | * file.␊ |
11 | * ␊ |
12 | * The 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, QUIET ENJOYMENT OR NON-INFRINGEMENT.␊ |
17 | * Please see the License for the specific language governing rights and␊ |
18 | * limitations under the License.␊ |
19 | * ␊ |
20 | */␊ |
21 | ␊ |
22 | #ifndef _IOKIT_SCSI_PORTS_H_␊ |
23 | #define _IOKIT_SCSI_PORTS_H_␊ |
24 | ␊ |
25 | ␊ |
26 | /*! @header SCSIPort␊ |
27 | ␉@discussion␊ |
28 | ␉This file contains all the definitions for SCSIPort notifications and status.␊ |
29 | */␊ |
30 | ␊ |
31 | ␊ |
32 | /*!␊ |
33 | @enum kSCSIPort_NotificationStatusChange␊ |
34 | @discussion␊ |
35 | Message definition to be used with the messageClients␊ |
36 | call to inform of a change in port status.␊ |
37 | */␊ |
38 | enum␊ |
39 | {␊ |
40 | ␉kSCSIPort_NotificationStatusChange␉␉= 0x68000001␊ |
41 | };␊ |
42 | ␊ |
43 | ␊ |
44 | /*! @typedef SCSIPortStatus␊ |
45 | ␉@abstract 32-bit number to represent a SCSIPortStatus.␊ |
46 | ␉@discussion Type for SCSIPortStatus.␊ |
47 | */␊ |
48 | ␊ |
49 | typedef UInt32 SCSIPortStatus;␊ |
50 | ␊ |
51 | /*! @enum SCSI Port Status Values␊ |
52 | ␉@discussion Definitions for the possible port status values␊ |
53 | */␊ |
54 | enum␊ |
55 | {␊ |
56 | ␉/*!␊ |
57 | ␉@constant kSCSIPort_StatusOnline␊ |
58 | ␉The port is online.␊ |
59 | ␉*/␊ |
60 | ␉kSCSIPort_StatusOnline␉= 0,␊ |
61 | ␊ |
62 | ␉/*!␊ |
63 | ␉@constant kSCSIPort_StatusOffline␊ |
64 | ␉The port is offline (e.g. unplugged cable).␊ |
65 | ␉*/␊ |
66 | ␉kSCSIPort_StatusOffline␉= 1,␊ |
67 | ␊ |
68 | ␉/*!␊ |
69 | ␉@constant kSCSIPort_StatusFailure␊ |
70 | ␉Driver has detected unrecoverable port failure (e.g. hardware port failure)␊ |
71 | ␉*/␊ |
72 | ␉kSCSIPort_StatusFailure␉= 2␊ |
73 | };␊ |
74 | ␊ |
75 | #endif␉/* _IOKIT_SCSI_PORTS_H_ */␊ |
76 | |