From 3350fca17a2c6b0bb0a010ed9dc4d2c50ecb34b9 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 28 Mar 2020 04:03:38 +0000 Subject: [PATCH] Reset magneto-optical devices when IDE bus is reset. --- src/devices/system/intel_piix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/devices/system/intel_piix.c b/src/devices/system/intel_piix.c index 3da5661..006c16a 100644 --- a/src/devices/system/intel_piix.c +++ b/src/devices/system/intel_piix.c @@ -63,6 +63,7 @@ #include "pic.h" #include "port92.h" #include "intel_piix.h" +#include "../disk/mo.h" typedef struct @@ -825,7 +826,8 @@ piix_reset(priv_t priv) { //FIXME: this should be ide_reset() ... cdrom_reset_bus(CDROM_BUS_ATAPI); - zip_reset_bus(CDROM_BUS_ATAPI); + zip_reset_bus(ZIP_BUS_ATAPI); + mo_reset_bus(MO_BUS_ATAPI); }