123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- #ifndef __HTC_SERVICES_H__
- #define __HTC_SERVICES_H__
- typedef enum {
- RSVD_SERVICE_GROUP = 0,
- WMI_SERVICE_GROUP = 1,
- NMI_SERVICE_GROUP = 2,
- HTT_SERVICE_GROUP = 3,
- CFG_NV_SERVICE_GROUP = 4,
- WDI_IPA_SERVICE_GROUP = 5,
- PACKET_LOG_SERVICE_GROUP = 6,
- HTC_TEST_GROUP = 254,
- HTC_SERVICE_GROUP_LAST = 255
- }HTC_SERVICE_GROUP_IDS
- #define MAKE_SERVICE_ID(group,index) \
- (int)(((int)group << 8) | (int)(index))
- #define HTC_CTRL_RSVD_SVC MAKE_SERVICE_ID(RSVD_SERVICE_GROUP,1)
- #define WMI_CONTROL_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,0)
- #define WMI_DATA_BE_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,1)
- #define WMI_DATA_BK_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,2)
- #define WMI_DATA_VI_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,3)
- #define WMI_DATA_VO_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,4)
- #define WMI_CONTROL_SVC_WMAC1 MAKE_SERVICE_ID(WMI_SERVICE_GROUP,5)
- #define WMI_CONTROL_SVC_WMAC2 MAKE_SERVICE_ID(WMI_SERVICE_GROUP,6)
- #define WMI_CONTROL_DIAG_SVC MAKE_SERVICE_ID(WMI_SERVICE_GROUP,7)
- #define WMI_MAX_SERVICES 8
- #define NMI_CONTROL_SVC MAKE_SERVICE_ID(NMI_SERVICE_GROUP,0)
- #define NMI_DATA_SVC MAKE_SERVICE_ID(NMI_SERVICE_GROUP,1)
- #define HTT_DATA_MSG_SVC MAKE_SERVICE_ID(HTT_SERVICE_GROUP,0)
- #define HTT_DATA2_MSG_SVC MAKE_SERVICE_ID(HTT_SERVICE_GROUP,1)
- #define HTT_DATA3_MSG_SVC MAKE_SERVICE_ID(HTT_SERVICE_GROUP,2)
- #define HTC_RAW_STREAMS_SVC MAKE_SERVICE_ID(HTC_TEST_GROUP,0)
- #define CFG_NV_SVC MAKE_SERVICE_ID(CFG_NV_SERVICE_GROUP,0)
- #define WDI_IPA_TX_SVC MAKE_SERVICE_ID(WDI_IPA_SERVICE_GROUP,0)
- #define PACKET_LOG_SVC MAKE_SERVICE_ID(PACKET_LOG_SERVICE_GROUP,0)
- typedef A_UINT32 PIPEDIR
- #define PIPEDIR_NONE 0
- #define PIPEDIR_IN 1
- #define PIPEDIR_OUT 2
- #define PIPEDIR_INOUT 3
- #define PIPEDIR_INOUT_T2T PIPEDIR_INOUT
- #define PIPEDIR_INOUT_H2H 4
- #define PIPEDIR_MATCH(d1, d2) (((PIPEDIR)(d1) & (PIPEDIR)(d2)) != 0)
- #define INVALID_PIPE_NO (-1)
- struct service_to_pipe {
- A_UINT32 service_id
- A_UINT32 pipedir
- A_UINT32 pipenum
- }
- #endif
|