DMPAPI(void) io_Out8(void* handle, unsigned long offset, unsigned char val) { IO_BASE_t* base = (handle == NULL)? &IO_defaultBase : (IO_BASE_t*)handle; switch (base->iotype) { case IO_USE_PORTIO: portio_outpb((unsigned short)(base->addr + offset), val); break; case IO_USE_MMIO: mmio_outpb(base, offset, val); break; } }
DMPAPI(void) io_Out8M(void* handle, unsigned long offset, unsigned char val) { mmio_outpb((IO_BASE_t*)handle, offset, val); }