Enable MO support
This commit is contained in:
committed by
David Hrdlička
parent
43a3eb398d
commit
a6bb71ea7a
@@ -35,6 +35,7 @@
|
|||||||
#include <86box/hdc_ide.h>
|
#include <86box/hdc_ide.h>
|
||||||
#include <86box/hdc_ide_sff8038i.h>
|
#include <86box/hdc_ide_sff8038i.h>
|
||||||
#include <86box/zip.h>
|
#include <86box/zip.h>
|
||||||
|
#include <86box/mo.h>
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@@ -332,6 +333,11 @@ cmd640_reset(void *p)
|
|||||||
(zip_drives[i].ide_channel < 4) && zip_drives[i].priv)
|
(zip_drives[i].ide_channel < 4) && zip_drives[i].priv)
|
||||||
zip_reset((scsi_common_t *) zip_drives[i].priv);
|
zip_reset((scsi_common_t *) zip_drives[i].priv);
|
||||||
}
|
}
|
||||||
|
for (i = 0; i < MO_NUM; i++) {
|
||||||
|
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) &&
|
||||||
|
(mo_drives[i].ide_channel < 4) && mo_drives[i].priv)
|
||||||
|
mo_reset((scsi_common_t *) mo_drives[i].priv);
|
||||||
|
}
|
||||||
|
|
||||||
cmd640_set_irq(0x00, p);
|
cmd640_set_irq(0x00, p);
|
||||||
cmd640_set_irq(0x01, p);
|
cmd640_set_irq(0x01, p);
|
||||||
|
@@ -41,6 +41,7 @@
|
|||||||
#include <86box/hdc_ide.h>
|
#include <86box/hdc_ide.h>
|
||||||
#include <86box/hdc_ide_sff8038i.h>
|
#include <86box/hdc_ide_sff8038i.h>
|
||||||
#include <86box/zip.h>
|
#include <86box/zip.h>
|
||||||
|
#include <86box/mo.h>
|
||||||
|
|
||||||
|
|
||||||
static int next_id = 0;
|
static int next_id = 0;
|
||||||
@@ -440,6 +441,11 @@ sff_reset(void *p)
|
|||||||
(zip_drives[i].ide_channel < 4) && zip_drives[i].priv)
|
(zip_drives[i].ide_channel < 4) && zip_drives[i].priv)
|
||||||
zip_reset((scsi_common_t *) zip_drives[i].priv);
|
zip_reset((scsi_common_t *) zip_drives[i].priv);
|
||||||
}
|
}
|
||||||
|
for (i = 0; i < MO_NUM; i++) {
|
||||||
|
if ((mo_drives[i].bus_type == MO_BUS_ATAPI) &&
|
||||||
|
(mo_drives[i].ide_channel < 4) && mo_drives[i].priv)
|
||||||
|
mo_reset((scsi_common_t *) mo_drives[i].priv);
|
||||||
|
}
|
||||||
|
|
||||||
sff_bus_master_set_irq(0x00, p);
|
sff_bus_master_set_irq(0x00, p);
|
||||||
sff_bus_master_set_irq(0x01, p);
|
sff_bus_master_set_irq(0x01, p);
|
||||||
|
8
src/pc.c
8
src/pc.c
@@ -67,6 +67,7 @@
|
|||||||
#include <86box/scsi_device.h>
|
#include <86box/scsi_device.h>
|
||||||
#include <86box/cdrom.h>
|
#include <86box/cdrom.h>
|
||||||
#include <86box/zip.h>
|
#include <86box/zip.h>
|
||||||
|
#include <86box/mo.h>
|
||||||
#include <86box/scsi_disk.h>
|
#include <86box/scsi_disk.h>
|
||||||
#include <86box/cdrom_image.h>
|
#include <86box/cdrom_image.h>
|
||||||
#include <86box/network.h>
|
#include <86box/network.h>
|
||||||
@@ -519,6 +520,7 @@ usage:
|
|||||||
mouse_init();
|
mouse_init();
|
||||||
cdrom_global_init();
|
cdrom_global_init();
|
||||||
zip_global_init();
|
zip_global_init();
|
||||||
|
mo_global_init();
|
||||||
|
|
||||||
/* Load the configuration file. */
|
/* Load the configuration file. */
|
||||||
config_load();
|
config_load();
|
||||||
@@ -705,6 +707,8 @@ pc_reset_hard_close(void)
|
|||||||
|
|
||||||
zip_close();
|
zip_close();
|
||||||
|
|
||||||
|
mo_close();
|
||||||
|
|
||||||
scsi_disk_close();
|
scsi_disk_close();
|
||||||
|
|
||||||
closeal();
|
closeal();
|
||||||
@@ -787,6 +791,8 @@ pc_reset_hard_init(void)
|
|||||||
|
|
||||||
zip_hard_reset();
|
zip_hard_reset();
|
||||||
|
|
||||||
|
mo_hard_reset();
|
||||||
|
|
||||||
scsi_disk_hard_reset();
|
scsi_disk_hard_reset();
|
||||||
|
|
||||||
/* Reset and reconfigure the Network Card layer. */
|
/* Reset and reconfigure the Network Card layer. */
|
||||||
@@ -888,6 +894,8 @@ pc_close(thread_t *ptr)
|
|||||||
|
|
||||||
zip_close();
|
zip_close();
|
||||||
|
|
||||||
|
mo_close();
|
||||||
|
|
||||||
scsi_disk_close();
|
scsi_disk_close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user