Chameleon

Chameleon Svn Source Tree

Root/branches/ErmaC/Trunk/i386/include/IOKit/scsi/SCSIPort.h

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
28This file contains all the definitions for SCSIPort notifications and status.
29*/
30
31
32/*!
33@enum kSCSIPort_NotificationStatusChange
34@discussion
35Message definition to be used with the messageClients
36call to inform of a change in port status.
37*/
38enum
39{
40kSCSIPort_NotificationStatusChange= 0x68000001
41};
42
43
44/*! @typedef SCSIPortStatus
45@abstract 32-bit number to represent a SCSIPortStatus.
46@discussion Type for SCSIPortStatus.
47*/
48
49typedef UInt32 SCSIPortStatus;
50
51/*! @enum SCSI Port Status Values
52@discussion Definitions for the possible port status values
53*/
54enum
55{
56/*!
57@constant kSCSIPort_StatusOnline
58The port is online.
59*/
60kSCSIPort_StatusOnline= 0,
61
62/*!
63@constant kSCSIPort_StatusOffline
64The port is offline (e.g. unplugged cable).
65*/
66kSCSIPort_StatusOffline= 1,
67
68/*!
69@constant kSCSIPort_StatusFailure
70Driver has detected unrecoverable port failure (e.g. hardware port failure)
71*/
72kSCSIPort_StatusFailure= 2
73};
74
75#endif/* _IOKIT_SCSI_PORTS_H_ */
76

Archive Download this file

Revision: 2045