Ver código fonte

staging: brcm80211: stragglers not handled by unifdef

Part of BMAC removal.

Signed-off-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Brett Rudley 15 anos atrás
pai
commit
861f670318

+ 0 - 37
drivers/staging/brcm80211/include/linux_osl.h

@@ -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_ */

+ 0 - 5
drivers/staging/brcm80211/include/osl.h

@@ -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 */

+ 0 - 2
drivers/staging/brcm80211/sys/wlc_cfg.h

@@ -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

+ 0 - 1
drivers/staging/brcm80211/sys/wlc_mac80211.h

@@ -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);

+ 0 - 4
drivers/staging/brcm80211/sys/wlc_pub.h

@@ -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
 

+ 0 - 49
drivers/staging/brcm80211/util/linux_osl.c

@@ -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 */