1285242Sachim/*******************************************************************************
2285242Sachim**
3285242Sachim*Copyright (c) 2014 PMC-Sierra, Inc.  All rights reserved.
4285242Sachim*
5285242Sachim*Redistribution and use in source and binary forms, with or without modification, are permitted provided
6285242Sachim*that the following conditions are met:
7285242Sachim*1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
8285242Sachim*following disclaimer.
9285242Sachim*2. Redistributions in binary form must reproduce the above copyright notice,
10285242Sachim*this list of conditions and the following disclaimer in the documentation and/or other materials provided
11285242Sachim*with the distribution.
12285242Sachim*
13285242Sachim*THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED
14285242Sachim*WARRANTIES,INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15285242Sachim*FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16285242Sachim*FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
17285242Sachim*NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
18285242Sachim*BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
19285242Sachim*LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
20285242Sachim*SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
21285242Sachim*
22285242Sachim* $FreeBSD$
23285242Sachim*
24285242Sachim********************************************************************************/
25285242Sachim/*******************************************************************************/
26285242Sachim/** \file
27285242Sachim *
28285242Sachim *
29285242Sachim * #define for SAS intiator in SAS/SATA TD layer
30285242Sachim *
31285242Sachim */
32285242Sachim
33285242Sachim
34285242Sachim#ifndef __ITDDEFS_H__
35285242Sachim#define __ITDDEFS_H__
36285242Sachim/* discovery related state */
37285242Sachim#define ITD_DSTATE_NOT_STARTED                 0
38285242Sachim#define ITD_DSTATE_STARTED                     1
39285242Sachim#define ITD_DSTATE_COMPLETED                   2
40285242Sachim
41285242Sachim/* SAS/SATA discovery status */
42285242Sachim#define DISCOVERY_NOT_START                       0                       /**< status indicates discovery not started */
43285242Sachim#define DISCOVERY_UP_STREAM                       1                       /**< status indicates discover upstream */
44285242Sachim#define DISCOVERY_DOWN_STREAM                     2                       /**< status indicates discover downstream */
45285242Sachim#define DISCOVERY_CONFIG_ROUTING                  3                       /**< status indicates discovery config routing table */
46285242Sachim#define DISCOVERY_SAS_DONE                        4                       /**< status indicates discovery done */
47285242Sachim#define DISCOVERY_REPORT_PHY_SATA                 5                       /**< status indicates discovery report phy sata */
48285242Sachim#endif /* __ITDDEFS_H__ */
49