DMPAPI(void) io_Out16(void* handle, unsigned long offset, unsigned short val) { IO_BASE_t* base = (handle == NULL)? &IO_defaultBase : (IO_BASE_t*)handle; switch (base->iotype) { case IO_USE_PORTIO: portio_outpw((unsigned short)(base->addr + offset), val); break; case IO_USE_MMIO: mmio_outpw(base, offset, val); break; } }
DMPAPI(void) io_Out16M(void* handle, unsigned long offset, unsigned short val) { mmio_outpw((IO_BASE_t*)handle, offset, val); }