mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
IDE: Fix reset handling
Problem: x86 systems could not survive a few system_resets. Clear most of IDE state when reset. Implement the missing reset handlers. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
b55a37c981
commit
4a64356397
8 changed files with 88 additions and 12 deletions
|
@ -525,13 +525,14 @@ extern const VMStateDescription vmstate_ide_drive;
|
|||
#define VMSTATE_IDE_DRIVES(_field, _state) \
|
||||
VMSTATE_STRUCT_ARRAY(_field, _state, 2, 3, vmstate_ide_drive, IDEState)
|
||||
|
||||
void ide_reset(IDEState *s);
|
||||
void ide_bus_reset(IDEBus *bus);
|
||||
int64_t ide_get_sector(IDEState *s);
|
||||
void ide_set_sector(IDEState *s, int64_t sector_num);
|
||||
|
||||
void ide_dma_cancel(BMDMAState *bm);
|
||||
void ide_dma_restart_cb(void *opaque, int running, int reason);
|
||||
void ide_dma_error(IDEState *s);
|
||||
void ide_dma_reset(BMDMAState *bm);
|
||||
|
||||
void ide_atapi_cmd_ok(IDEState *s);
|
||||
void ide_atapi_cmd_error(IDEState *s, int sense_key, int asc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue