OSDN Git Service

Use the kernel's atomic operations directly
[android-x86/external-modules-rtl8723au.git] / include / rtw_cmd.h
index d94e085..98ba219 100644 (file)
@@ -50,7 +50,7 @@
                u8      *rsp;
                u32     rspsz;
                //struct semaphore              cmd_sem;
-               _list   list;
+               struct list_head        list;
        };
 
        struct cmd_priv {
@@ -76,7 +76,7 @@
                u8      res;
                u8      *parmbuf;
                u32     evtsz;
-               _list   list;
+               struct list_head        list;
        };
 #endif
 
                u8      lbkevt_num;
                u8      *cmdevt_parm;
 #endif
-               ATOMIC_T event_seq;
+               atomic_t event_seq;
                u8      *evt_buf;       //shall be non-paged, and 4 bytes aligned
                u8      *evt_allocated_buf;
                u32     evt_done_cnt;
-#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
-               u8      *c2h_mem;
-               u8      *allocated_c2h_mem;
-#endif
-
        };
 
 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \
 do {\
-       _rtw_init_listhead(&pcmd->list);\
+       INIT_LIST_HEAD(&pcmd->list);\
        pcmd->cmdcode = code;\
        pcmd->parmbuf = (u8 *)(pparm);\
        pcmd->cmdsz = sizeof (*pparm);\
@@ -170,7 +165,6 @@ enum rtw_drvextra_cmd_id
        P2P_PS_WK_CID,
        P2P_PROTO_WK_CID,
        CHECK_HIQ_WK_CID,//for softap mode, check hi queue if empty
-       INTEl_WIDI_WK_CID,
        C2H_WK_CID,
        RTP_TIMER_CFG_WK_CID,
        MAX_WK_CID