提交 e503e066 编写于 作者: M Michael Chan 提交者: David S. Miller

bnx2: Rename register read and write macros

with BNX2_ prefix for namespace consistency.  Currently, these macro names
conflict with similar macros in bnx2x.h, preventing the cnic driver from
including both bnx2.h and bnx2x.h.  Including bnx2x.h in cnic.c will remove
many redundant definitions and simplify the interface.
Signed-off-by: NMichael Chan <mchan@broadcom.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1d9c5a04
......@@ -6991,13 +6991,13 @@ struct bnx2 {
const struct firmware *rv2p_firmware;
};
#define REG_RD(bp, offset) \
#define BNX2_RD(bp, offset) \
readl(bp->regview + offset)
#define REG_WR(bp, offset, val) \
#define BNX2_WR(bp, offset, val) \
writel(val, bp->regview + offset)
#define REG_WR16(bp, offset, val) \
#define BNX2_WR16(bp, offset, val) \
writew(val, bp->regview + offset)
struct cpu_reg {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册