Specifications
INTELLIGENT PLATFORM MANAGEMENT INTERFACE
7-14 PP 41x/03x
/******************************************************************************
*
* vBmcSmicSmsMessageWrite
*
* This function writes a SMS (System Managment Software) messages
* to the IPMI using the standard BMC-SMIC interface.
*
* Returns: N/A
*
*/
void vBmcSmicSmsMessageWrite
(
const unsigned char *pbMessage, /* request */
unsigned char bLength /* request length */
)
{
unsigned char bMessageStage;
while (((bReadSmicFlags) & FLAGS_BUSY) == FLAGS_BUSY)
; /* do nothing ... */
vWriteSmicControl (CC_SMS_WR_START);
vWriteSmicData (*pbMessage++);
vWriteSmicFlags (FLAGS_BUSY);
bLength--;
do
{
while (((bReadSmicFlags) & FLAGS_TX_DATA_READY) != FLAGS_TX_DATA_READY)
; /* do nothing ... */
while (((bReadSmicFlags) & FLAGS_BUSY) == FLAGS_BUSY)
; /* do nothing ... */
vWriteSmicControl ((bLength > 1) ? CC_SMS_WR_NEXT : CC_SMS_WR_END);
vWriteSmicData (*pbMessage++);
vWriteSmicFlags (FLAGS_BUSY);
bLength--;
while (((bReadSmicFlags) & FLAGS_BUSY) == FLAGS_BUSY)
; /* do nothing ... */
}
while (bLength > 0);
}
/******************************************************************************
*
* vBmcSmicSmsMessageRead
*
* This function reads a SMS (System Managment Software) message
* from the IPMI using the standard BMC-SMIC interface.
*
* Returns: N/A
*