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

Function ide_thread

src/ide.cpp:1563–1579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1561}
1562
1563static int ide_thread (void *idedata)
1564{
1565 struct ide_thread_state *its = (struct ide_thread_state*)idedata;
1566 for (;;) {
1567 uae_u32 unit = read_comm_pipe_u32_blocking (&its->requests);
1568 struct ide_hdf *ide;
1569 if (its->state == 0 || unit == 0xfffffff)
1570 break;
1571 ide = its->idetable[unit & 0x7fff];
1572 if (unit & 0x8000)
1573 do_process_packet_command (ide);
1574 else
1575 do_process_rw_command (ide);
1576 }
1577 its->state = -1;
1578 return 0;
1579}
1580
1581void start_ide_thread(struct ide_thread_state *its)
1582{

Callers

nothing calls this directly

Calls 3

do_process_rw_commandFunction · 0.85

Tested by

no test coverage detected