Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rtl8712_recv.h File Reference
#include "osdep_service.h"
#include "drv_types.h"

Go to the source code of this file.

Data Structures

struct  recv_stat
 
struct  phy_cck_rx_status
 
struct  phy_stat
 
union  recvstat
 
struct  recv_buf
 
struct  recv_frame_hdr
 
union  recv_frame
 

Macros

#define NR_RECVBUFF   (8)
 
#define NR_PREALLOC_RECV_SKB   (8)
 
#define RXDESC_SIZE   24
 
#define RXDESC_OFFSET   RXDESC_SIZE
 
#define RECV_BLK_SZ   512
 
#define RECV_BLK_CNT   16
 
#define RECV_BLK_TH   RECV_BLK_CNT
 
#define MAX_RECVBUF_SZ   9100
 
#define RECVBUFF_ALIGN_SZ   512
 
#define RSVD_ROOM_SZ   (0)
 
#define SN_LESS(a, b)   (((a-b) & 0x800) != 0)
 
#define SN_EQUAL(a, b)   (a == b)
 
#define REORDER_WAIT_TIME   30 /* (ms)*/
 
#define PHY_STAT_GAIN_TRSW_SHT   0
 
#define PHY_STAT_PWDB_ALL_SHT   4
 
#define PHY_STAT_CFOSHO_SHT   5
 
#define PHY_STAT_CCK_AGC_RPT_SHT   5
 
#define PHY_STAT_CFOTAIL_SHT   9
 
#define PHY_STAT_RXEVM_SHT   13
 
#define PHY_STAT_RXSNR_SHT   15
 
#define PHY_STAT_PDSNR_SHT   19
 
#define PHY_STAT_CSI_CURRENT_SHT   21
 
#define PHY_STAT_CSI_TARGET_SHT   23
 
#define PHY_STAT_SIGEVM_SHT   25
 
#define PHY_STAT_MAX_EX_PWR_SHT   26
 

Functions

int r8712_init_recvbuf (struct _adapter *padapter, struct recv_buf *precvbuf)
 
void r8712_rxcmd_event_hdl (struct _adapter *padapter, void *prxcmdbuf)
 
s32 r8712_signal_scale_mapping (s32 cur_sig)
 
void r8712_reordering_ctrl_timeout_handler (void *pcontext)
 

Macro Definition Documentation

#define MAX_RECVBUF_SZ   9100

Definition at line 44 of file rtl8712_recv.h.

#define NR_PREALLOC_RECV_SKB   (8)

Definition at line 38 of file rtl8712_recv.h.

#define NR_RECVBUFF   (8)

Definition at line 36 of file rtl8712_recv.h.

#define PHY_STAT_CCK_AGC_RPT_SHT   5

Definition at line 83 of file rtl8712_recv.h.

#define PHY_STAT_CFOSHO_SHT   5

Definition at line 82 of file rtl8712_recv.h.

#define PHY_STAT_CFOTAIL_SHT   9

Definition at line 84 of file rtl8712_recv.h.

#define PHY_STAT_CSI_CURRENT_SHT   21

Definition at line 88 of file rtl8712_recv.h.

#define PHY_STAT_CSI_TARGET_SHT   23

Definition at line 89 of file rtl8712_recv.h.

#define PHY_STAT_GAIN_TRSW_SHT   0

Definition at line 80 of file rtl8712_recv.h.

#define PHY_STAT_MAX_EX_PWR_SHT   26

Definition at line 91 of file rtl8712_recv.h.

#define PHY_STAT_PDSNR_SHT   19

Definition at line 87 of file rtl8712_recv.h.

#define PHY_STAT_PWDB_ALL_SHT   4

Definition at line 81 of file rtl8712_recv.h.

#define PHY_STAT_RXEVM_SHT   13

Definition at line 85 of file rtl8712_recv.h.

#define PHY_STAT_RXSNR_SHT   15

Definition at line 86 of file rtl8712_recv.h.

#define PHY_STAT_SIGEVM_SHT   25

Definition at line 90 of file rtl8712_recv.h.

#define RECV_BLK_CNT   16

Definition at line 42 of file rtl8712_recv.h.

#define RECV_BLK_SZ   512

Definition at line 41 of file rtl8712_recv.h.

#define RECV_BLK_TH   RECV_BLK_CNT

Definition at line 43 of file rtl8712_recv.h.

#define RECVBUFF_ALIGN_SZ   512

Definition at line 45 of file rtl8712_recv.h.

#define REORDER_WAIT_TIME   30 /* (ms)*/

Definition at line 50 of file rtl8712_recv.h.

#define RSVD_ROOM_SZ   (0)

Definition at line 46 of file rtl8712_recv.h.

#define RXDESC_OFFSET   RXDESC_SIZE

Definition at line 40 of file rtl8712_recv.h.

#define RXDESC_SIZE   24

Definition at line 39 of file rtl8712_recv.h.

#define SN_EQUAL (   a,
  b 
)    (a == b)

Definition at line 49 of file rtl8712_recv.h.

#define SN_LESS (   a,
  b 
)    (((a-b) & 0x800) != 0)

Definition at line 48 of file rtl8712_recv.h.

Function Documentation

int r8712_init_recvbuf ( struct _adapter padapter,
struct recv_buf precvbuf 
)

Definition at line 125 of file rtl8712_recv.c.

void r8712_reordering_ctrl_timeout_handler ( void pcontext)

Definition at line 641 of file rtl8712_recv.c.

void r8712_rxcmd_event_hdl ( struct _adapter padapter,
void prxcmdbuf 
)

Definition at line 444 of file rtl8712_recv.c.

s32 r8712_signal_scale_mapping ( s32  cur_sig)

Definition at line 714 of file rtl8712_recv.c.