2022-06-08 23:46:35 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
|
|
|
|
/* Copyright(c) 2007 - 2011 Realtek Corporation. */
|
|
|
|
|
2013-05-19 04:28:07 +00:00
|
|
|
#ifndef __RTL8188E_RECV_H__
|
|
|
|
#define __RTL8188E_RECV_H__
|
|
|
|
|
|
|
|
#define TX_RPT1_PKT_LEN 8
|
|
|
|
|
2013-05-26 21:20:54 +00:00
|
|
|
#define NR_PREALLOC_RECV_SKB (8)
|
|
|
|
|
2013-07-21 15:55:50 +00:00
|
|
|
#define NR_RECVBUFF (4)
|
2013-05-26 21:20:54 +00:00
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
#define MAX_RECVBUF_SZ (15360) /* 15k < 16k */
|
2013-05-26 21:20:54 +00:00
|
|
|
|
|
|
|
struct phy_stat {
|
|
|
|
unsigned int phydw0;
|
|
|
|
unsigned int phydw1;
|
|
|
|
unsigned int phydw2;
|
|
|
|
unsigned int phydw3;
|
|
|
|
unsigned int phydw4;
|
|
|
|
unsigned int phydw5;
|
|
|
|
unsigned int phydw6;
|
|
|
|
unsigned int phydw7;
|
|
|
|
};
|
|
|
|
|
2013-08-12 04:36:23 +00:00
|
|
|
/* Rx smooth factor */
|
2013-05-26 21:20:54 +00:00
|
|
|
#define Rx_Smooth_Factor (20)
|
|
|
|
|
2013-07-23 16:12:23 +00:00
|
|
|
enum rx_packet_type {
|
2013-08-12 04:36:23 +00:00
|
|
|
NORMAL_RX,/* Normal rx packet */
|
|
|
|
TX_REPORT1,/* CCX */
|
|
|
|
TX_REPORT2,/* TX RPT */
|
|
|
|
HIS_REPORT,/* USB HISR RPT */
|
2013-07-23 16:12:23 +00:00
|
|
|
};
|
2013-05-19 04:28:07 +00:00
|
|
|
|
2013-08-15 03:03:17 +00:00
|
|
|
s32 rtl8188eu_init_recv_priv(struct adapter *padapter);
|
2013-07-27 01:08:39 +00:00
|
|
|
void rtl8188eu_free_recv_priv(struct adapter * padapter);
|
2022-06-08 23:46:35 +00:00
|
|
|
void rtl8188eu_recv_tasklet(unsigned long priv);
|
2014-12-13 16:35:48 +00:00
|
|
|
void update_recvframe_phyinfo_88e(struct recv_frame *fra, struct phy_stat *phy);
|
|
|
|
void update_recvframe_attrib_88e(struct recv_frame *fra, struct recv_stat *stat);
|
2013-05-19 04:28:07 +00:00
|
|
|
|
|
|
|
#endif
|