1285809Sscottl/*******************************************************************************
2285809Sscottl**
3285809Sscottl*Copyright (c) 2014 PMC-Sierra, Inc.  All rights reserved.
4285809Sscottl*
5285809Sscottl*Redistribution and use in source and binary forms, with or without modification, are permitted provided
6285809Sscottl*that the following conditions are met:
7285809Sscottl*1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
8285809Sscottl*following disclaimer.
9285809Sscottl*2. Redistributions in binary form must reproduce the above copyright notice,
10285809Sscottl*this list of conditions and the following disclaimer in the documentation and/or other materials provided
11285809Sscottl*with the distribution.
12285809Sscottl*
13285809Sscottl*THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED
14285809Sscottl*WARRANTIES,INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15285809Sscottl*FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16285809Sscottl*FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
17285809Sscottl*NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
18285809Sscottl*BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
19285809Sscottl*LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
20285809Sscottl*SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
21285809Sscottl*
22285809Sscottl* $FreeBSD$
23285809Sscottl*
24285809Sscottl********************************************************************************/
25285809Sscottl/*******************************************************************************/
26285809Sscottl/** \file
27285809Sscottl *
28285809Sscottl *
29285809Sscottl * #define for SAS intiator in SAS/SATA TD layer
30285809Sscottl *
31285809Sscottl */
32285809Sscottl
33285809Sscottl
34285809Sscottl#ifndef __ITDDEFS_H__
35285809Sscottl#define __ITDDEFS_H__
36285809Sscottl/* discovery related state */
37285809Sscottl#define ITD_DSTATE_NOT_STARTED                 0
38285809Sscottl#define ITD_DSTATE_STARTED                     1
39285809Sscottl#define ITD_DSTATE_COMPLETED                   2
40285809Sscottl
41285809Sscottl/* SAS/SATA discovery status */
42285809Sscottl#define DISCOVERY_NOT_START                       0                       /**< status indicates discovery not started */
43285809Sscottl#define DISCOVERY_UP_STREAM                       1                       /**< status indicates discover upstream */
44285809Sscottl#define DISCOVERY_DOWN_STREAM                     2                       /**< status indicates discover downstream */
45285809Sscottl#define DISCOVERY_CONFIG_ROUTING                  3                       /**< status indicates discovery config routing table */
46285809Sscottl#define DISCOVERY_SAS_DONE                        4                       /**< status indicates discovery done */
47285809Sscottl#define DISCOVERY_REPORT_PHY_SATA                 5                       /**< status indicates discovery report phy sata */
48285809Sscottl#endif /* __ITDDEFS_H__ */
49