enable USB root hub transaction translators
[openwrt.git] / target / linux / adm5120 / files / include / asm-mips / mach-adm5120 / adm5120_switch.h
index bc9b6f6..91adc5b 100644 (file)
@@ -1,13 +1,10 @@
 /*
- *  $Id$
- *
  *  ADM5120 ethernet switch definitions
  *
  *  This header file defines the hardware registers of the ADM5120 SoC
  *  built-in Ethernet switch.
  *
- *  Copyright (C) 2007 OpenWrt.org
- *  Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
+ *  Copyright (C) 2007-2008 Gabor Juhos <juhosg@openwrt.org>
  *
  *  This program is free software; you can redistribute it and/or modify it
  *  under the terms of the GNU General Public License version 2 as published
  *
  */
 
-#ifndef _ADM5120_SWITCH_H_
-#define _ADM5120_SWITCH_H_
+#ifndef _MACH_ADM5120_SWITCH_H
+#define _MACH_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 LED1_IV_SHIFT          13      /* LED1 input value shift */
 #define LED2_IV_SHIFT          14      /* LED2 input value shift */
 
-#endif /* _ADM5120_SWITCH_H_ */
+#endif /* _MACH_ADM5120_SWITCH_H */
This page took 0.020408 seconds and 4 git commands to generate.