| 1561 | } |
| 1562 | |
| 1563 | static 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 | |
| 1581 | void start_ide_thread(struct ide_thread_state *its) |
| 1582 | { |
nothing calls this directly
no test coverage detected