123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /*
- * Brief: PICMG command define.
- * Author: jimbo_zhang@outlook.com
- * Date: 2019-4-11
- */
- #include "com_BmcType.h"
- #include "MsgHndlr.h"
- /*---------------------------------------
- * get IPMC Properties
- *---------------------------------------*/
- //netfn = 0x2c, cmd = 0, subfn = 0x00
- int Get_IPMC_Properties ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- *pRes = CC_NORMAL;
- *(pRes+1) = 0x00;
- *(pRes+2) = 0x00;
- *(pRes+3) = 0x01;
- *(pRes+4) = 0x00;
-
- return 5;
- }
- /*---------------------------------------
- * get address information
- *---------------------------------------*/
- //netfn = 0x2c, cmd = 0x01, subfn = 0x00
- int Get_Address_Info ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
-
- return 1;
- }
- /*---------------------------------------
- * get shelf address infomation
- *---------------------------------------*/
- int
- Get_Shelf_Addr_Info ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- *pRes = CC_NORMAL;
- *(pRes+1) = 0x00;
- *(pRes+2) = 0x01;
- *(pRes+3) = 0x02;
- *(pRes+4) = 0x03;
-
- return 5;
- }
- /*---------------------------------------
- * get device locator record id
- *---------------------------------------*/
- //netfn = 0x2c, cmd = 0x0d, subfn = 0x00.
- int Get_Dev_Locator_Rec_ID ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- *pRes = CC_NORMAL;
- pRes[1] = 0;
- pRes[2] = 0; //Device locator ID MS
- pRes[3] = 0; //Device locator ID LS
-
- return 4;
- }
|