X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fasm-arm%2Fio.h;h=fec3a7eace50ce220355e03bdd5629eed23be80a;hb=92afd368bba7d98b2b7bfb51082c3639bb2119b3;hp=47c18e7e86965defdf8500c739bffe4dc1424a19;hpb=dd0321f5f8d284782abee6e96c6da7548e88839f;p=oweals%2Fu-boot.git diff --git a/include/asm-arm/io.h b/include/asm-arm/io.h index 47c18e7e86..fec3a7eace 100644 --- a/include/asm-arm/io.h +++ b/include/asm-arm/io.h @@ -33,6 +33,35 @@ static inline void sync(void) { } +/* + * Given a physical address and a length, return a virtual address + * that can be used to access the memory range with the caching + * properties specified by "flags". + */ +#define MAP_NOCACHE (0) +#define MAP_WRCOMBINE (0) +#define MAP_WRBACK (0) +#define MAP_WRTHROUGH (0) + +static inline void * +map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags) +{ + return (void *)paddr; +} + +/* + * Take down a mapping set up by map_physmem(). + */ +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); +} + /* * Generic virtual read/write. Note that we don't support half-word * read/writes. We define __arch_*[bl] here, and leave __arch_*w @@ -99,7 +128,7 @@ extern void __raw_readsl(unsigned int addr, void *data, int longlen); * only. Their primary purpose is to access PCI and ISA peripherals. * * Note that for a big endian machine, this implies that the following - * big endian mode connectivity is in place, as described by numerious + * big endian mode connectivity is in place, as described by numerous * ARM documents: * * PCI: D0-D7 D8-D15 D16-D23 D24-D31