linux/drivers/net/wireless/broadcom/brcm80211/include/defs.h

// SPDX-License-Identifier: ISC
/*
 * Copyright (c) 2010 Broadcom Corporation
 */

#ifndef	_BRCM_DEFS_H_
#define _BRCM_DEFS_H_

#include <linux/types.h>

#define SI_BUS
#define PCI_BUS
#define PCMCIA_BUS
#define SDIO_BUS
#define JTAG_BUS
#define USB_BUS
#define SPI_BUS

#define OFF
#define ON
#define AUTO

/*
 * Priority definitions according 802.1D
 */
#define PRIO_8021D_NONE
#define PRIO_8021D_BK
#define PRIO_8021D_BE
#define PRIO_8021D_EE
#define PRIO_8021D_CL
#define PRIO_8021D_VI
#define PRIO_8021D_VO
#define PRIO_8021D_NC

#define MAXPRIO
#define NUMPRIO

#define WL_NUMRATES

#define BRCM_CNTRY_BUF_SZ

#define BRCM_SET_CHANNEL
#define BRCM_SET_SRL
#define BRCM_SET_LRL
#define BRCM_SET_BCNPRD

#define BRCM_GET_CURR_RATESET
#define BRCM_GET_PHYLIST

/* Bit masks for radio disabled status - returned by WL_GET_RADIO */

#define WL_RADIO_SW_DISABLE
#define WL_RADIO_HW_DISABLE
/* some countries don't support any channel */
#define WL_RADIO_COUNTRY_DISABLE

/* Override bit for SET_TXPWR.  if set, ignore other level limits */
#define WL_TXPWR_OVERRIDE

/* band types */
#define BRCM_BAND_AUTO
#define BRCM_BAND_5G
#define BRCM_BAND_2G
#define BRCM_BAND_ALL

/* Debug levels */
#define BRCM_DL_INFO
#define BRCM_DL_MAC80211
#define BRCM_DL_RX
#define BRCM_DL_TX
#define BRCM_DL_INT
#define BRCM_DL_DMA
#define BRCM_DL_HT

/* Values for PM */
#define PM_OFF
#define PM_MAX
#define PM_FAST

/*
 * Sonics Configuration Space Registers.
 */

/* core sbconfig regs are top 256bytes of regs */
#define SBCONFIGOFF

/* cpp contortions to concatenate w/arg prescan */
#ifndef	PAD
#define _PADLINE(line)
#define _XSTR(line)
#define PAD
#endif

#endif				/* _BRCM_DEFS_H_ */