projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lua: Fixed some cross-platform issues for PPC (and probably other architectures)
[openwrt.git]
/
target
/
linux
/
adm5120
/
files
/
include
/
asm-mips
/
mach-adm5120
/
adm5120_switch.h
diff --git
a/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_switch.h
b/target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_switch.h
index
bc9b6f6
..
2dbb097
100644
(file)
--- a/
target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_switch.h
+++ b/
target/linux/adm5120/files/include/asm-mips/mach-adm5120/adm5120_switch.h
@@
-18,8
+18,10
@@
#ifndef _ADM5120_SWITCH_H_
#define _ADM5120_SWITCH_H_
#ifndef _ADM5120_SWITCH_H_
#define _ADM5120_SWITCH_H_
-#define BIT(at) (1 << (at))
-#define BITMASK(len) ((1 << (len))-1)
+#ifndef BIT
+# define BIT(at) (1 << (at))
+#endif
+#define BITMASK(len) (BIT(len)-1)
#define SW_READ_REG(r) __raw_readl( \
(void __iomem *)KSEG1ADDR(ADM5120_SWITCH_BASE) + r)
#define SW_READ_REG(r) __raw_readl( \
(void __iomem *)KSEG1ADDR(ADM5120_SWITCH_BASE) + r)
This page took
0.027049 seconds
and
4
git commands to generate.