X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fsmc91111.h;h=4c3acba35a9d8729f6168b8b7565b7c93c5f2162;hb=2fa581ba910368d0f7f995fb906d6c5e4218b594;hp=5197f36039f660903b7dde4b585d1c6cdadfb02a;hpb=850f788709cef8f7d53d571aec3bfb73b14c5531;p=oweals%2Fu-boot.git diff --git a/drivers/net/smc91111.h b/drivers/net/smc91111.h index 5197f36039..4c3acba35a 100644 --- a/drivers/net/smc91111.h +++ b/drivers/net/smc91111.h @@ -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 @@ -31,6 +30,7 @@ #include #include +#include /* * This function may be called by the board specific initialisation code @@ -253,8 +253,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 @@ -264,11 +262,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)