Lines Matching defs:io
49 #include <asm/io.h>
699 static int tcic_set_io_map(struct pcmcia_socket *sock, struct pccard_io_map *io)
706 "%#llx-%#llx)\n", psock, io->map, io->flags, io->speed,
707 (unsigned long long)io->start, (unsigned long long)io->stop);
708 if ((io->map > 1) || (io->start > 0xffff) || (io->stop > 0xffff) ||
709 (io->stop < io->start)) return -EINVAL;
711 addr = TCIC_IWIN(psock, io->map);
713 base = io->start; len = io->stop - io->start;
722 ioctl |= (io->flags & MAP_ACTIVE) ? TCIC_ICTL_ENA : 0;
723 ioctl |= to_cycles(io->speed) & TCIC_ICTL_WSCNT_MASK;
724 if (!(io->flags & MAP_AUTOSZ)) {
726 ioctl |= (io->flags & MAP_16BIT) ? TCIC_ICTL_BW_16 : TCIC_ICTL_BW_8;
785 pccard_io_map io = { 0, 0, 0, 0, 1 };
789 io.map = i;
790 tcic_set_io_map(s, &io);