Example #1
0
DMPAPI(void) io_Out32(void* handle, unsigned long offset, unsigned long val) {
    IO_BASE_t* base = (handle == NULL)? &IO_defaultBase : (IO_BASE_t*)handle;

    switch (base->iotype)
    {
        case IO_USE_PORTIO:
            portio_outpdw((unsigned short)(base->addr + offset), val);
            break;
        case IO_USE_MMIO:
            mmio_outpdw(base, offset, val);
            break;
    }
}
Example #2
0
// we need the following functions for slow CPUs such as Vortex86EX :p
DMPAPI(void) io_Out32M(void* handle, unsigned long offset, unsigned long val) {
    mmio_outpdw((IO_BASE_t*)handle, offset, val);
}