ttdreset.c revision 285809
1139804Simp/*******************************************************************************
2185435Sbz*Copyright (c) 2014 PMC-Sierra, Inc.  All rights reserved.
3185435Sbz*
4191673Sjamie*Redistribution and use in source and binary forms, with or without modification, are permitted provided
5185435Sbz*that the following conditions are met:
6190466Sjamie*1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
7185404Sbz*following disclaimer.
8185404Sbz*2. Redistributions in binary form must reproduce the above copyright notice,
9185404Sbz*this list of conditions and the following disclaimer in the documentation and/or other materials provided
10185404Sbz*with the distribution.
11185404Sbz*
12185404Sbz*THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED
13185404Sbz*WARRANTIES,INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14185404Sbz*FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
15185404Sbz*FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
16185404Sbz*NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
17185404Sbz*BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18185404Sbz*LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19185404Sbz*SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
20185404Sbz
21185404Sbz********************************************************************************/
22185404Sbz#include <osenv.h>
23185404Sbz#include <ostypes.h>
24185404Sbz#include <osdebug.h>
25185404Sbz
26185404Sbz#include <sa.h>
2746197Sphk#include <saapi.h>
2846155Sphk#include <saosapi.h>
29116182Sobrien
30116182Sobrien#include <titypes.h>
31116182Sobrien#include <ostiapi.h>
32193066Sjamie#include <tiapi.h>
33185435Sbz#include <tiglobal.h>
34185435Sbz
35185435Sbz#include <tdtypes.h>
36131177Spjd#include <osstring.h>
3746155Sphk#include <tdutil.h>
3846155Sphk
3946155Sphk#ifdef INITIATOR_DRIVER
4046155Sphk#include <itdtypes.h>
4146155Sphk#include <itddefs.h>
4246155Sphk#include <itdglobl.h>
4346155Sphk#endif
44192895Sjamie
45164032Srwatson#ifdef TARGET_DRIVER
4646155Sphk#include "ttdglobl.h"
47124882Srwatson#include "ttdtxchg.h"
48177785Skib#include "ttdtypes.h"
4946155Sphk#endif
5087275Srwatson
5187275Srwatson#include <tdsatypes.h>
52168401Spjd#include <tdproto.h>
53193066Sjamie