linux/drivers/net/wireless/ti/wl1251/rx.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * This file is part of wl1251
 *
 * Copyright (c) 1998-2007 Texas Instruments Incorporated
 * Copyright (C) 2008 Nokia Corporation
 */

#ifndef __WL1251_RX_H__
#define __WL1251_RX_H__

#include <linux/bitops.h>

#include "wl1251.h"

/*
 * RX PATH
 *
 * The Rx path uses a double buffer and an rx_contro structure, each located
 * at a fixed address in the device memory. The host keeps track of which
 * buffer is available and alternates between them on a per packet basis.
 * The size of each of the two buffers is large enough to hold the longest
 * 802.3 packet.
 * The RX path goes like that:
 * 1) The target generates an interrupt each time a new packet is received.
 *   There are 2 RX interrupts, one for each buffer.
 * 2) The host reads the received packet from one of the double buffers.
 * 3) The host triggers a target interrupt.
 * 4) The target prepares the next RX packet.
 */

#define WL1251_RX_MAX_RSSI
#define WL1251_RX_MIN_RSSI

#define WL1251_RX_ALIGN_TO
#define WL1251_RX_ALIGN(len)

#define SHORT_PREAMBLE_BIT
#define OFDM_RATE_BIT
#define PBCC_RATE_BIT

#define PLCP_HEADER_LENGTH
#define RX_DESC_PACKETID_SHIFT
#define RX_MAX_PACKET_ID

#define RX_DESC_VALID_FCS
#define RX_DESC_MATCH_RXADDR1
#define RX_DESC_MCAST
#define RX_DESC_STAINTIM
#define RX_DESC_VIRTUAL_BM
#define RX_DESC_BCAST
#define RX_DESC_MATCH_SSID
#define RX_DESC_MATCH_BSSID
#define RX_DESC_ENCRYPTION_MASK
#define RX_DESC_MEASURMENT
#define RX_DESC_SEQNUM_MASK
#define RX_DESC_MIC_FAIL
#define RX_DESC_DECRYPT_FAIL

struct wl1251_rx_descriptor {} __packed;

void wl1251_rx(struct wl1251 *wl);

#endif