X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fasm-blackfin%2Fio.h;h=68064949834636a82e505f711bc92bd51305210a;hb=e08dbb4f203b7fd4311378c894c9924941666002;hp=2149685c179cee079c9d1ff284ab9d5dff5823f7;hpb=faf8f9bc95e526446c3b0554ebdc22af1291e72a;p=oweals%2Fu-boot.git diff --git a/include/asm-blackfin/io.h b/include/asm-blackfin/io.h index 2149685c17..6806494983 100644 --- a/include/asm-blackfin/io.h +++ b/include/asm-blackfin/io.h @@ -45,8 +45,6 @@ extern void cf_outb(unsigned char val, volatile unsigned char *addr); * 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) @@ -66,6 +64,11 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags) } +static inline phys_addr_t virt_to_phys(void * vaddr) +{ + return (phys_addr_t)(vaddr); +} + /* * These are for ISA/PCI shared memory _only_ and should never be used * on any other type of memory, including Zorro memory. They are meant to