Merge branch '86Box:master' into nec-v20
This commit is contained in:
@@ -319,6 +319,7 @@ extern const device_t gd5426_onboard_device;
|
|||||||
extern const device_t gd5428_isa_device;
|
extern const device_t gd5428_isa_device;
|
||||||
extern const device_t gd5428_vlb_device;
|
extern const device_t gd5428_vlb_device;
|
||||||
extern const device_t gd5428_diamond_speedstar_pro_b1_vlb_device;
|
extern const device_t gd5428_diamond_speedstar_pro_b1_vlb_device;
|
||||||
|
extern const device_t gd5428_boca_isa_device;
|
||||||
extern const device_t gd5428_mca_device;
|
extern const device_t gd5428_mca_device;
|
||||||
extern const device_t gd5426_mca_device;
|
extern const device_t gd5426_mca_device;
|
||||||
extern const device_t gd5428_onboard_device;
|
extern const device_t gd5428_onboard_device;
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
int32_t m_buffer[SOUNDBUFLEN * 2];
|
int32_t m_buffer[SOUNDBUFLEN * 2];
|
||||||
uint32_t m_buf_pos;
|
int m_buf_pos;
|
||||||
int8_t m_flags;
|
int8_t m_flags;
|
||||||
fm_type m_type;
|
fm_type m_type;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ sb_get_buffer_sbpro(int32_t *buffer, int len, void *p)
|
|||||||
sb_ct1345_mixer_t *mixer = &sb->mixer_sbpro;
|
sb_ct1345_mixer_t *mixer = &sb->mixer_sbpro;
|
||||||
int c;
|
int c;
|
||||||
double out_l = 0.0, out_r = 0.0;
|
double out_l = 0.0, out_r = 0.0;
|
||||||
int32_t *opl_buf, *opl2_buf;
|
int32_t *opl_buf = NULL, *opl2_buf = NULL;
|
||||||
|
|
||||||
if (sb->opl_enabled) {
|
if (sb->opl_enabled) {
|
||||||
if (sb->dsp.sb_type == SBPRO) {
|
if (sb->dsp.sb_type == SBPRO) {
|
||||||
|
|||||||
@@ -51,6 +51,7 @@
|
|||||||
#define BIOS_GD5428_ISA_PATH "roms/video/cirruslogic/5428.bin"
|
#define BIOS_GD5428_ISA_PATH "roms/video/cirruslogic/5428.bin"
|
||||||
#define BIOS_GD5428_MCA_PATH "roms/video/cirruslogic/SVGA141.ROM"
|
#define BIOS_GD5428_MCA_PATH "roms/video/cirruslogic/SVGA141.ROM"
|
||||||
#define BIOS_GD5428_PATH "roms/video/cirruslogic/vlbusjapan.BIN"
|
#define BIOS_GD5428_PATH "roms/video/cirruslogic/vlbusjapan.BIN"
|
||||||
|
#define BIOS_GD5428_BOCA_ISA_PATH "roms/video/cirruslogic/boca_gd5428_1.30b.bin"
|
||||||
#define BIOS_GD5429_PATH "roms/video/cirruslogic/5429.vbi"
|
#define BIOS_GD5429_PATH "roms/video/cirruslogic/5429.vbi"
|
||||||
#define BIOS_GD5430_DIAMOND_A8_VLB_PATH "roms/video/cirruslogic/diamondvlbus.bin"
|
#define BIOS_GD5430_DIAMOND_A8_VLB_PATH "roms/video/cirruslogic/diamondvlbus.bin"
|
||||||
#define BIOS_GD5430_PATH "roms/video/cirruslogic/pci.bin"
|
#define BIOS_GD5430_PATH "roms/video/cirruslogic/pci.bin"
|
||||||
@@ -3913,7 +3914,10 @@ static void
|
|||||||
|
|
||||||
case CIRRUS_ID_CLGD5428:
|
case CIRRUS_ID_CLGD5428:
|
||||||
if (info->local & 0x100)
|
if (info->local & 0x100)
|
||||||
romfn = BIOS_GD5428_DIAMOND_B1_VLB_PATH;
|
if (gd54xx->vlb)
|
||||||
|
romfn = BIOS_GD5428_DIAMOND_B1_VLB_PATH;
|
||||||
|
else
|
||||||
|
romfn = BIOS_GD5428_BOCA_ISA_PATH;
|
||||||
else {
|
else {
|
||||||
if (gd54xx->vlb)
|
if (gd54xx->vlb)
|
||||||
romfn = BIOS_GD5428_PATH;
|
romfn = BIOS_GD5428_PATH;
|
||||||
@@ -4181,6 +4185,12 @@ gd5428_diamond_b1_available(void)
|
|||||||
return rom_present(BIOS_GD5428_DIAMOND_B1_VLB_PATH);
|
return rom_present(BIOS_GD5428_DIAMOND_B1_VLB_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
gd5428_boca_isa_available(void)
|
||||||
|
{
|
||||||
|
return rom_present(BIOS_GD5428_BOCA_ISA_PATH);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
gd5428_isa_available(void)
|
gd5428_isa_available(void)
|
||||||
{
|
{
|
||||||
@@ -4694,6 +4704,20 @@ const device_t gd5428_diamond_speedstar_pro_b1_vlb_device = {
|
|||||||
.config = gd5426_config
|
.config = gd5426_config
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const device_t gd5428_boca_isa_device = {
|
||||||
|
.name = "Cirrus Logic GD5428 (ISA) (BOCA Research 4610)",
|
||||||
|
.internal_name = "cl_gd5428_boca_isa",
|
||||||
|
.flags = DEVICE_AT | DEVICE_ISA,
|
||||||
|
.local = CIRRUS_ID_CLGD5428 | 0x100,
|
||||||
|
.init = gd54xx_init,
|
||||||
|
.close = gd54xx_close,
|
||||||
|
.reset = gd54xx_reset,
|
||||||
|
{ .available = gd5428_boca_isa_available },
|
||||||
|
.speed_changed = gd54xx_speed_changed,
|
||||||
|
.force_redraw = gd54xx_force_redraw,
|
||||||
|
.config = gd5426_config
|
||||||
|
};
|
||||||
|
|
||||||
const device_t gd5428_mca_device = {
|
const device_t gd5428_mca_device = {
|
||||||
.name = "Cirrus Logic GD5428 (MCA) (IBM SVGA Adapter/A)",
|
.name = "Cirrus Logic GD5428 (MCA) (IBM SVGA Adapter/A)",
|
||||||
.internal_name = "ibm1mbsvga",
|
.internal_name = "ibm1mbsvga",
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ video_cards[] = {
|
|||||||
{ &gd5422_isa_device },
|
{ &gd5422_isa_device },
|
||||||
{ &gd5426_isa_device },
|
{ &gd5426_isa_device },
|
||||||
{ &gd5426_diamond_speedstar_pro_a1_isa_device },
|
{ &gd5426_diamond_speedstar_pro_a1_isa_device },
|
||||||
|
{ &gd5428_boca_isa_device },
|
||||||
{ &gd5428_isa_device },
|
{ &gd5428_isa_device },
|
||||||
{ &gd5429_isa_device },
|
{ &gd5429_isa_device },
|
||||||
{ &gd5434_isa_device },
|
{ &gd5434_isa_device },
|
||||||
|
|||||||
Reference in New Issue
Block a user