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

Function ide_status_read

tinyemu/ide.c:665–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665static uint32_t ide_status_read(void *opaque, uint32_t offset, int size_log2)
666{
667 IDEIFState *s1 = opaque;
668 IDEState *s = s1->cur_drive;
669 int ret;
670
671 if (s) {
672 ret = s->status;
673 } else {
674 ret = 0;
675 }
676#ifdef DEBUG_IDE
677 printf("ide: read status=0x%02x\n", ret);
678#endif
679 return ret;
680}
681
682static void ide_cmd_write(void *opaque, uint32_t offset,
683 uint32_t val, int size_log2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected