staging: brcm80211: Purge unused lines from bcmdefs.h/wlc_pub.h
Purge unused lines Signed-off-by: Brett Rudley <brudley@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e38b67c7cd
commit
53b6b34dfa
@ -42,9 +42,6 @@
|
||||
#define BCMFASTPATH
|
||||
#endif
|
||||
|
||||
/* Put some library data/code into ROM to reduce RAM requirements */
|
||||
#define BCMROMFN(_fn) _fn
|
||||
|
||||
/* Bus types */
|
||||
#define SI_BUS 0 /* SOC Interconnect */
|
||||
#define PCI_BUS 1 /* PCI target */
|
||||
@ -54,35 +51,10 @@
|
||||
#define SPI_BUS 6 /* gSPI target */
|
||||
#define RPC_BUS 7 /* RPC target */
|
||||
|
||||
/* Allows size optimization for single-bus image */
|
||||
#ifdef BCMBUSTYPE
|
||||
#define BUSTYPE(bus) (BCMBUSTYPE)
|
||||
#else
|
||||
#define BUSTYPE(bus) (bus)
|
||||
#endif
|
||||
|
||||
/* Allows size optimization for single-backplane image */
|
||||
#ifdef BCMCHIPTYPE
|
||||
#define CHIPTYPE(bus) (BCMCHIPTYPE)
|
||||
#else
|
||||
#define CHIPTYPE(bus) (bus)
|
||||
#endif
|
||||
|
||||
/* Allows size optimization for SPROM support */
|
||||
#define SPROMBUS (PCI_BUS)
|
||||
|
||||
/* Allows size optimization for single-chip image */
|
||||
#ifdef BCMCHIPID
|
||||
#define CHIPID(chip) (BCMCHIPID)
|
||||
#else
|
||||
#define CHIPID(chip) (chip)
|
||||
#endif
|
||||
|
||||
#ifdef BCMCHIPREV
|
||||
#define CHIPREV(rev) (BCMCHIPREV)
|
||||
#else
|
||||
#define CHIPREV(rev) (rev)
|
||||
#endif
|
||||
|
||||
/* Defines for DMA Address Width - Shared between OSL and HNDDMA */
|
||||
#define DMADDR_MASK_32 0x0 /* Address mask for 32-bits */
|
||||
@ -146,32 +118,12 @@ typedef struct {
|
||||
|
||||
#define BCMEXTRAHDROOM 172
|
||||
|
||||
/* Headroom required for dongle-to-host communication. Packets allocated
|
||||
* locally in the dongle (e.g. for CDC ioctls or RNDIS messages) should
|
||||
* leave this much room in front for low-level message headers which may
|
||||
* be needed to get across the dongle bus to the host. (These messages
|
||||
* don't go over the network, so room for the full WL header above would
|
||||
* be a waste.).
|
||||
*/
|
||||
#define BCMDONGLEHDRSZ 12
|
||||
#define BCMDONGLEPADSZ 16
|
||||
|
||||
#define BCMDONGLEOVERHEAD (BCMDONGLEHDRSZ + BCMDONGLEPADSZ)
|
||||
|
||||
#ifdef BCMDBG
|
||||
|
||||
#define BCMDBG_ERR
|
||||
|
||||
#ifndef BCMDBG_ASSERT
|
||||
#define BCMDBG_ASSERT
|
||||
#endif /* BCMDBG_ASSERT */
|
||||
|
||||
#endif /* BCMDBG */
|
||||
|
||||
#if defined(BCMDBG_ASSERT)
|
||||
#define BCMASSERT_SUPPORT
|
||||
#endif
|
||||
|
||||
/* Macros for doing definition and get/set of bitfields
|
||||
* Usage example, e.g. a three-bit field (bits 4-6):
|
||||
* #define <NAME>_M BITFIELD_MASK(3)
|
||||
@ -190,10 +142,6 @@ typedef struct {
|
||||
(((val) & (~(field ## _M << field ## _S))) | \
|
||||
((unsigned)(bits) << field ## _S))
|
||||
|
||||
/* define BCMSMALL to remove misc features for memory-constrained environments */
|
||||
#define BCMSPACE
|
||||
#define bcmspace true /* if (bcmspace) code is retained */
|
||||
|
||||
/* Max. nvram variable table size */
|
||||
#define MAXSZ_NVRAM_VARS 4096
|
||||
|
||||
|
@ -437,9 +437,9 @@ struct wlc_if;
|
||||
#define EDCF_ENAB(pub) (WME_ENAB(pub))
|
||||
#define QOS_ENAB(pub) (WME_ENAB(pub) || N_ENAB(pub))
|
||||
|
||||
#define MONITOR_ENAB(wlc) (bcmspace && (wlc)->monitor)
|
||||
#define MONITOR_ENAB(wlc) ((wlc)->monitor)
|
||||
|
||||
#define PROMISC_ENAB(wlc) (bcmspace && (wlc)->promisc)
|
||||
#define PROMISC_ENAB(wlc) ((wlc)->promisc)
|
||||
|
||||
extern void wlc_pkttag_info_move(wlc_pub_t *pub, void *pkt_from, void *pkt_to);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user