/* Read COUNT 8-bit bytes from port PORT into memory starting at SRC.  */
void ioread8_rep(void __iomem *port, void *dst, unsigned long count)
/* Read COUNT 8-bit bytes from port PORT into memory starting at SRC.  */
void ioread8_rep(void __iomem *port, void *dst, unsigned long count)
{
	while ((unsigned long)dst & 0x3) {
		if (!count)
			return;
		count--;
		*(unsigned char *)dst = ioread8(port);
		dst += 1;
	}
	while (count >= 4) {
		unsigned int w;
		count -= 4;
		w = ioread8(port);
		w |= ioread8(port) << 8;
		w |= ioread8(port) << 16;
		w |= ioread8(port) << 24;
		*(unsigned int *)dst = w;
		dst += 4;
	}
	while (count) {
		--count;
		*(unsigned char *)dst = ioread8(port);
		dst += 1;
	}
}