linux/drivers/staging/vt6656/desc.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
 * All rights reserved.
 *
 * Purpose:The header file of descriptor
 *
 * Revision History:
 *
 * Author: Tevin Chen
 *
 * Date: May 21, 1996
 *
 */

#ifndef __DESC_H__
#define __DESC_H__

#include <linux/bits.h>
#include <linux/types.h>
#include <linux/mm.h>

/* max transmit or receive buffer size */
#define CB_MAX_BUF_SIZE

#define MAX_TOTAL_SIZE_WITH_ALL_HEADERS

#define MAX_INTERRUPT_SIZE

#define CB_MAX_RX_DESC
#define CB_MIN_RX_DESC
#define CB_MAX_TX_DESC
#define CB_MIN_TX_DESC

/*
 * bits in the RSR register
 */
#define RSR_ADDRBROAD
#define RSR_ADDRMULTI
#define RSR_ADDRUNI
#define RSR_IVLDTYP
#define RSR_IVLDLEN
#define RSR_BSSIDOK
#define RSR_CRCOK
#define RSR_BCNSSIDOK
#define RSR_ADDROK

/*
 * bits in the new RSR register
 */
#define NEWRSR_DECRYPTOK
#define NEWRSR_CFPIND
#define NEWRSR_HWUTSF
#define NEWRSR_BCNHITAID
#define NEWRSR_BCNHITAID0

/*
 * bits in the TSR register
 */
#define TSR_RETRYTMO
#define TSR_TMO
#define TSR_ACKDATA
#define TSR_VALID

#define FIFOCTL_AUTO_FB_1
#define FIFOCTL_AUTO_FB_0
#define FIFOCTL_GRPACK
#define FIFOCTL_11GA
#define FIFOCTL_11GB
#define FIFOCTL_11B
#define FIFOCTL_11A
#define FIFOCTL_RTS
#define FIFOCTL_ISDMA0
#define FIFOCTL_GENINT
#define FIFOCTL_TMOEN
#define FIFOCTL_LRETRY
#define FIFOCTL_CRCDIS
#define FIFOCTL_NEEDACK
#define FIFOCTL_LHEAD

/* WMAC definition Frag Control */
#define FRAGCTL_AES
#define FRAGCTL_TKIP
#define FRAGCTL_LEGACY
#define FRAGCTL_NONENCRYPT
#define FRAGCTL_ENDFRAG
#define FRAGCTL_MIDFRAG
#define FRAGCTL_STAFRAG
#define FRAGCTL_NONFRAG

#endif /* __DESC_H__ */