/* default is to make two byte accesses */ static uint32_t default_ioport_readw(void *opaque, uint32_t address) { uint32_t data; data = ioport_read(0, address); address = (address + 1) & IOPORTS_MASK; data |= ioport_read(0, address) << 8; return data; }
/* default is to make two byte accesses */ static uint32_t default_ioport_readw(void *opaque, uint32_t address) { uint32_t data; //mz 05.2012: no RR action necessary - handled as part of ioport_read() data = ioport_read(0, address); address = (address + 1) & IOPORTS_MASK; data |= ioport_read(0, address) << 8; return data; }
uint32_t cpu_inl(pio_addr_t addr) { uint32_t val; val = ioport_read(2, addr); trace_cpu_in(addr, val); LOG_IOPORT("inl : %04"FMT_pioaddr" %08"PRIx32"\n", addr, val); return val; }
uint16_t cpu_inw(pio_addr_t addr) { uint16_t val; val = ioport_read(1, addr); trace_cpu_in(addr, val); LOG_IOPORT("inw : %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); return val; }
uint8_t cpu_inb(pio_addr_t addr) { uint8_t val; val = ioport_read(0, addr); trace_cpu_in(addr, val); LOG_IOPORT("inb : %04"FMT_pioaddr" %02"PRIx8"\n", addr, val); return val; }
void TDAPA::ParportReadStatus() { if (ppdev_fd != -1) par_read_status(ppdev_fd, &par_status); else par_status = ioport_read(IOBASE+1); }