staging: brcm80211: stragglers not handled by unifdef
authorBrett Rudley <brudley@broadcom.com>
Fri, 19 Nov 2010 22:30:58 +0000 (14:30 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 20 Nov 2010 01:09:13 +0000 (17:09 -0800)
Part of BMAC removal.

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

index 11239fbba766d8b8e8db6686b2e8f89f12a837bc..d314dfb2b62f059308def956472468929d453dad 100644 (file)
@@ -61,15 +61,6 @@ extern uint osl_pci_slot(struct osl_info *osh);
                ((struct osl_pubinfo *)osh)->tx_ctx = _tx_ctx;  \
        } while (0)
 
-#if defined(BCMSDIO) && !defined(BRCM_FULLMAC)
-#define REGOPSSET(osh, rreg, wreg, ctx)                        \
-       do {                                            \
-               ((struct osl_pubinfo *)osh)->rreg_fn = rreg;    \
-               ((struct osl_pubinfo *)osh)->wreg_fn = wreg;    \
-               ((struct osl_pubinfo *)osh)->reg_ctx = ctx;     \
-       } while (0)
-#endif
-
 #define BUS_SWAP32(v)          (v)
 
 extern void *osl_dma_alloc_consistent(struct osl_info *osh, uint size,
@@ -321,32 +312,4 @@ osl_pkt_tonative(struct osl_pubinfo *osh, void *pkt)
 /* PKTSETSUMNEEDED and PKTSUMGOOD are not possible because skb->ip_summed is overloaded */
 #define PKTSHARED(skb)                  (((struct sk_buff *)(skb))->cloned)
 
-#if defined(BCMSDIO) && !defined(BRCM_FULLMAC)
-#define RPC_READ_REG(osh, r) (\
-       sizeof(*(r)) == sizeof(u8) ? osl_readb((osh), (volatile u8*)(r)) : \
-       sizeof(*(r)) == sizeof(u16) ? osl_readw((osh), (volatile u16*)(r)) : \
-       osl_readl((osh), (volatile u32*)(r)) \
-)
-#define RPC_WRITE_REG(osh, r, v) do { \
-       switch (sizeof(*(r))) { \
-       case sizeof(u8): \
-               osl_writeb((osh), (volatile u8*)(r), (u8)(v)); \
-               break; \
-       case sizeof(u16): \
-               osl_writew((osh), (volatile u16*)(r), (u16)(v)); \
-               break; \
-       case sizeof(u32): \
-               osl_writel((osh), (volatile u32*)(r), (u32)(v)); \
-               break; \
-       } \
-} while (0)
-
-extern u8 osl_readb(struct osl_info *osh, volatile u8 *r);
-extern u16 osl_readw(struct osl_info *osh, volatile u16 *r);
-extern u32 osl_readl(struct osl_info *osh, volatile u32 *r);
-extern void osl_writeb(struct osl_info *osh, volatile u8 *r, u8 v);
-extern void osl_writew(struct osl_info *osh, volatile u16 *r, u16 v);
-extern void osl_writel(struct osl_info *osh, volatile u32 *r, u32 v);
-#endif                         /* BCMSDIO */
-
 #endif                         /* _linux_osl_h_ */
index e2205c481a3fab77f78e6520ffacf760870237f0..4d0ce97055008c4701c881ae3aabe22cdd2e6efc 100644 (file)
@@ -26,11 +26,6 @@ struct osl_pubinfo {
        bool mmbus;             /* Bus supports memory-mapped registers */
        pktfree_cb_fn_t tx_fn;  /* Callback function for PKTFREE */
        void *tx_ctx;           /* Context to the callback function */
-#if defined(BCMSDIO) && !defined(BRCM_FULLMAC)
-       osl_rreg_fn_t rreg_fn;  /* Read Register function */
-       osl_wreg_fn_t wreg_fn;  /* Write Register function */
-       void *reg_ctx;          /* Context to the reg callback functions */
-#endif
 };
 
 /* osl handle type forward declaration */
index e56adb78f4fa14b8af52d7b58c5e256fda9622b7..3decb7d1a5e50136eb7b9da115bceac0d12477a2 100644 (file)
@@ -23,8 +23,6 @@
 
 #define IS_SINGLEBAND_5G(device)       0
 
