DCMIConfig.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*****************************************************************
  2. *****************************************************************
  3. *** **
  4. *** (C)Copyright 2011, American Megatrends Inc. **
  5. *** **
  6. *** All Rights Reserved. **
  7. *** **
  8. *** 6145-F, Northbelt Parkway, Norcross, **
  9. *** **
  10. *** Georgia - 30071, USA. Phone-(770)-246-8600. **
  11. *** **
  12. *****************************************************************
  13. *****************************************************************
  14. *
  15. * DCMIConfig.h
  16. * DCMI Configuration related commands.
  17. *
  18. * Author: Muthuchamy K <muthusamyk@amiindia.co.in>
  19. *
  20. *****************************************************************/
  21. #ifndef DCMICONFIG_H
  22. #define DCMICONFIG_H
  23. #include "Types.h"
  24. typedef union
  25. {
  26. INT8U DHCPActivate;
  27. INT8U DHCPDiscovery;
  28. INT8U DHCPTiming1;
  29. INT16U DHCPTiming2;
  30. INT16U DHCPTimimg3;
  31. }DCMIConfig_T;
  32. typedef struct
  33. {
  34. INT8U GroupExtnID;
  35. INT8U ParamSelector;
  36. INT8U SetSelector;
  37. }PACKED GetDCMIConfigParmasReq_T;
  38. typedef struct
  39. {
  40. INT8U CompletionCode;
  41. INT8U GroupExtnID;
  42. INT8U DCMI_Ver_Maj;
  43. INT8U DCMI_Ver_Min;
  44. INT8U Revision;
  45. }PACKED CCRevConfig_T;
  46. typedef struct
  47. {
  48. CCRevConfig_T CCRevision;
  49. DCMIConfig_T Config;
  50. }PACKED GetDCMIConfigParmasRes_T;
  51. typedef struct
  52. {
  53. INT8U GroupExtnID;
  54. INT8U ParamSelector;
  55. INT8U SetSelector;
  56. DCMIConfig_T Config;
  57. }PACKED SetDCMIConfigParmasReq_T;
  58. typedef struct
  59. {
  60. INT8U CompletionCode;
  61. INT8U GroupExtnID;
  62. }PACKED SetDCMIConfigParmasRes_T;
  63. #define DCMI_PARAM_DHCP_ACTIVATE 0x01
  64. #define DCMI_PARAM_DHCP_DISCOVERY 0x02
  65. #define DCMI_PARAM_DHCP_TIMING1 0x03
  66. #define DCMI_PARAM_DHCP_TIMING2 0x04
  67. #define DCMI_PARAM_DHCP_TIMING3 0x05
  68. #define DCMI_CONFIG_REVISION 0x01
  69. #define DHCP_ACTIVATE 0x01
  70. #define DHCP_DISCOVERY_RESERVED 0x7C
  71. #define DCMIDHCPCONFIG_FILE "/conf/dcmi.conf"
  72. #define DHCP_DISCOVERY "discovery"
  73. #define DHCP_TIMING1 "timing1"
  74. #define DHCP_TIMING2 "timing2"
  75. #define DHCP_TIMING3 "timing3"
  76. #define NETWORK_RESTART "/etc/init.d/networking restart"
  77. extern int GetDCMIConfigParameters(_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  78. extern int SetDCMIConfigParameters(_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  79. #endif /* DCMICONFIG_H */