123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- #ifndef _WMIX_H_
- #define _WMIX_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct {
- A_UINT32 commandId;
- } POSTPACK WMIX_CMD_HDR;
- typedef enum {
- WMIX_DSETOPEN_REPLY_CMDID = 0x2001,
- WMIX_DSETDATA_REPLY_CMDID,
- WMIX_HB_CHALLENGE_RESP_CMDID,
- WMIX_DBGLOG_CFG_MODULE_CMDID,
- WMIX_PROF_CFG_CMDID,
- WMIX_PROF_ADDR_SET_CMDID,
- WMIX_PROF_START_CMDID,
- WMIX_PROF_STOP_CMDID,
- WMIX_PROF_COUNT_GET_CMDID,
- } WMIX_COMMAND_ID;
- typedef enum {
- WMIX_DSETOPENREQ_EVENTID = 0x3001,
- WMIX_DSETCLOSE_EVENTID,
- WMIX_DSETDATAREQ_EVENTID,
- WMIX_HB_CHALLENGE_RESP_EVENTID,
- WMIX_DBGLOG_EVENTID,
- WMIX_PROF_COUNT_EVENTID,
- WMIX_PKTLOG_EVENTID,
- } WMIX_EVENT_ID;
- typedef struct {
- A_UINT32 dset_id;
- A_UINT32 targ_dset_handle;
- A_UINT32 targ_reply_fn;
- A_UINT32 targ_reply_arg;
- } POSTPACK WMIX_DSETOPENREQ_EVENT;
- typedef struct {
- A_UINT32 access_cookie;
- } POSTPACK WMIX_DSETCLOSE_EVENT;
- typedef struct {
- A_UINT32 access_cookie;
- A_UINT32 offset;
- A_UINT32 length;
- A_UINT32 targ_buf;
- A_UINT32 targ_reply_fn;
- A_UINT32 targ_reply_arg;
- } WMIX_DSETDATAREQ_EVENT;
- typedef struct {
- A_UINT32 status;
- A_UINT32 targ_dset_handle;
- A_UINT32 targ_reply_fn;
- A_UINT32 targ_reply_arg;
- A_UINT32 access_cookie;
- A_UINT32 size;
- A_UINT32 version;
- } WMIX_DSETOPEN_REPLY_CMD;
- typedef struct {
- A_UINT32 status;
- A_UINT32 targ_buf;
- A_UINT32 targ_reply_fn;
- A_UINT32 targ_reply_arg;
- A_UINT32 length;
- A_UINT8 buf[1];
- } WMIX_DSETDATA_REPLY_CMD;
- typedef struct {
- A_UINT32 cookie;
- A_UINT32 source;
- } WMIX_HB_CHALLENGE_RESP_CMD;
- #define WMIX_HB_CHALLENGE_RESP_EVENT WMIX_HB_CHALLENGE_RESP_CMD
- typedef struct {
- A_UINT32 period;
- A_UINT32 nbins;
- } WMIX_PROF_CFG_CMD;
- typedef struct {
- A_UINT32 addr;
- } WMIX_PROF_ADDR_SET_CMD;
- typedef struct {
- A_UINT32 addr;
- A_UINT32 count;
- } WMIX_PROF_COUNT_EVENT;
- #ifdef __cplusplus
- }
- #endif
- #endif
|