linux/drivers/staging/rtl8712/rtl8712_recv.h

/* SPDX-License-Identifier: GPL-2.0 */
/******************************************************************************
 *
 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
 *
 * Modifications for inclusion into the Linux staging tree are
 * Copyright(c) 2010 Larry Finger. All rights reserved.
 *
 * Contact information:
 * WLAN FAE <[email protected]>
 * Larry Finger <[email protected]>
 *
 ******************************************************************************/
#ifndef _RTL8712_RECV_H_
#define _RTL8712_RECV_H_

#include "osdep_service.h"
#include "drv_types.h"

/* Realtek's v2.6.6 reduced this to 4. However, under heavy network and CPU
 * loads, even 8 receive buffers might not be enough; cutting it to 4 seemed
 * unwise.
 */
#define NR_RECVBUFF

#define NR_PREALLOC_RECV_SKB
#define RXDESC_SIZE
#define RXDESC_OFFSET
#define RECV_BLK_SZ
#define RECV_BLK_CNT
#define RECV_BLK_TH
#define MAX_RECVBUF_SZ
#define RECVBUFF_ALIGN_SZ
#define RSVD_ROOM_SZ
/*These definition is used for Rx packet reordering.*/
#define SN_LESS(a, b)
#define SN_EQUAL(a, b)
#define REORDER_WAIT_TIME

struct recv_stat {};

struct phy_cck_rx_status {};

struct phy_stat {};

#define PHY_STAT_GAIN_TRSW_SHT
#define PHY_STAT_PWDB_ALL_SHT
#define PHY_STAT_CFOSHO_SHT
#define PHY_STAT_CCK_AGC_RPT_SHT
#define PHY_STAT_CFOTAIL_SHT
#define PHY_STAT_RXEVM_SHT
#define PHY_STAT_RXSNR_SHT
#define PHY_STAT_PDSNR_SHT
#define PHY_STAT_CSI_CURRENT_SHT
#define PHY_STAT_CSI_TARGET_SHT
#define PHY_STAT_SIGEVM_SHT
#define PHY_STAT_MAX_EX_PWR_SHT

recvstat;

struct recv_buf {};

/*
 *	head  ----->
 *		data  ----->
 *			payload
 *		tail  ----->
 *	end   ----->
 *	len = (unsigned int )(tail - data);
 */
struct recv_frame_hdr {};

recv_frame;

void 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);

#endif