MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / io_removehandler

Function io_removehandler

src/x86.cpp:4183–4204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4181}
4182
4183void io_removehandler(uint16_t base, int size,
4184 uint8_t(*inb)(uint16_t addr, void *priv),
4185 uint16_t(*inw)(uint16_t addr, void *priv),
4186 uint32_t(*inl)(uint16_t addr, void *priv),
4187 void(*outb)(uint16_t addr, uint8_t val, void *priv),
4188 void(*outw)(uint16_t addr, uint16_t val, void *priv),
4189 void(*outl)(uint16_t addr, uint32_t val, void *priv),
4190 void *priv)
4191{
4192 if (base + size > MAX_IO_PORT)
4193 return;
4194
4195 for (int i = 0; i < size; i++) {
4196 int io = base + i;
4197 port_inb[io] = NULL;
4198 port_inw[io] = NULL;
4199 port_inl[io] = NULL;
4200 port_outb[io] = NULL;
4201 port_outw[io] = NULL;
4202 port_outl[io] = NULL;
4203 }
4204}
4205
4206static struct
4207{

Callers 12

sb_mcv_writeFunction · 0.85
sb_pro_mcv_writeFunction · 0.85
cpu_setFunction · 0.85
et4000_kasan_outFunction · 0.85
sb_dsp_setaddrFunction · 0.85
mpu401_uart_update_addrFunction · 0.85
serial1_removeFunction · 0.85
serial2_removeFunction · 0.85
ibm_gd5428_mca_writeFunction · 0.85
cl_pci_writeFunction · 0.85
ibm_gd5428_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected