MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / ide_data_writew

Function ide_data_writew

tinyemu/ide.c:714–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714static void ide_data_writew(void *opaque, uint32_t offset,
715 uint32_t val, int size_log2)
716{
717 IDEIFState *s1 = opaque;
718 IDEState *s = s1->cur_drive;
719 int p;
720 uint8_t *tab;
721
722 if (!s)
723 return;
724 p = s->data_index;
725 tab = s->io_buffer;
726 tab[p] = val & 0xff;
727 tab[p + 1] = (val >> 8) & 0xff;
728 p += 2;
729 s->data_index = p;
730 if (p >= s->data_end)
731 s->end_transfer_func(s);
732}
733
734static uint32_t ide_data_readw(void *opaque, uint32_t offset, int size_log2)
735{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected