static void tsunami_flash_copy_from( struct map_info *map, void *addr, unsigned long offset, ssize_t len) { unsigned char *dest; dest = addr; while(len && (offset < MAX_TIG_FLASH_SIZE)) { *dest = tsunami_tig_readb(offset); offset++; dest++; len--; } }
static inline __u8 tsunami_flash_read8(struct map_info *map, unsigned long offset) { return tsunami_tig_readb(offset); }
static inline map_word tsunami_flash_read8(struct map_info *map, unsigned long offset) { map_word val; val.x[0] = tsunami_tig_readb(offset); return val; }