SSIAccess.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /****************************************************************
  2. ****************************************************************
  3. ** **
  4. ** (C)Copyright 2011, American Megatrends Inc. **
  5. ** **
  6. ** All Rights Reserved. **
  7. ** **
  8. ** 5555 Oakbrook Pkwy Suite 200, Norcross, **
  9. ** **
  10. ** Georgia - 30093, USA. Phone-(770)-246-8600. **
  11. ** **
  12. ****************************************************************
  13. ****************************************************************
  14. ****************************************************************
  15. *
  16. * SSIAccess.h
  17. * SSI Handle Access methods
  18. *
  19. * Author: Kevin Cheng <kevincheng@ami.com.tw>
  20. *
  21. ****************************************************************/
  22. #ifndef _H_SSIACCESS_
  23. #define _H_SSIACCESS_
  24. #include "PDKAccess.h"
  25. #define SSICB_LIB "/usr/local/lib/libssicb.so"
  26. #define DEFAULT_MAX_POWER_DRAW 425
  27. #define DEFAULT_POWER_MULTIPLIER 50
  28. typedef enum
  29. {
  30. SSICB_EVENTFWD = 0,
  31. SSICB_OPSTATEMACH,
  32. SSICB_QUEUECOND,
  33. SSICB_GETFRUOBJ,
  34. SSICB_GETCURRSTAT,
  35. SSICB_SERVSESSTIMER,
  36. MAX_SSI_HANDLE
  37. } SSI_Handles;
  38. typedef struct
  39. {
  40. INT16U SSIHandleNum;
  41. INT8U SSIHandleName[255];
  42. } SSI_Init;
  43. typedef struct
  44. {
  45. void *func;
  46. } SSIHandle_func;
  47. extern pfunc g_SSIHandle[MAX_SSI_HANDLE];
  48. /*---------------------------------------------------------------------------
  49. * @fn InitSSIHandles
  50. *
  51. * @brief Initializes handles for SSI specified functions.
  52. *
  53. * @return 0 - if success.
  54. * -1 - if error.
  55. *---------------------------------------------------------------------------*/
  56. extern int InitSSIHandles();
  57. extern int GetPowerLevel();
  58. #endif //_H_SSIACCESS_