]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/smc91111.h
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
[u-boot] / drivers / net / smc91111.h
index e19c491cbce7c00d3f429f9b7d009172bd0b66b5..013542770dd7acef4263359da6f21cf1201aaa62 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*------------------------------------------------------------------------
  . smc91111.h - macros for the LAN91C111 Ethernet Driver
  .
@@ -7,8 +8,6 @@
  . Copyright (C) 2001 Standard Microsystems Corporation (SMSC)
  .       Developed by Simple Network Magic Corporation (SNMC)
  . Copyright (C) 1996 by Erik Stahlman (ES)
- .
-  * SPDX-License-Identifier:   GPL-2.0+
  .
  . This file contains register information and access macros for
  . the LAN91C111 single chip ethernet controller.  It is a modified
@@ -77,19 +76,6 @@ struct smc91111_priv{
        if (__p & 2) __v >>= 8; \
        else __v &= 0xff; \
        __v; })
-#elif defined(CONFIG_XAENIAX)
-#define SMC_inl(a,r)   (*((volatile dword *)((a)->iobase+(r))))
-#define SMC_inw(a,z)   ({ \
-       unsigned int __p = (unsigned int)((a)->iobase + (z)); \
-       unsigned int __v = *(volatile unsigned int *)((__p) & ~3); \
-       if (__p & 3) __v >>= 16; \
-       else __v &= 0xffff; \
-       __v; })
-#define SMC_inb(a,p)   ({ \
-       unsigned int ___v = SMC_inw((a),(p) & ~1); \
-       if ((p) & 1) ___v >>= 8; \
-       else ___v &= 0xff; \
-       ___v; })
 #else
 #define        SMC_inl(a,r)    (*((volatile dword *)((a)->iobase+(r))))
 #define        SMC_inw(a,r)    (*((volatile word *)((a)->iobase+(r))))
@@ -104,15 +90,6 @@ struct smc91111_priv{
 #ifdef CONFIG_XSENGINE
 #define        SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r<<1))) = d)
 #define        SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r<<1))) = d)
-#elif defined (CONFIG_XAENIAX)
-#define SMC_outl(a,d,r)        (*((volatile dword *)((a)->iobase+(r))) = d)
-#define SMC_outw(a,d,p)        ({ \
-       dword __dwo = SMC_inl((a),(p) & ~3); \
-       dword __dwn = (word)(d); \
-       __dwo &= ((p) & 3) ? 0x0000ffff : 0xffff0000; \
-       __dwo |= ((p) & 3) ? __dwn << 16 : __dwn; \
-       SMC_outl((a), __dwo, (p) & ~3); \
-})
 #else
 #define        SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r))) = d)
 #define        SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d)
@@ -275,8 +252,6 @@ struct smc91111_priv{
 
 #ifdef CONFIG_ADNPESC1
 #define        SMC_inw(a,r)    (*((volatile word *)((a)->iobase+((r)<<1))))
-#elif CONFIG_BLACKFIN
-#define        SMC_inw(a,r)    ({ word __v = (*((volatile word *)((a)->iobase+(r)))); SSYNC(); __v;})
 #elif CONFIG_ARM64
 #define        SMC_inw(a, r)   (*((volatile word*)((a)->iobase+((dword)(r)))))
 #else
@@ -286,11 +261,6 @@ struct smc91111_priv{
 
 #ifdef CONFIG_ADNPESC1
 #define        SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+((r)<<1))) = d)
-#elif CONFIG_BLACKFIN
-#define        SMC_outw(a, d, r)       \
-                       ({      (*((volatile word*)((a)->iobase+((r)))) = d); \
-                               SSYNC(); \
-                       })
 #elif CONFIG_ARM64
 #define        SMC_outw(a, d, r)       \
                        (*((volatile word*)((a)->iobase+((dword)(r)))) = d)