Path: blob/main/sys/contrib/dev/broadcom/brcm80211/include/defs.h
178665 views
// SPDX-License-Identifier: ISC1/*2* Copyright (c) 2010 Broadcom Corporation3*/45#ifndef _BRCM_DEFS_H_6#define _BRCM_DEFS_H_78#include <linux/types.h>910#define SI_BUS 011#define PCI_BUS 112#define PCMCIA_BUS 213#define SDIO_BUS 314#define JTAG_BUS 415#define USB_BUS 516#define SPI_BUS 61718#define OFF 019#define ON 1 /* ON = 1 */20#define AUTO (-1) /* Auto = -1 */2122/*23* Priority definitions according 802.1D24*/25#define PRIO_8021D_NONE 226#define PRIO_8021D_BK 127#define PRIO_8021D_BE 028#define PRIO_8021D_EE 329#define PRIO_8021D_CL 430#define PRIO_8021D_VI 531#define PRIO_8021D_VO 632#define PRIO_8021D_NC 73334#define MAXPRIO 735#define NUMPRIO (MAXPRIO + 1)3637#define WL_NUMRATES 16 /* max # of rates in a rateset */3839#define BRCM_CNTRY_BUF_SZ 4 /* Country string is 3 bytes + NUL */4041#define BRCM_SET_CHANNEL 3042#define BRCM_SET_SRL 3243#define BRCM_SET_LRL 3444#define BRCM_SET_BCNPRD 764546#define BRCM_GET_CURR_RATESET 114 /* current rateset */47#define BRCM_GET_PHYLIST 1804849/* Bit masks for radio disabled status - returned by WL_GET_RADIO */5051#define WL_RADIO_SW_DISABLE (1<<0)52#define WL_RADIO_HW_DISABLE (1<<1)53/* some countries don't support any channel */54#define WL_RADIO_COUNTRY_DISABLE (1<<3)5556/* Override bit for SET_TXPWR. if set, ignore other level limits */57#define WL_TXPWR_OVERRIDE (1U<<31)5859/* band types */60#define BRCM_BAND_AUTO 0 /* auto-select */61#define BRCM_BAND_5G 1 /* 5 Ghz */62#define BRCM_BAND_2G 2 /* 2.4 Ghz */63#define BRCM_BAND_ALL 3 /* all bands */6465/* Debug levels */66#define BRCM_DL_INFO 0x0000000167#define BRCM_DL_MAC80211 0x0000000268#define BRCM_DL_RX 0x0000000469#define BRCM_DL_TX 0x0000000870#define BRCM_DL_INT 0x0000001071#define BRCM_DL_DMA 0x0000002072#define BRCM_DL_HT 0x000000407374/* Values for PM */75#define PM_OFF 076#define PM_MAX 177#define PM_FAST 27879/*80* Sonics Configuration Space Registers.81*/8283/* core sbconfig regs are top 256bytes of regs */84#define SBCONFIGOFF 0xf008586/* cpp contortions to concatenate w/arg prescan */87#ifndef PAD88#define _PADLINE(line) pad ## line89#define _XSTR(line) _PADLINE(line)90#define PAD _XSTR(__LINE__)91#endif9293#endif /* _BRCM_DEFS_H_ */949596