|
@@ -60,7 +60,7 @@ uint16_t IPMICMD_GetSELAllocationInfo(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(SELAllocInfo_T);
|
|
dwResLen = sizeof(SELAllocInfo_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_GET_SEL_ALLOCATION_INFO,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_GET_SEL_ALLOCATION_INFO,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t *)pResGetSELAllocInfo, &dwResLen,
|
|
(uint8_t *)pResGetSELAllocInfo, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -77,7 +77,7 @@ uint16_t IPMICMD_ReserveSEL(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
memset(pReserveSelRes, 0, sizeof(ReserveSELRes_T));
|
|
memset(pReserveSelRes, 0, sizeof(ReserveSELRes_T));
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_RESERVE_SEL,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_RESERVE_SEL,
|
|
NULL, 0,
|
|
NULL, 0,
|
|
(uint8_t *)pReserveSelRes, &dwResLen,
|
|
(uint8_t *)pReserveSelRes, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -108,7 +108,7 @@ uint16_t IPMC_ReserveSEL(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t IpmbAddr,
|
|
|
|
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[1] = IpmbAddr;
|
|
Req[1] = IpmbAddr;
|
|
- Req[2] = NETFNLUN_IPMI_APP;
|
|
|
|
|
|
+ Req[2] = NETFNLUN_IPMI_STORAGE;
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[4] = 0x20;
|
|
Req[4] = 0x20;
|
|
Req[5] = 0x10;
|
|
Req[5] = 0x10;
|
|
@@ -147,7 +147,7 @@ uint16_t IPMICMD_GetSELEntry(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
uint16_t wRet = 0;
|
|
uint16_t wRet = 0;
|
|
|
|
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_GET_SEL_ENTRY,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_GET_SEL_ENTRY,
|
|
(uint8_t*)pGetSELReqData, sizeof(GetSELReq_T),
|
|
(uint8_t*)pGetSELReqData, sizeof(GetSELReq_T),
|
|
(uint8_t *)pGetSELResData, &ResDataLen,
|
|
(uint8_t *)pGetSELResData, &ResDataLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -244,7 +244,7 @@ uint16_t IPMICMD_AddSELEntry(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(AddSELRes_T);
|
|
dwResLen = sizeof(AddSELRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_ADD_SEL_ENTRY,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_ADD_SEL_ENTRY,
|
|
(uint8_t*)pSELReqData, sizeof(SELEventRecord_T),
|
|
(uint8_t*)pSELReqData, sizeof(SELEventRecord_T),
|
|
(uint8_t *)pSELResData, &dwResLen,
|
|
(uint8_t *)pSELResData, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -269,7 +269,7 @@ uint16_t IPMICMD_DeleteSELEntry(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
//first do a SEL reservation
|
|
//first do a SEL reservation
|
|
dwResLen = sizeof(ReserveSELRes_T);
|
|
dwResLen = sizeof(ReserveSELRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_RESERVE_SEL,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_RESERVE_SEL,
|
|
NULL, 0,
|
|
NULL, 0,
|
|
(uint8_t *)&ReserveSelRes, &dwResLen,
|
|
(uint8_t *)&ReserveSelRes, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -293,7 +293,7 @@ uint16_t IPMICMD_DeleteSELEntry(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
DeleteSELReqData.RecID = RecordID;
|
|
DeleteSELReqData.RecID = RecordID;
|
|
|
|
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_DELETE_SEL_ENTRY,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_DELETE_SEL_ENTRY,
|
|
(uint8_t*)&DeleteSELReqData, sizeof(DeleteSELReqData),
|
|
(uint8_t*)&DeleteSELReqData, sizeof(DeleteSELReqData),
|
|
(uint8_t *)&DeleteSELResData, &dwResLen,
|
|
(uint8_t *)&DeleteSELResData, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -314,7 +314,7 @@ uint16_t IPMICMD_ClearSEL(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
//first do a SEL reservation
|
|
//first do a SEL reservation
|
|
dwResLen = sizeof(ReserveSELRes_T);
|
|
dwResLen = sizeof(ReserveSELRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_RESERVE_SEL,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_RESERVE_SEL,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t *)&ReserveSelRes, &dwResLen,
|
|
(uint8_t *)&ReserveSelRes, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -343,7 +343,7 @@ uint16_t IPMICMD_ClearSEL(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(ClearSELRes_T);
|
|
dwResLen = sizeof(ClearSELRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_CLEAR_SEL,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_CLEAR_SEL,
|
|
(uint8_t*)&ClearSelReq, sizeof(ClearSELReq_T),
|
|
(uint8_t*)&ClearSelReq, sizeof(ClearSELReq_T),
|
|
(uint8_t *)&ClearSelRes, &dwResLen,
|
|
(uint8_t *)&ClearSelRes, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -977,7 +977,7 @@ uint16_t IPMICMD_GetFRUInventoryAreaInfo(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(FRUInventoryAreaInfoRes_T);
|
|
dwResLen = sizeof(FRUInventoryAreaInfoRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_FRU_INVENTORY_AREA_INFO,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_FRU_INVENTORY_AREA_INFO,
|
|
(uint8_t *)pReqFRUInventoryAreaInfo, sizeof(FRUInventoryAreaInfoReq_T),
|
|
(uint8_t *)pReqFRUInventoryAreaInfo, sizeof(FRUInventoryAreaInfoReq_T),
|
|
(uint8_t *)pResFRUInventoryAreaInfo, &dwResLen,
|
|
(uint8_t *)pResFRUInventoryAreaInfo, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -997,7 +997,7 @@ uint16_t IPMICMD_ReadFRUData(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(FRUReadRes_T) + (pFRUReadReqData->CountToRead);
|
|
dwResLen = sizeof(FRUReadRes_T) + (pFRUReadReqData->CountToRead);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_READ_FRU_DATA,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_READ_FRU_DATA,
|
|
(uint8_t *)pFRUReadReqData, sizeof(FRUReadReq_T),
|
|
(uint8_t *)pFRUReadReqData, sizeof(FRUReadReq_T),
|
|
(uint8_t *)pFRUReadResData, &dwResLen,
|
|
(uint8_t *)pFRUReadResData, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -1015,7 +1015,7 @@ uint16_t IPMICMD_WriteFRUData(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(FRUWriteRes_T);
|
|
dwResLen = sizeof(FRUWriteRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_WRITE_FRU_DATA,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_WRITE_FRU_DATA,
|
|
(uint8_t *)pFRUWriteReqData, ReqDataLen,
|
|
(uint8_t *)pFRUWriteReqData, ReqDataLen,
|
|
(uint8_t *)pFRUWriteResData, &dwResLen,
|
|
(uint8_t *)pFRUWriteResData, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -1155,7 +1155,7 @@ uint8_t IPMICMD_GetSELTime(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(GetSELTimeRes_T);
|
|
dwResLen = sizeof(GetSELTimeRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_GET_SEL_TIME,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_GET_SEL_TIME,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t *)pGetSELTimeRes, &dwResLen,
|
|
(uint8_t *)pGetSELTimeRes, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -1176,7 +1176,7 @@ uint8_t IPMC_GetSELTime(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t IpmbAddr,
|
|
|
|
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[1] = IpmbAddr;
|
|
Req[1] = IpmbAddr;
|
|
- Req[2] = NETFNLUN_IPMI_APP;
|
|
|
|
|
|
+ Req[2] = NETFNLUN_IPMI_STORAGE;
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[4] = 0x20;
|
|
Req[4] = 0x20;
|
|
Req[5] = 0x10;
|
|
Req[5] = 0x10;
|
|
@@ -1208,7 +1208,7 @@ uint8_t IPMICMD_SetSELTime(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(uint8_t);
|
|
dwResLen = sizeof(uint8_t);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_SET_SEL_TIME,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_SET_SEL_TIME,
|
|
(uint8_t *)pSetSELTimeReq, sizeof(SetSELTimeReq_T),
|
|
(uint8_t *)pSetSELTimeReq, sizeof(SetSELTimeReq_T),
|
|
(uint8_t *)DummyResData, &dwResLen,
|
|
(uint8_t *)DummyResData, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -1229,7 +1229,7 @@ uint8_t IPMC_SetSELTime(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t IpmbAddr,
|
|
|
|
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[1] = IpmbAddr;
|
|
Req[1] = IpmbAddr;
|
|
- Req[2] = NETFNLUN_IPMI_APP;
|
|
|
|
|
|
+ Req[2] = NETFNLUN_IPMI_STORAGE;
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[4] = 0x20;
|
|
Req[4] = 0x20;
|
|
Req[5] = 0x10;
|
|
Req[5] = 0x10;
|
|
@@ -1261,7 +1261,7 @@ uint8_t IPMICMD_GetSELTimeUTCOffset(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(GetSELTimeUTCOffsetRes_T);
|
|
dwResLen = sizeof(GetSELTimeUTCOffsetRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_GET_SEL_TIME_UTC_OFFSET,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_GET_SEL_TIME_UTC_OFFSET,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t*)DummyReqData, 0,
|
|
(uint8_t *)pGetSELTimeUTCOffsetRes, &dwResLen,
|
|
(uint8_t *)pGetSELTimeUTCOffsetRes, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -1282,7 +1282,7 @@ uint8_t IPMC_GetSELTimeUTCOffset(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t Ipmb
|
|
|
|
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[1] = IpmbAddr;
|
|
Req[1] = IpmbAddr;
|
|
- Req[2] = NETFNLUN_IPMI_APP;
|
|
|
|
|
|
+ Req[2] = NETFNLUN_IPMI_STORAGE;
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[4] = 0x20;
|
|
Req[4] = 0x20;
|
|
Req[5] = 0x10;
|
|
Req[5] = 0x10;
|
|
@@ -1314,7 +1314,7 @@ uint8_t IPMICMD_SetSELTimeUTCOffset(IPMI20_UDS_SESSION_T *pUDSSession,
|
|
|
|
|
|
dwResLen = sizeof(SetSELTimeUTCOffsetRes_T);
|
|
dwResLen = sizeof(SetSELTimeUTCOffsetRes_T);
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
wRet = LIBIPMI_Send_RAW_IPMI2_0_Command(pUDSSession,
|
|
- NETFNLUN_IPMI_APP, CMD_SET_SEL_TIME_UTC_OFFSET,
|
|
|
|
|
|
+ NETFNLUN_IPMI_STORAGE, CMD_SET_SEL_TIME_UTC_OFFSET,
|
|
(uint8_t *)pSetSELTimeUTCOffsetReq, sizeof(SetSELTimeUTCOffsetReq_T),
|
|
(uint8_t *)pSetSELTimeUTCOffsetReq, sizeof(SetSELTimeUTCOffsetReq_T),
|
|
(uint8_t *)&pSetSELTimeUTCOffsetRes, &dwResLen,
|
|
(uint8_t *)&pSetSELTimeUTCOffsetRes, &dwResLen,
|
|
timeout);
|
|
timeout);
|
|
@@ -1335,7 +1335,7 @@ uint8_t IPMC_SetSELTimeUTCOffset(IPMI20_UDS_SESSION_T *pUDSSession, uint8_t Ipmb
|
|
|
|
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[0] = 0x40; //Track | channel 0
|
|
Req[1] = IpmbAddr;
|
|
Req[1] = IpmbAddr;
|
|
- Req[2] = NETFNLUN_IPMI_APP;
|
|
|
|
|
|
+ Req[2] = NETFNLUN_IPMI_STORAGE;
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[3] = 0x100 - (Req[1] + Req[2])&0xff; //checksum1
|
|
Req[4] = 0x20;
|
|
Req[4] = 0x20;
|
|
Req[5] = 0x10;
|
|
Req[5] = 0x10;
|