Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / wlan / include / htc_services.h
1 /*
2  * Copyright (c) 2007 Atheros Communications Inc.
3  * All rights reserved.
4  */
5
6 #ifndef __HTC_SERVICES_H__
7 #define __HTC_SERVICES_H__
8
9 /* Current service IDs */
10
11 typedef enum {
12         RSVD_SERVICE_GROUP  = 0,
13         WMI_SERVICE_GROUP   = 1, 
14     
15         HTC_TEST_GROUP = 254,
16         HTC_SERVICE_GROUP_LAST = 255
17 } HTC_SERVICE_GROUP_IDS;
18
19 #define MAKE_SERVICE_ID(group,index) \
20             (int)(((int)group << 8) | (int)(index))
21
22 /* NOTE: service ID of 0x0000 is reserved and should never be used */
23 #define HTC_CTRL_RSVD_SVC MAKE_SERVICE_ID(RSVD_SERVICE_GROUP,1)
24 #define HTC_LOOPBACK_RSVD_SVC MAKE_SERVICE_ID(RSVD_SERVICE_GROUP,2)
25 #define WMI_CONTROL_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,0)
26
27 #define WMI_BEACON_SVC    MAKE_SERVICE_ID(WMI_SERVICE_GROUP,1) 
28 #define WMI_CAB_SVC       MAKE_SERVICE_ID(WMI_SERVICE_GROUP,2) 
29
30 #define WMI_UAPSD_SVC     MAKE_SERVICE_ID(WMI_SERVICE_GROUP,3)
31 #define WMI_MGMT_SVC      MAKE_SERVICE_ID(WMI_SERVICE_GROUP,4)
32
33 #define WMI_DATA_VO_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,5)
34 #define WMI_DATA_VI_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,6)
35
36 #define WMI_DATA_BE_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,7)
37 #define WMI_DATA_BK_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,8)
38
39 /* raw stream service (i.e. flash, tcmd, calibration apps) */
40 #define HTC_RAW_STREAMS_SVC MAKE_SERVICE_ID(HTC_TEST_GROUP,0)
41
42 #endif /*HTC_SERVICES_H_*/