-/* Keep WLC_HIGH_ONLY, WLC_SPLIT for USB extension later on */
-
 /* **** Core type/rev defaults **** */
 #define D11_DEFAULT    0x0fffffb0      /* Supported  D11 revs: 4, 5, 7-27
                                         * also need to update wlc.h MAXCOREREV
index 8c961e21002f2468183b0d3175428f11eaa9f024..006880049f37e2f62edb720a4a71ca221ae5a179 100644 (file)
@@ -815,7 +815,6 @@ struct antsel_info {
 #define WLC_IS_MATCH_SSID(wlc, ssid1, ssid2, len1, len2) \
        ((len1 == len2) && !bcmp(ssid1, ssid2, len1))
 
-/* API shared by both WLC_HIGH and WLC_LOW driver */
 extern void wlc_high_dpc(wlc_info_t *wlc, u32 macintstatus);
 extern void wlc_fatal_error(wlc_info_t *wlc);
 extern void wlc_bmac_rpc_watchdog(wlc_info_t *wlc);
index 2f4b899f0fe185bdea7bbd0ca2dc64d2321fcb90..4b1ab1d1c2ce5d81ac47049a7f47849b871e0f46 100644 (file)
@@ -610,10 +610,6 @@ extern void wlc_pmkid_event(struct wlc_bsscfg *cfg);
 #define BAND_2G_NAME           "2.4G"
 #define BAND_5G_NAME           "5G"
 
-#if defined(BCMSDIO) || defined(WLC_HIGH_ONLY)
-void wlc_device_removed(void *arg);
-#endif
-
 /* BMAC RPC: 7 u32 params: pkttotlen, fifo, commit, fid, txpktpend, pktflag, rpc_id */
 #define WLC_RPCTX_PARAMS               32
 
index e6e52f6607803ceea84a59ed9bfc6ca57ad3bce6..a07eada14d08b3e6b83f7eeb68ce886f32060899 100644 (file)
@@ -246,52 +246,3 @@ void osl_assert(char *exp, char *file, int line)
 }
 #endif                         /* defined(BCMDBG_ASSERT) */
 
-#if defined(BCMSDIO) && !defined(BRCM_FULLMAC)
-u8 osl_readb(struct osl_info *osh, volatile u8 *r)
-{
-       osl_rreg_fn_t rreg = ((struct osl_pubinfo *) osh)->rreg_fn;
-       void *ctx = ((struct osl_pubinfo *) osh)->reg_ctx;
-
-       return (u8) ((rreg) (ctx, (void *)r, sizeof(u8)));
-}
-
-u16 osl_readw(struct osl_info *osh, volatile u16 *r)
-{
-       osl_rreg_fn_t rreg = ((struct osl_pubinfo *) osh)->rreg_fn;
-       void *ctx = ((struct osl_pubinfo *) osh)->reg_ctx;
-
-       return (u16) ((rreg) (ctx, (void *)r, sizeof(u16)));
-}
-
-u32 osl_readl(struct osl_info *osh, volatile u32 *r)
-{
-       osl_rreg_fn_t rreg = ((struct osl_pubinfo *) osh)->rreg_fn;
-       void *ctx = ((struct osl_pubinfo *) osh)->reg_ctx;
-
-       return (u32) ((rreg) (ctx, (void *)r, sizeof(u32)));
-}
-
-void osl_writeb(struct osl_info *osh, volatile u8 *r, u8 v)
-{
-       osl_wreg_fn_t wreg = ((struct osl_pubinfo *) osh)->wreg_fn;
-       void *ctx = ((struct osl_pubinfo *) osh)->reg_ctx;
-
-       ((wreg) (ctx, (void *)r, v, sizeof(u8)));
-}
-
-void osl_writew(struct osl_info *osh, volatile u16 *r, u16 v)
-{
-       osl_wreg_fn_t wreg = ((struct osl_pubinfo *) osh)->wreg_fn;
-       void *ctx = ((struct osl_pubinfo *) osh)->reg_ctx;
-
-       ((wreg) (ctx, (void *)r, v, sizeof(u16)));
-}
-
-void osl_writel(struct osl_info *osh, volatile u32 *r, u32 v)
-{
-       osl_wreg_fn_t wreg = ((struct osl_pubinfo *) osh)->wreg_fn;
-       void *ctx = ((struct osl_pubinfo *) osh)->reg_ctx;
-
-       ((wreg) (ctx, (void *)r, v, sizeof(u32)));
-}
-#endif /* BCMSDIO */