Merge remote-tracking branch 'origin/master' into feature/machine_and_kb
This commit is contained in:
@@ -373,19 +373,18 @@ extern const device_t s3_trio64v2_dx_pci_device;
|
||||
extern const device_t s3_trio64v2_dx_onboard_pci_device;
|
||||
|
||||
/* S3 ViRGE */
|
||||
extern const device_t s3_virge_325_vlb_device;
|
||||
extern const device_t s3_virge_325_pci_device;
|
||||
extern const device_t s3_virge_vlb_device;
|
||||
extern const device_t s3_virge_pci_device;
|
||||
extern const device_t s3_virge_988_vlb_device;
|
||||
extern const device_t s3_virge_988_pci_device;
|
||||
extern const device_t s3_virge_375_vlb_device;
|
||||
extern const device_t s3_diamond_stealth_2000_pci_device;
|
||||
extern const device_t s3_diamond_stealth_3000_pci_device;
|
||||
extern const device_t s3_virge_375_pci_device;
|
||||
extern const device_t s3_virge_375_4_vlb_device;
|
||||
extern const device_t s3_virge_375_4_pci_device;
|
||||
#if defined(DEV_BRANCH) && defined(USE_S3TRIO3D2X)
|
||||
extern const device_t s3_trio3d_2x_pci_device;
|
||||
#endif
|
||||
extern const device_t s3_diamond_stealth_2000pro_pci_device;
|
||||
extern const device_t s3_virge_385_pci_device;
|
||||
extern const device_t s3_virge_357_pci_device;
|
||||
extern const device_t s3_virge_357_agp_device;
|
||||
extern const device_t s3_diamond_stealth_4000_pci_device;
|
||||
extern const device_t s3_diamond_stealth_4000_agp_device;
|
||||
extern const device_t s3_trio3d2x_pci_device;
|
||||
extern const device_t s3_trio3d2x_agp_device;
|
||||
|
||||
/* Sigma Color 400 */
|
||||
extern const device_t sigma_device;
|
||||
|
@@ -106,8 +106,15 @@ timer_control(opl_t *dev, int tmr, int start)
|
||||
timer_tick(dev, tmr); /* Per the YMF 262 datasheet, OPL3 starts counting immediately, unlike OPL2. */
|
||||
else
|
||||
timer_on_auto(&dev->timers[tmr], (tmr == 1) ? 320.0 : 80.0);
|
||||
} else
|
||||
opl_log("Timer %i stopped\n", tmr);
|
||||
} else {
|
||||
opl_log("Timer %i stopped\n", tmr);
|
||||
if (!(dev->flags & FLAG_OPL3)) {
|
||||
if (tmr == 1) {
|
||||
dev->status &= ~STAT_TMR2_OVER;
|
||||
} else
|
||||
dev->status &= ~STAT_TMR1_OVER;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -140,6 +147,8 @@ opl_read(opl_t *dev, uint16_t port)
|
||||
ret |= STAT_TMR_ANY;
|
||||
}
|
||||
|
||||
opl_log("OPL statret = %02x, status = %02x\n", ret, dev->status);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -231,7 +240,8 @@ opl2_read(uint16_t port, void *priv)
|
||||
cycles -= ((int) (isa_timing * 8));
|
||||
|
||||
opl2_update(dev);
|
||||
|
||||
opl_log("OPL2 port read = %04x\n", port);
|
||||
|
||||
return(opl_read(dev, port));
|
||||
}
|
||||
|
||||
@@ -243,6 +253,7 @@ opl2_write(uint16_t port, uint8_t val, void *priv)
|
||||
|
||||
opl2_update(dev);
|
||||
|
||||
opl_log("OPL2 port write = %04x\n", port);
|
||||
opl_write(dev, port, val);
|
||||
}
|
||||
|
||||
@@ -257,8 +268,9 @@ opl2_init(opl_t *dev)
|
||||
void
|
||||
opl2_update(opl_t *dev)
|
||||
{
|
||||
if (dev->pos >= sound_pos_global)
|
||||
return;
|
||||
if (dev->pos >= sound_pos_global) {
|
||||
return;
|
||||
}
|
||||
|
||||
nuked_generate_stream(dev->opl,
|
||||
&dev->buffer[dev->pos * 2],
|
||||
|
@@ -31,10 +31,6 @@ if(MGA)
|
||||
target_sources(vid PRIVATE vid_mga.c)
|
||||
endif()
|
||||
|
||||
if(S3TRIO3D2X)
|
||||
target_compile_definitions(vid PRIVATE USE_S3TRIO3D2X)
|
||||
endif()
|
||||
|
||||
if(VGAWONDER)
|
||||
target_compile_definitions(vid PRIVATE USE_VGAWONDER)
|
||||
endif()
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -153,18 +153,19 @@ video_cards[] = {
|
||||
{ "px_vision868_pci", &s3_phoenix_vision868_pci_device },
|
||||
{ "px_trio64vplus_pci", &s3_phoenix_trio64vplus_pci_device },
|
||||
{ "trio64v2dx_pci", &s3_trio64v2_dx_pci_device },
|
||||
{ "stealth3d_2000_pci", &s3_virge_pci_device },
|
||||
{ "stealth3d_3000_pci", &s3_virge_988_pci_device },
|
||||
{ "virge325_pci", &s3_virge_325_pci_device },
|
||||
{ "stealth3d_2000_pci", &s3_diamond_stealth_2000_pci_device },
|
||||
{ "stealth3d_3000_pci", &s3_diamond_stealth_3000_pci_device },
|
||||
{ "virge375_pci", &s3_virge_375_pci_device },
|
||||
{ "stealth3d_2000pro_pci", &s3_diamond_stealth_2000pro_pci_device },
|
||||
{ "virge385_pci", &s3_virge_385_pci_device },
|
||||
{ "virge357_pci", &s3_virge_357_pci_device },
|
||||
{ "stealth3d_4000_pci", &s3_diamond_stealth_4000_pci_device },
|
||||
{ "trio3d2x", &s3_trio3d2x_pci_device },
|
||||
#if defined(DEV_BRANCH) && defined(USE_MGA)
|
||||
{ "mystique", &mystique_device },
|
||||
{ "mystique_220", &mystique_220_device },
|
||||
#endif
|
||||
#if defined(DEV_BRANCH) && defined(USE_S3TRIO3D2X)
|
||||
{ "trio3d2x", &s3_trio3d_2x_pci_device },
|
||||
#endif
|
||||
{ "virge325_pci", &s3_virge_325_pci_device },
|
||||
{ "virge375_pci", &s3_virge_375_pci_device },
|
||||
{ "virge375_vbe20_pci", &s3_virge_375_4_pci_device },
|
||||
{ "cl_gd5446_stb_pci", &gd5446_stb_pci_device },
|
||||
{ "tgui9440_pci", &tgui9440_pci_device },
|
||||
{ "tgui9660_pci", &tgui9660_pci_device },
|
||||
@@ -184,8 +185,6 @@ video_cards[] = {
|
||||
{ "stealth32_vlb", &et4000w32p_vlb_device },
|
||||
{ "cl_gd5426_vlb", &gd5426_vlb_device },
|
||||
{ "cl_gd5430_vlb", &gd5430_vlb_device },
|
||||
{ "stealth3d_2000_vlb", &s3_virge_vlb_device },
|
||||
{ "stealth3d_3000_vlb", &s3_virge_988_vlb_device },
|
||||
{ "metheus928_vlb", &s3_metheus_86c928_vlb_device },
|
||||
{ "mirocrystal8s_vlb", &s3_mirocrystal_8s_805_vlb_device },
|
||||
{ "mirocrystal10sd_vlb", &s3_mirocrystal_10sd_805_vlb_device },
|
||||
@@ -205,11 +204,11 @@ video_cards[] = {
|
||||
{ "px_vision968_vlb", &s3_phoenix_vision968_vlb_device },
|
||||
{ "px_vision868_vlb", &s3_phoenix_vision868_vlb_device },
|
||||
{ "ht216_32", &ht216_32_standalone_device },
|
||||
{ "virge325_vlb", &s3_virge_325_vlb_device },
|
||||
{ "virge375_vlb", &s3_virge_375_vlb_device },
|
||||
{ "virge375_vbe20_vlb", &s3_virge_375_4_vlb_device },
|
||||
{ "tgui9400cxi_vlb", &tgui9400cxi_device },
|
||||
{ "tgui9440_vlb", &tgui9440_vlb_device },
|
||||
{ "virge357_agp", &s3_virge_357_agp_device },
|
||||
{ "stealth3d_4000_agp", &s3_diamond_stealth_4000_agp_device },
|
||||
{ "trio3d2x_agp", &s3_trio3d2x_agp_device },
|
||||
{ "velocity100_agp", &velocity_100_agp_device },
|
||||
{ "voodoo3_2k_agp", &voodoo_3_2000_agp_device },
|
||||
{ "voodoo3_3k_agp", &voodoo_3_3000_agp_device },
|
||||
|
@@ -69,9 +69,6 @@ ifeq ($(DEV_BUILD), y)
|
||||
ifndef PS2M70T4
|
||||
PS2M70T4 := y
|
||||
endif
|
||||
ifndef S3TRIO3D2X
|
||||
S3TRIO3D2X := y
|
||||
endif
|
||||
ifndef SIO_DETECT
|
||||
SIO_DETECT := y
|
||||
endif
|
||||
@@ -136,9 +133,6 @@ else
|
||||
ifndef PS2M70T4
|
||||
PS2M70T4 := n
|
||||
endif
|
||||
ifndef S3TRIO3D2X
|
||||
S3TRIO3D2X := n
|
||||
endif
|
||||
ifndef SIO_DETECT
|
||||
SIO_DETECT := n
|
||||
endif
|
||||
@@ -545,10 +539,6 @@ ifeq ($(PS2M70T4), y)
|
||||
OPTS += -DUSE_PS2M70T4
|
||||
endif
|
||||
|
||||
ifeq ($(S3TRIO3D2X), y)
|
||||
OPTS += -DUSE_S3TRIO3D2X
|
||||
endif
|
||||
|
||||
ifeq ($(SIO_DETECT), y)
|
||||
OPTS += -DUSE_SIO_DETECT
|
||||
DEVBROBJ += sio_detect.o
|
||||
|
Reference in New Issue
Block a user