Searched refs:io_index (Results 1 – 3 of 3) sorted by relevance
3181 static int cpu_register_io_memory_fixed(int io_index, in cpu_register_io_memory_fixed() argument3188 if (io_index <= 0) { in cpu_register_io_memory_fixed()3189 io_index = get_free_io_mem_idx(); in cpu_register_io_memory_fixed()3190 if (io_index == -1) in cpu_register_io_memory_fixed()3191 return io_index; in cpu_register_io_memory_fixed()3193 io_index >>= IO_MEM_SHIFT; in cpu_register_io_memory_fixed()3194 if (io_index >= IO_MEM_NB_ENTRIES) in cpu_register_io_memory_fixed()3201 io_mem_read[io_index][i] = mem_read[i]; in cpu_register_io_memory_fixed()3202 io_mem_write[io_index][i] = mem_write[i]; in cpu_register_io_memory_fixed()3204 io_mem_opaque[io_index] = opaque; in cpu_register_io_memory_fixed()[all …]
329 int ret, io_index; in kqemu_set_phys_mem() local336 io_index = phys_offset & ~TARGET_PAGE_MASK; in kqemu_set_phys_mem()337 switch(io_index) { in kqemu_set_phys_mem()339 kphys_mem->io_index = KQEMU_IO_MEM_RAM; in kqemu_set_phys_mem()342 kphys_mem->io_index = KQEMU_IO_MEM_ROM; in kqemu_set_phys_mem()345 if (qpi_io_memory == io_index) { in kqemu_set_phys_mem()346 kphys_mem->io_index = KQEMU_IO_MEM_COMM; in kqemu_set_phys_mem()348 kphys_mem->io_index = KQEMU_IO_MEM_UNASSIGNED; in kqemu_set_phys_mem()
128 uint32_t io_index; /* memory type: see KQEMU_IO_MEM_xxx */ member