htc_services.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //------------------------------------------------------------------------------
  2. // <copyright file="htc_services.h" company="Atheros">
  3. // Copyright (c) 2007 Atheros Corporation. All rights reserved.
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License version 2 as
  7. // published by the Free Software Foundation;
  8. //
  9. // Software distributed under the License is distributed on an "AS
  10. // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11. // implied. See the License for the specific language governing
  12. // rights and limitations under the License.
  13. //
  14. //
  15. //------------------------------------------------------------------------------
  16. //==============================================================================
  17. // Author(s): ="Atheros"
  18. //==============================================================================
  19. #ifndef __HTC_SERVICES_H__
  20. #define __HTC_SERVICES_H__
  21. /* Current service IDs */
  22. typedef enum {
  23. RSVD_SERVICE_GROUP = 0,
  24. WMI_SERVICE_GROUP = 1,
  25. HTC_TEST_GROUP = 254,
  26. HTC_SERVICE_GROUP_LAST = 255
  27. }HTC_SERVICE_GROUP_IDS;
  28. #define MAKE_SERVICE_ID(group,index) \
  29. (int)(((int)group << 8) | (int)(index))
  30. /* NOTE: service ID of 0x0000 is reserved and should never be used */
  31. #define HTC_CTRL_RSVD_SVC MAKE_SERVICE_ID(RSVD_SERVICE_GROUP,1)
  32. #define WMI_CONTROL_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,0)
  33. #define WMI_DATA_BE_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,1)
  34. #define WMI_DATA_BK_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,2)
  35. #define WMI_DATA_VI_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,3)
  36. #define WMI_DATA_VO_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,4)
  37. #define WMI_MAX_SERVICES 5
  38. /* raw stream service (i.e. flash, tcmd, calibration apps) */
  39. #define HTC_RAW_STREAMS_SVC MAKE_SERVICE_ID(HTC_TEST_GROUP,0)
  40. #endif /*HTC_SERVICES_H_*/