Move port 0xcf9 handling from i430FX/VX to PIIX, adding reset callback for FX/HX/VX northbridges.
Add IDE reset to port 0xcf9. Reset IDE error register on reset of non-existent devices. Fixes IDE related issues on soft reset for ASUS boards.
This commit is contained in:
parent
8b46bbe1af
commit
1dd8cf1e81
12 changed files with 83 additions and 28 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include "ibm.h"
|
||||
#include "ide.h"
|
||||
#include "io.h"
|
||||
#include "keyboard_at.h"
|
||||
#include "mem.h"
|
||||
|
|
@ -134,10 +135,11 @@ void i430lx_trc_write(uint16_t port, uint8_t val, void *p)
|
|||
{
|
||||
i430lx_write(0, 0x59, 0xf, NULL); /*Should reset all PCI devices, but just set PAM0 to point to ROM for now*/
|
||||
keyboard_at_reset(); /*Reset keyboard controller to reset system flag*/
|
||||
ide_reset_devices();
|
||||
}
|
||||
resetx86();
|
||||
}
|
||||
|
||||
|
||||
trc = val;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue