xref: /freebsd/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itddefs.h (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1 /*******************************************************************************
2 **
3 *Copyright (c) 2014 PMC-Sierra, Inc.  All rights reserved.
4 *
5 *Redistribution and use in source and binary forms, with or without modification, are permitted provided
6 *that the following conditions are met:
7 *1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
8 *following disclaimer.
9 *2. Redistributions in binary form must reproduce the above copyright notice,
10 *this list of conditions and the following disclaimer in the documentation and/or other materials provided
11 *with the distribution.
12 *
13 *THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED
14 *WARRANTIES,INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 *FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16 *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
17 *NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
18 *BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
19 *LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
20 *SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
21 *
22 *
23 ********************************************************************************/
24 /*******************************************************************************/
25 /** \file
26  *
27  *
28  * #define for SAS intiator in SAS/SATA TD layer
29  *
30  */
31 
32 
33 #ifndef __ITDDEFS_H__
34 #define __ITDDEFS_H__
35 /* discovery related state */
36 #define ITD_DSTATE_NOT_STARTED                 0
37 #define ITD_DSTATE_STARTED                     1
38 #define ITD_DSTATE_COMPLETED                   2
39 
40 /* SAS/SATA discovery status */
41 #define DISCOVERY_NOT_START                       0                       /**< status indicates discovery not started */
42 #define DISCOVERY_UP_STREAM                       1                       /**< status indicates discover upstream */
43 #define DISCOVERY_DOWN_STREAM                     2                       /**< status indicates discover downstream */
44 #define DISCOVERY_CONFIG_ROUTING                  3                       /**< status indicates discovery config routing table */
45 #define DISCOVERY_SAS_DONE                        4                       /**< status indicates discovery done */
46 #define DISCOVERY_REPORT_PHY_SATA                 5                       /**< status indicates discovery report phy sata */
47 #endif /* __ITDDEFS_H__ */
48