| 663 | } |
| 664 | |
| 665 | static 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 | |
| 682 | static void ide_cmd_write(void *opaque, uint32_t offset, |
| 683 | uint32_t val, int size_log2) |
nothing calls this directly
no outgoing calls
no test coverage detected