1 /*******************************************************************************
3 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved.
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
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.
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
24 ********************************************************************************/
25 /********************************************************************************
28 * Abstract: This module contains function prototype of the Discovery
29 * Module (DM) API for initiator.
30 *******************************************************************************/
35 #include <dev/pms/RefTisa/discovery/api/dm.h>
36 #include <dev/pms/RefTisa/sallsdk/api/sa.h>
38 osGLOBAL bit32 dmCreatePort(
40 dmPortContext_t *dmPortContext,
41 dmPortInfo_t *dmPortInfo);
43 osGLOBAL bit32 dmDestroyPort(
45 dmPortContext_t *dmPortContext,
46 dmPortInfo_t *dmPortInfo);
48 osGLOBAL bit32 dmRegisterDevice(
50 dmPortContext_t *dmPortContext,
51 dmDeviceInfo_t *dmDeviceInfo,
52 agsaDevHandle_t *agDevHandle);
54 osGLOBAL bit32 dmDiscover(
56 dmPortContext_t *dmPortContext,
59 osGLOBAL void dmGetRequirements(
61 dmSwConfig_t *swConfig,
62 dmMemoryRequirement_t *memoryRequirement,
66 osGLOBAL void dmNotifyBC(
68 dmPortContext_t *dmPortContext,
71 osGLOBAL bit32 dmQueryDiscovery(
73 dmPortContext_t *dmPortContext);
76 dmResetFailedDiscovery(
78 dmPortContext_t *dmPortContext);
80 osGLOBAL bit32 dmInitialize(
83 dmMemoryRequirement_t *memoryAllocated,
84 dmSwConfig_t *swConfig,
87 osGLOBAL void dmTimerTick ( dmRoot_t *dmRoot );