A_GPIO
#define A_IOCFG A_GPIO
u16 sts = inw(emu->port + A_GPIO);
outw(reg, emu->port + A_GPIO);
outw(reg | 0x80, emu->port + A_GPIO); /* High bit clocks the value into the fpga. */
outw(value, emu->port + A_GPIO);
outw(value | 0x80 , emu->port + A_GPIO); /* High bit clocks the value into the fpga. */
outw(reg, emu->port + A_GPIO);
outw(reg | 0x80, emu->port + A_GPIO); /* High bit clocks the value into the fpga. */
*value = ((inw(emu->port + A_GPIO) >> 8) & mask);
outw(0x00, emu->port + A_GPIO);
write_post = inw(emu->port + A_GPIO);
outw(0x80, emu->port + A_GPIO);
write_post = inw(emu->port + A_GPIO);
outw(reg, emu->port + A_GPIO);
write_post = inw(emu->port + A_GPIO);
outw(reg | 0x40, emu->port + A_GPIO);
write_post = inw(emu->port + A_GPIO);
outw(0x10, emu->port + A_GPIO);
write_post = inw(emu->port + A_GPIO);