summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/fapi/fapiAttributeService.C
blob: c48557398d1d63a93319f6911f52bdbe14d1dbe2 (plain)
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/**
 *  @file fapiAttributeService.C
 *
 *  @brief Implements the AttributeService functions.
 */

#include <stdio.h>
#include <fapiAttributeService.H>
#include <fapiPlatTrace.H>

namespace fapi
{

namespace AttributeService
{

//******************************************************************************
// Get string
//******************************************************************************
template<>
ReturnCode _get<char *> (const AttributeId i_id,
                         const Target * const i_pTarget,
                         char * & o_value)
{
    FAPI_ERR("Get string attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Get uint8_t
//******************************************************************************
template<>
ReturnCode _get<uint8_t> (const AttributeId i_id,
                          const Target * const i_pTarget,
                          uint8_t & o_value)
{
    FAPI_ERR("Get uint8 attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Get uint32_t
//******************************************************************************
template<>
ReturnCode _get<uint32_t> (const AttributeId i_id,
                           const Target * const i_pTarget,
                           uint32_t & o_value)
{
    FAPI_ERR("Get uint32 attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Get uint64_t
//******************************************************************************
template<>
ReturnCode _get<uint64_t> (const AttributeId i_id,
                           const Target * const i_pTarget,
                           uint64_t & o_value)
{
    FAPI_ERR("Get uint64 attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Get uint8_t array
//******************************************************************************
template<>
ReturnCode _get<uint8_t *> (const AttributeId i_id,
                            const Target * const i_pTarget,
                            uint8_t * const o_pValues)
{
    FAPI_ERR("Get uint8 array attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Get uint32_t array
//******************************************************************************
template<>
ReturnCode _get<uint32_t *> (const AttributeId i_id,
                             const Target * const i_pTarget,
                             uint32_t * const o_pValues)
{
    FAPI_ERR("Get uint32 array attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Get uint64_t array
//******************************************************************************
template<>
ReturnCode _get<uint64_t *> (const AttributeId i_id,
                             const Target * const i_pTarget,
                             uint64_t * const o_pValues)
{
    FAPI_ERR("Get uint64 array attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Set string
//******************************************************************************
template<>
ReturnCode _set<char *> (const AttributeId i_id,
                         const Target * const i_pTarget,
                         const char * const i_pValue)
{
    FAPI_ERR("Set string attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Set uint8_t
//******************************************************************************
template<>
ReturnCode _set<uint8_t> (const AttributeId i_id,
                          const Target * const i_pTarget,
                          const uint8_t i_value)
{
    FAPI_ERR("Set uint8 attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Set uint32_t
//******************************************************************************
template<>
ReturnCode _set<uint32_t> (const AttributeId i_id,
                           const Target * const i_pTarget,
                           const uint32_t i_value)
{
    FAPI_ERR("Set uint32 attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Set uint64_t
//******************************************************************************
template<>
ReturnCode _set<uint64_t> (const AttributeId i_id,
                           const Target * const i_pTarget,
                           const uint64_t i_value)
{
    FAPI_ERR("Set uint64 attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Set uint8_t array
//******************************************************************************
template<>
ReturnCode _set<uint8_t *> (const AttributeId i_id,
                            const Target * const i_pTarget,
                            const uint8_t * const i_pValues)
{
    FAPI_ERR("Set uint8 array attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Set uint32_t array
//******************************************************************************
template<>
ReturnCode _set<uint32_t *> (const AttributeId i_id,
                             const Target * const i_pTarget,
                             const uint32_t * const i_pValues)
{
    FAPI_ERR("Set uint32 array attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

//******************************************************************************
// Set uint64_t array
//******************************************************************************
template<>
ReturnCode _set<uint64_t *> (const AttributeId i_id,
                             const Target * const i_pTarget,
                             const uint64_t * const i_pValues)
{
    FAPI_ERR("Set uint64 array attribute not implemented");
    return FAPI_RC_NOT_IMPLEMENTED;
}

} // namespace AttributeService

} // namespace fapi
OpenPOWER on IntegriCloud