OSDN Git Service

staging: brcm80211: Purge unused lines from bcmdefs.h/wlc_pub.h
authorBrett Rudley <brudley@broadcom.com>
Tue, 26 Oct 2010 16:17:04 +0000 (09:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 9 Nov 2010 23:33:16 +0000 (15:33 -0800)
Purge unused lines

Signed-off-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/include/bcmdefs.h
drivers/staging/brcm80211/sys/wlc_pub.h

index dc52e9d..ae6a65a 100644 (file)
@@ -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 */
 #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,31 +118,11 @@ 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
+#endif /* BCMDBG_ASSERT */
+#endif /* BCMDBG */
 
 /* Macros for doing definition and get/set of bitfields
  * Usage example, e.g. a three-bit field (bits 4-6):
@@ -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
 
index a6a8c33..a392436 100644 (file)
@@ -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);