Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259412
b: refs/heads/master
c: 2503634
h: refs/heads/master
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent f0195d1 commit 88d8dca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 35 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b61a4be59b7df9c2cee72156fa2958b6ab0fe666
refs/heads/master: 25036341c3f471c0329fba4e5bba51d261c95931
29 changes: 6 additions & 23 deletions trunk/drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,51 +32,34 @@

#include <bcmsoc.h>

/* register access macros */
#if defined(BCMSDIO)
#ifdef BRCM_FULLMAC
#include <bcmsdh.h>
#endif
#endif

/* register access macros */
#ifndef __BIG_ENDIAN
#ifndef __mips__
#define R_REG(r) \
bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))
bcmsdh_reg_read(NULL, (unsigned long)(r), sizeof(*(r)))
#else /* __mips__ */
#define R_REG(r) \
({ \
__typeof(*(r)) __osl_v; \
__asm__ __volatile__("sync"); \
__osl_v = bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r)); \
__osl_v = bcmsdh_reg_read(NULL, (unsigned long)(r),\
sizeof(*(r))); \
__asm__ __volatile__("sync"); \
__osl_v; \
})
#endif /* __mips__ */

#define W_REG(r, v) do { \
bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), (v)); \
bcmsdh_reg_write(NULL, (unsigned long)(r), sizeof(*(r)), (v)); \
} while (0)
#else /* __BIG_ENDIAN */
#define R_REG(r) \
bcmsdh_reg_read(NULL, (unsigned long)r, sizeof(*r))
bcmsdh_reg_read(NULL, (unsigned long)(r), sizeof(*(r)))
#define W_REG(r, v) do { \
bcmsdh_reg_write(NULL, (unsigned long)r, sizeof(*r), v); \
bcmsdh_reg_write(NULL, (unsigned long)(r), sizeof(*(r)), (v)); \
} while (0)
#endif /* __BIG_ENDIAN */

#ifdef __mips__
/*
* bcm4716 (which includes 4717 & 4718), plus 4706 on PCIe can reorder
* transactions. As a fix, a read after write is performed on certain places
* in the code. Older chips and the newer 5357 family don't require this fix.
*/
#define W_REG_FLUSH(r, v) ({ W_REG((r), (v)); (void)R_REG(r); })
#else
#define W_REG_FLUSH(r, v) W_REG((r), (v))
#endif /* __mips__ */

#define AND_REG(r, v) W_REG((r), R_REG(r) & (v))
#define OR_REG(r, v) W_REG((r), R_REG(r) | (v))

Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/staging/brcm80211/brcmsmac/wlc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ do { \

#define WL_ERROR_ON() (brcm_msg_level & LOG_ERROR_VAL)

/* register access macros */
#if defined(BCMSDIO)
#ifdef BRCM_FULLMAC
#include <bcmsdh.h>
#endif
#endif

/* register access macros */
#ifndef __BIG_ENDIAN
#ifndef __mips__
Expand Down
4 changes: 0 additions & 4 deletions trunk/drivers/staging/brcm80211/include/brcmu_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,6 @@ extern int brcmu_iovar_lencheck(const struct brcmu_iovar *table, void *arg,
#define PKTBUFSZ 2048

#define OSL_SYSUPTIME() ((u32)jiffies * (1000 / HZ))
#ifdef BRCM_FULLMAC
#include <linux/kernel.h> /* for vsn/printf's */
#include <linux/string.h> /* for mem*, str* */
#endif

#ifndef setbit
#ifndef NBBY /* the BSD family defines NBBY */
Expand Down

0 comments on commit 88d8dca

Please sign in to comment.