Lines Matching +full:channel +full:-
8 // http://www.apache.org/licenses/LICENSE-2.0
20 #include <phosphor-logging/lg2.hpp>
27 /** @brief implements the set channel access command
28 * @ param ctx - context pointer
29 * @ param channel - channel number
30 * @ param reserved - skip 4 bits
31 * @ param accessMode - access mode for IPMI messaging
32 * @ param usrAuth - user level authentication (enable/disable)
33 * @ param msgAuth - per message authentication (enable/disable)
34 * @ param alertDisabled - PEF alerting (enable/disable)
35 * @ param chanAccess - channel access
36 * @ param channelPrivLimit - channel privilege limit
37 * @ param reserved - skip 3 bits
38 * @ param channelPrivMode - channel priviledge mode
43 Context::ptr ctx, uint4_t channel, uint4_t reserved1, uint3_t accessMode, in ipmiSetChannelAccess() argument
50 lg2::debug("Set channel access - Invalid field in request"); in ipmiSetChannelAccess()
55 convertCurrentChannelNum(static_cast<uint8_t>(channel), ctx->channel); in ipmiSetChannelAccess()
59 lg2::debug("Set channel access - No support on channel: {CHANNEL}", in ipmiSetChannelAccess()
60 "CHANNEL", chNum); in ipmiSetChannelAccess()
96 lg2::debug("Set channel access - Invalid access set mode"); in ipmiSetChannelAccess()
117 lg2::debug("Set channel access - Invalid access priv mode"); in ipmiSetChannelAccess()
126 lg2::debug("Set channel access - Failed to set access data"); in ipmiSetChannelAccess()
136 lg2::debug("Set channel access - Failed to set access data"); in ipmiSetChannelAccess()
144 /** @brief implements the get channel access command
145 * @ param ctx - context pointer
146 * @ param channel - channel number
147 * @ param reserved1 - skip 4 bits
148 * @ param reserved2 - skip 6 bits
149 * @ param accessMode - get access mode
152 * - accessMode - get access mode
153 * - usrAuthDisabled - user level authentication status
154 * - msgAuthDisabled - message level authentication status
155 * - alertDisabled - alerting status
156 * - reserved - skip 2 bits
157 * - privLimit - channel privilege limit
158 * - reserved - skip 4 bits
166 uint4_t, // channel privilege,
169 ipmiGetChannelAccess(Context::ptr ctx, uint4_t channel, uint4_t reserved1, in ipmiGetChannelAccess() argument
174 lg2::debug("Get channel access - Invalid field in request"); in ipmiGetChannelAccess()
181 lg2::debug("Get channel access - Invalid Access mode"); in ipmiGetChannelAccess()
186 convertCurrentChannelNum(static_cast<uint8_t>(channel), ctx->channel); in ipmiGetChannelAccess()
191 lg2::debug("Get channel access - No support on channel: {CHANNEL}", in ipmiGetChannelAccess()
192 "CHANNEL", chNum); in ipmiGetChannelAccess()
224 /** @brief implements the get channel info command
225 * @ param ctx - context pointer
226 * @ param channel - channel number
227 * @ param reserved - skip 4 bits
230 * - chNum - the channel number for this request
231 * - mediumType - see Table 6-3, Channel Medium Type Numbers
232 * - protocolType - Table 6-2, Channel Protocol Type Numbers
233 * - activeSessionCount - number of active sessions
234 * - sessionType - channel support for sessions
235 * - vendorId - vendor for this channel protocol (IPMI - 7154)
236 * - auxChInfo - auxiliary info for channel
249 ipmiGetChannelInfo(Context::ptr ctx, uint4_t channel, uint4_t reserved) in ipmiGetChannelInfo() argument
253 lg2::debug("Get channel access - Invalid field in request"); in ipmiGetChannelInfo()
258 convertCurrentChannelNum(static_cast<uint8_t>(channel), ctx->channel); in ipmiGetChannelInfo()
261 lg2::debug("Get channel Info - No support on channel: {CHANNEL}", in ipmiGetChannelInfo()
262 "CHANNEL", chNum); in ipmiGetChannelInfo()
270 lg2::error("Failed to get channel info, channel: {CHANNEL}, " in ipmiGetChannelInfo()
272 "CHANNEL", chNum, "ERRNO", compCode); in ipmiGetChannelInfo()
307 /** @brief implements get channel payload support command
308 * @ param ctx - ipmi context pointer
309 * @ param chNum - channel number
310 * @ param reserved - skip 4 bits
313 * - stdPayloadType - bitmask of supported standard payload types
314 * - sessSetupPayloadType - bitmask of supported session setup payload types
315 * - OEMPayloadType - bitmask of supported OEM payload types
316 * - reserved - 2 bytes of 0
323 ipmiGetChannelPayloadSupport(Context::ptr ctx, uint4_t channel, in ipmiGetChannelPayloadSupport() argument
327 convertCurrentChannelNum(static_cast<uint8_t>(channel), ctx->channel); in ipmiGetChannelPayloadSupport()
331 lg2::debug("Get channel payload - Invalid field in request"); in ipmiGetChannelPayloadSupport()
338 lg2::debug("Get channel payload - No support on channel"); in ipmiGetChannelPayloadSupport()
356 /** @brief implements the get channel payload version command
357 * @param ctx - IPMI context pointer (for channel)
358 * @param chNum - channel number to get info about
359 * @param reserved - skip 4 bits
360 * @param payloadTypeNum - to get payload type info
363 * - formatVersion - BCD encoded format version info
370 uint8_t channel = in ipmiGetChannelPayloadVersion() local
371 convertCurrentChannelNum(static_cast<uint8_t>(chNum), ctx->channel); in ipmiGetChannelPayloadVersion()
374 if (reserved || !isValidChannel(channel)) in ipmiGetChannelPayloadVersion()
376 lg2::debug("Get channel payload version - Invalid field in request"); in ipmiGetChannelPayloadVersion()
380 if (getChannelSessionSupport(channel) == EChannelSessSupported::none) in ipmiGetChannelPayloadVersion()
382 lg2::debug("Get channel payload version - No support on channel"); in ipmiGetChannelPayloadVersion()
388 lg2::error("Get channel payload version - Payload type unavailable"); in ipmiGetChannelPayloadVersion()
393 // BCD encoded version representation - 1.0 in ipmiGetChannelPayloadVersion()