IO_IN
io->flags |= dir & (IO_IN | IO_OUT);
io->flags &= ~(dir & (IO_IN | IO_OUT));
#define IO_PAUSE_IN IO_IN
io_resume(proto->io, IO_IN);