123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- #include "Firewall.h"
- #include "MsgHndlrTask.h"
- #include "Support.h"
- #include "com_IPMIDefs.h"
- #include "com_IPMI_Firewall.h"
- #define RESERVED_BITS_GETNETFNSUP 0xF0
- #define RESERVED_BITS_GETCMDSUP_CH 0xF0
- #define RESERVED_BITS_GETCMDSUP_LUN 0xFC
- #define RESERVED_BITS_GETCMDSUP_NETFUN 0x80
- #define RESERVED_BITS_GETSUBFNSUP_CH 0xF0
- #define RESERVED_BITS_GETSUBFNSUP_NETFN 0xC0
- #define RESERVED_BITS_GETSUBFNSUP_LUN 0xFC
- #define RESERVED_BITS_GETCFGCMDS_CH 0xF0
- #define RESERVED_BITS_GETCFGCMDS_LUN 0xFC
- #define RESERVED_BITS_GETCFGCMDS_NETFUN 0x80
- #define RESERVED_BITS_GETCFGSUBFNS_CH 0xF0
- #define RESERVED_BITS_GETCFGSUBFNS_NETFN 0xC0
- #define RESERVED_BITS_GETCFGSUBFNS_LUN 0xFC
- #define RESERVED_BITS_SETCMDEN_CH 0xF0
- #define RESERVED_BITS_SETCMDEN_LUN 0xFC
- #define RESERVED_BITS_SETCMDEN_NETFUN 0x80
- #define RESERVED_BITS_GETCMDEN_CH 0xF0
- #define RESERVED_BITS_GETCMDEN_LUN 0xFC
- #define RESERVED_BITS_GETCMDEN_NETFUN 0x80
- #define RESERVED_BITS_SETSUBFNEN_CH 0xF0
- #define RESERVED_BITS_SETSUBFNEN_NETFN 0xC0
- #define RESERVED_BITS_SETSUBFNEN_LUN 0xFC
- #define RESERVED_BITS_GETSUBFNEN_CH 0xF0
- #define RESERVED_BITS_GETSUBFNEN_NETFN 0xC0
- #define RESERVED_BITS_GETSUBFNEN_LUN 0xFC
- #define RESERVED_BITS_GETOEMNETFNIANASUPPORT_CH 0xF0
- #define RESERVED_BITS_GETOEMNETFNIANASUPPORT_NETFN 0xC0
- #define RESERVED_BITS_GETOEMNETFNIANASUPPORT_LISTINDEX 0xC0
- #if IPM_DEVICE == 1
- #define LUN_NO_CMD_SUPPORT 0x00
- #define LUN_NO_RESTRICTION_SUPPORT 0x01
- #define LUN_RESTRICTION_SUPPORT 0x02
- #define LUN_00 LUN_RESTRICTION_SUPPORT
- #define LUN_01 LUN_NO_CMD_SUPPORT << 2
- #define LUN_10 LUN_NO_CMD_SUPPORT << 4
- #define LUN_11 LUN_NO_CMD_SUPPORT << 6
- #define DMTF_DEFINING_BODY 0x01
- #define GROUPEXTNCODE_PICMG 0x00
- #define GROUPEXTNCODE_DMTF 0x01
- #define GROUPEXTNCODE_SSI 0x02
- #define GROUPEXTNCODE_VSO 0x03
- #define GROUPEXTNCODE_DCMI 0xDC
- #define Max_GROUPEXTNCODE 5
- IANA_T m_IANAList[] = {
- {{0xFF,0xFF,0xFF}},
- #ifdef IANA_OEM_LIST
- IANA_OEM_LIST
- #endif
- };
- uint8_t GroupExtnCode[Max_GROUPEXTNCODE]={
- GROUPEXTNCODE_PICMG,
- GROUPEXTNCODE_DMTF,
- GROUPEXTNCODE_SSI,
- GROUPEXTNCODE_VSO,
- GROUPEXTNCODE_DCMI,
- };
- #if GET_NETFN_SUP != UNIMPLEMENTED
- int
- GetNetFnSup ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetNetFnSup not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if GET_CMD_SUP != UNIMPLEMENTED
- int
- GetCmdSup ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetCmdSup not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if GET_SUBFN_SUP != UNIMPLEMENTED
- int
- GetSubFnSup ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetSubFnSup not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if GET_CONFIG_CMDS != UNIMPLEMENTED
- int
- GetConfigCmds ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetConfigCmds not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if GET_CONFIG_SUB_FNS != UNIMPLEMENTED
- int
- GetConfigSubFns ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetConfigSubFns not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if SET_CMD_ENABLES != UNIMPLEMENTED
- int
- SetCmdEnables ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("SetCmdEnables not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if GET_CMD_ENABLES != UNIMPLEMENTED
- int
- GetCmdEnables ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetCmdEnables not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if SET_SUBFN_ENABLES != UNIMPLEMENTED
- int
- SetSubFnEnables ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("SetSubFnEnables not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if GET_SUBFN_ENABLES != UNIMPLEMENTED
- int
- GetSubFnEnables ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetSubFnEnables not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #if GET_OEM_NETFN_IANA_SUPPORT != UNIMPLEMENTED
- int
- GetOEMNetFnIANASupport ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes)
- {
- printf("GetOEMNetFnIANASupport not implement\r\n");
- *pRes = CC_INV_CMD;
- return sizeof(*pRes);
- }
- #endif
- #endif
|