brintos

brintos / linux-shallow public Read only

0
0
Text · 2.1 KiB · 9e7e611 Raw
95 lines · c
1// SPDX-License-Identifier: ISC2/*3 * Copyright (c) 2010 Broadcom Corporation4 */5 6#ifndef	_BRCM_DEFS_H_7#define	_BRCM_DEFS_H_8 9#include <linux/types.h>10 11#define	SI_BUS			012#define	PCI_BUS			113#define	PCMCIA_BUS		214#define SDIO_BUS		315#define JTAG_BUS		416#define USB_BUS			517#define SPI_BUS			618 19#define	OFF	020#define	ON	1		/* ON = 1 */21#define	AUTO	(-1)		/* Auto = -1 */22 23/*24 * Priority definitions according 802.1D25 */26#define	PRIO_8021D_NONE		227#define	PRIO_8021D_BK		128#define	PRIO_8021D_BE		029#define	PRIO_8021D_EE		330#define	PRIO_8021D_CL		431#define	PRIO_8021D_VI		532#define	PRIO_8021D_VO		633#define	PRIO_8021D_NC		734 35#define	MAXPRIO			736#define NUMPRIO			(MAXPRIO + 1)37 38#define WL_NUMRATES		16	/* max # of rates in a rateset */39 40#define BRCM_CNTRY_BUF_SZ	4	/* Country string is 3 bytes + NUL */41 42#define BRCM_SET_CHANNEL	3043#define BRCM_SET_SRL		3244#define BRCM_SET_LRL		3445#define BRCM_SET_BCNPRD		7646 47#define BRCM_GET_CURR_RATESET	114	/* current rateset */48#define BRCM_GET_PHYLIST	18049 50/* Bit masks for radio disabled status - returned by WL_GET_RADIO */51 52#define WL_RADIO_SW_DISABLE		(1<<0)53#define WL_RADIO_HW_DISABLE		(1<<1)54/* some countries don't support any channel */55#define WL_RADIO_COUNTRY_DISABLE	(1<<3)56 57/* Override bit for SET_TXPWR.  if set, ignore other level limits */58#define WL_TXPWR_OVERRIDE	(1U<<31)59 60/* band types */61#define	BRCM_BAND_AUTO		0	/* auto-select */62#define	BRCM_BAND_5G		1	/* 5 Ghz */63#define	BRCM_BAND_2G		2	/* 2.4 Ghz */64#define	BRCM_BAND_ALL		3	/* all bands */65 66/* Debug levels */67#define BRCM_DL_INFO		0x0000000168#define BRCM_DL_MAC80211	0x0000000269#define BRCM_DL_RX		0x0000000470#define BRCM_DL_TX		0x0000000871#define BRCM_DL_INT		0x0000001072#define BRCM_DL_DMA		0x0000002073#define BRCM_DL_HT		0x0000004074 75/* Values for PM */76#define PM_OFF	077#define PM_MAX	178#define PM_FAST 279 80/*81 * Sonics Configuration Space Registers.82 */83 84/* core sbconfig regs are top 256bytes of regs */85#define	SBCONFIGOFF		0xf0086 87/* cpp contortions to concatenate w/arg prescan */88#ifndef	PAD89#define	_PADLINE(line)	pad ## line90#define	_XSTR(line)	_PADLINE(line)91#define	PAD		_XSTR(__LINE__)92#endif93 94#endif				/* _BRCM_DEFS_H_ */95