X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fasm-nios%2Fio.h;h=8b788068b3d5482219fa6228486f418276f8bb0f;hb=fbcb7ece0ea1e364180f1cf963e0fa0ce7f6560d;hp=6fc339fb01994fed03b435b0e5c5dd40ad9f0ea6;hpb=81b38be8631a0b809c97ab3d929f491373d7314f;p=u-boot diff --git a/include/asm-nios/io.h b/include/asm-nios/io.h index 6fc339fb01..8b788068b3 100644 --- a/include/asm-nios/io.h +++ b/include/asm-nios/io.h @@ -34,21 +34,21 @@ #define readb(addr)\ ({unsigned char val;\ asm volatile( " pfxio 0 \n"\ - " ld %0, [%1] \n"\ + " ld %0, [%1] \n"\ " ext8d %0, %1 \n"\ :"=r"(val) : "r" (addr)); val;}) #define readw(addr)\ ({unsigned short val;\ asm volatile( " pfxio 0 \n"\ - " ld %0, [%1] \n"\ + " ld %0, [%1] \n"\ " ext16d %0, %1 \n"\ :"=r"(val) : "r" (addr)); val;}) #define readl(addr)\ ({unsigned long val;\ asm volatile( " pfxio 0 \n"\ - " ld %0, [%1] \n"\ + " ld %0, [%1] \n"\ :"=r"(val) : "r" (addr)); val;}) #define writeb(addr,val)\ @@ -114,8 +114,6 @@ static inline void sync(void) * that can be used to access the memory range with the caching * properties specified by "flags". */ -typedef unsigned long phys_addr_t; - #define MAP_NOCACHE (0) #define MAP_WRCOMBINE (0) #define MAP_WRBACK (0)