-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvlib_callbacks.c
117 lines (108 loc) · 3.13 KB
/
vlib_callbacks.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
// SPDX-License-Identifier: EPL-1.0
/*
* Copyright IBM Corp. 2003,2010
*
* Authors: Andreas Herrmann
* Stefan Voelkel
*
* File: vlib_callbacks.c
*
* Description:
* This file contains the implementations of callback registration
* HBA API routines.
*
*/
/**
* @file vlib_callbacks.c
* @brief Implementations of %callback registration HBA API functions.
* @note We only include vlib.h which in turn should include all other
* necessary header files.
*
* This file contains the implementations of callback registration
* HBA API routines.
*/
#include "vlib.h"
/** @ingroup UnSupportedHBAAPIs
* @return HBA_STATUS_ERROR_NOT_SUPPORTED
* @note This function is currently not supported.
*/
HBA_STATUS HBA_RemoveCallback(HBA_CALLBACKHANDLE callbackHandle)
{
return HBA_STATUS_ERROR_NOT_SUPPORTED;
}
/** @ingroup UnSupportedHBAAPIs
* @return HBA_STATUS_ERROR_NOT_SUPPORTED
* @note This function is currently not supported.
*/
HBA_STATUS
HBA_RegisterForAdapterAddEvents(void (*pCallback) (void *, HBA_WWN, HBA_UINT32),
void *pUserData,
HBA_CALLBACKHANDLE *pCallbackHandle)
{
return HBA_STATUS_ERROR_NOT_SUPPORTED;
}
/** @ingroup UnSupportedHBAAPIs
* @return HBA_STATUS_ERROR_NOT_SUPPORTED
* @note This function is currently not supported.
*/
HBA_STATUS
HBA_RegisterForAdapterEvents(void (*pCallback) (void *, HBA_WWN, HBA_UINT32),
void *pUserData, HBA_HANDLE handle,
HBA_CALLBACKHANDLE *pCallbackHandle)
{
return HBA_STATUS_ERROR_NOT_SUPPORTED;
}
/** @ingroup UnSupportedHBAAPIs
* @return HBA_STATUS_ERROR_NOT_SUPPORTED
* @note This function is currently not supported.
*/
HBA_STATUS
HBA_RegisterForAdapterPortEvents(void (*pCallback)
(void *, HBA_WWN, HBA_UINT32, HBA_UINT32),
void *pUserData, HBA_HANDLE handle,
HBA_WWN PortWWN,
HBA_CALLBACKHANDLE *pCallbackHandle)
{
return HBA_STATUS_ERROR_NOT_SUPPORTED;
}
/** @ingroup UnSupportedHBAAPIs
* @return HBA_STATUS_ERROR_NOT_SUPPORTED
* @note This function is currently not supported.
*/
HBA_STATUS
HBA_RegisterForAdapterPortStatEvents(void (*pCallback)
(void *, HBA_WWN, HBA_UINT32),
void *pUserData, HBA_HANDLE handle,
HBA_WWN PortWWN, HBA_PORTSTATISTICS stats,
HBA_UINT32 statType,
HBA_CALLBACKHANDLE *pCallbackHandle)
{
return HBA_STATUS_ERROR_NOT_SUPPORTED;
}
/** @ingroup UnSupportedHBAAPIs
* @return HBA_STATUS_ERROR_NOT_SUPPORTED
* @note This function is currently not supported.
*/
HBA_STATUS
HBA_RegisterForTargetEvents(void (*pCallback)
(void *, HBA_WWN, HBA_WWN, HBA_UINT32),
void *pUserData, HBA_HANDLE handle,
HBA_WWN hbaPortWWN, HBA_WWN discoveredPortWWN,
HBA_CALLBACKHANDLE *pCallbackHandle,
HBA_UINT32 allTargets)
{
return HBA_STATUS_ERROR_NOT_SUPPORTED;
}
/** @ingroup UnSupportedHBAAPIs
* @return HBA_STATUS_ERROR_NOT_SUPPORTED
* @note This function is currently not supported.
*/
HBA_STATUS
HBA_RegisterForLinkEvents(void (*pCallback)
(void *, HBA_WWN, HBA_UINT32, void *, HBA_UINT32),
void *pUserData, void *pRLIRBuffer,
HBA_UINT32 RLIRBufferSize, HBA_HANDLE handle,
HBA_CALLBACKHANDLE *pCallbackHandle)
{
return HBA_STATUS_ERROR_NOT_SUPPORTED;
}