Merge pull request #2121 from lemondrops/patch-2

Move the Tandy PSG ISA clones to the Dev branch
This commit is contained in:
Jasmine Iwanek
2022-02-14 01:21:33 -05:00
committed by GitHub
8 changed files with 71 additions and 39 deletions

View File

@@ -135,6 +135,9 @@ endif()
cmake_dependent_option(AMD_K5 "AMD K5" ON "DEV_BRANCH" OFF) cmake_dependent_option(AMD_K5 "AMD K5" ON "DEV_BRANCH" OFF)
cmake_dependent_option(CYRIX_6X86 "Cyrix 6x86" ON "DEV_BRANCH" OFF) cmake_dependent_option(CYRIX_6X86 "Cyrix 6x86" ON "DEV_BRANCH" OFF)
cmake_dependent_option(GUSMAX "Gravis UltraSound MAX" ON "DEV_BRANCH" OFF) cmake_dependent_option(GUSMAX "Gravis UltraSound MAX" ON "DEV_BRANCH" OFF)
cmake_dependent_option(ISAMEM_RAMPAGE "AST Rampage" ON "DEV_BRANCH" OFF)
cmake_dependent_option(ISAMEM_IAB "Intel Above Board" ON "DEV_BRANCH" OFF)
cmake_dependent_option(ISAMEM_BRAT "BocaRAM/AT" ON "DEV_BRANCH" OFF)
cmake_dependent_option(LASERXT "VTech Laser XT" ON "DEV_BRANCH" OFF) cmake_dependent_option(LASERXT "VTech Laser XT" ON "DEV_BRANCH" OFF)
cmake_dependent_option(MGA "Matrox Mystique graphics adapters" ON "DEV_BRANCH" OFF) cmake_dependent_option(MGA "Matrox Mystique graphics adapters" ON "DEV_BRANCH" OFF)
cmake_dependent_option(NO_SIO "Machines without emulated Super I/O chips" ON "DEV_BRANCH" OFF) cmake_dependent_option(NO_SIO "Machines without emulated Super I/O chips" ON "DEV_BRANCH" OFF)
@@ -142,12 +145,10 @@ cmake_dependent_option(OLIVETTI "Olivetti M290"
cmake_dependent_option(OPEN_AT "OpenAT" ON "DEV_BRANCH" OFF) cmake_dependent_option(OPEN_AT "OpenAT" ON "DEV_BRANCH" OFF)
cmake_dependent_option(PAS16 "Pro Audio Spectrum 16" OFF "DEV_BRANCH" OFF) cmake_dependent_option(PAS16 "Pro Audio Spectrum 16" OFF "DEV_BRANCH" OFF)
cmake_dependent_option(SIO_DETECT "Super I/O Detection Helper" ON "DEV_BRANCH" OFF) cmake_dependent_option(SIO_DETECT "Super I/O Detection Helper" ON "DEV_BRANCH" OFF)
cmake_dependent_option(TANDY_ISA "Tandy PSG ISA clone boards" ON "DEV_BRANCH" OFF)
cmake_dependent_option(VGAWONDER "ATI VGA Wonder (ATI-18800)" ON "DEV_BRANCH" OFF) cmake_dependent_option(VGAWONDER "ATI VGA Wonder (ATI-18800)" ON "DEV_BRANCH" OFF)
cmake_dependent_option(VNC "VNC renderer" OFF "DEV_BRANCH" OFF) cmake_dependent_option(VNC "VNC renderer" OFF "DEV_BRANCH" OFF)
cmake_dependent_option(XL24 "ATI VGA Wonder XL24 (ATI-28800-6)" ON "DEV_BRANCH" OFF) cmake_dependent_option(XL24 "ATI VGA Wonder XL24 (ATI-28800-6)" ON "DEV_BRANCH" OFF)
cmake_dependent_option(ISAMEM_RAMPAGE "AST Rampage" ON "DEV_BRANCH" OFF)
cmake_dependent_option(ISAMEM_IAB "Intel Above Board" ON "DEV_BRANCH" OFF)
cmake_dependent_option(ISAMEM_BRAT "BocaRAM/AT" ON "DEV_BRANCH" OFF)
# Ditto but for Qt # Ditto but for Qt
if (QT) if (QT)

View File

@@ -19,10 +19,6 @@ add_library(dev OBJECT bugger.c cassette.c cartridge.c hasp.c hwm.c hwm_lm75.c h
smbus_piix4.c smbus_ali7101.c keyboard.c keyboard_xt.c keyboard_at.c smbus_piix4.c smbus_ali7101.c keyboard.c keyboard_xt.c keyboard_at.c
mouse.c mouse_bus.c mouse_serial.c mouse_ps2.c phoenix_486_jumper.c) mouse.c mouse_bus.c mouse_serial.c mouse_ps2.c phoenix_486_jumper.c)
if(LASERXT)
target_compile_definitions(dev PRIVATE USE_LASERXT)
endif()
if(ISAMEM_RAMPAGE) if(ISAMEM_RAMPAGE)
target_compile_definitions(dev PRIVATE USE_ISAMEM_RAMPAGE) target_compile_definitions(dev PRIVATE USE_ISAMEM_RAMPAGE)
endif() endif()
@@ -34,3 +30,7 @@ endif()
if(ISAMEM_BRAT) if(ISAMEM_BRAT)
target_compile_definitions(dev PRIVATE USE_ISAMEM_BRAT) target_compile_definitions(dev PRIVATE USE_ISAMEM_BRAT)
endif() endif()
if(LASERXT)
target_compile_definitions(dev PRIVATE USE_LASERXT)
endif()

View File

@@ -103,9 +103,11 @@ extern const device_t pas16_device;
extern const device_t ps1snd_device; extern const device_t ps1snd_device;
/* Tandy PSSJ */ /* Tandy PSSJ */
extern const device_t tndy_device;
extern const device_t pssj_device; extern const device_t pssj_device;
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
extern const device_t pssj_isa_device; extern const device_t pssj_isa_device;
extern const device_t tndy_device;
#endif
/* Creative Labs Sound Blaster */ /* Creative Labs Sound Blaster */
extern const device_t sb_1_device; extern const device_t sb_1_device;

View File

@@ -55,5 +55,9 @@ if(GUSMAX)
target_compile_definitions(snd PRIVATE USE_GUSMAX) target_compile_definitions(snd PRIVATE USE_GUSMAX)
endif() endif()
if(TANDY_ISA)
target_compile_definitions(snd PRIVATE USE_TANDY_ISA)
endif()
add_subdirectory(resid-fp) add_subdirectory(resid-fp)
target_link_libraries(86Box resid-fp) target_link_libraries(86Box resid-fp)

View File

@@ -215,6 +215,7 @@ void *pssj_1e0_init(const device_t *info)
return pssj; return pssj;
} }
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
void *pssj_isa_init(const device_t *info) void *pssj_isa_init(const device_t *info)
{ {
pssj_t *pssj = malloc(sizeof(pssj_t)); pssj_t *pssj = malloc(sizeof(pssj_t));
@@ -230,6 +231,7 @@ void *pssj_isa_init(const device_t *info)
return pssj; return pssj;
} }
#endif
void pssj_close(void *p) void pssj_close(void *p)
{ {
@@ -238,6 +240,7 @@ void pssj_close(void *p)
free(pssj); free(pssj);
} }
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
static const device_config_t pssj_isa_config[] = static const device_config_t pssj_isa_config[] =
{ {
{ {
@@ -261,6 +264,7 @@ static const device_config_t pssj_isa_config[] =
"", "", -1 "", "", -1
} }
}; };
#endif
const device_t pssj_device = const device_t pssj_device =
{ {
@@ -290,6 +294,7 @@ const device_t pssj_1e0_device =
NULL NULL
}; };
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
const device_t pssj_isa_device = const device_t pssj_isa_device =
{ {
"Tandy PSSJ Clone", "Tandy PSSJ Clone",
@@ -304,3 +309,4 @@ const device_t pssj_isa_device =
NULL, NULL,
pssj_isa_config pssj_isa_config
}; };
#endif

View File

@@ -224,6 +224,7 @@ void *ncr8496_device_init(const device_t *info)
return sn76489; return sn76489;
} }
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
void *tndy_device_init(const device_t *info) void *tndy_device_init(const device_t *info)
{ {
sn76489_t *sn76489 = malloc(sizeof(sn76489_t)); sn76489_t *sn76489 = malloc(sizeof(sn76489_t));
@@ -235,6 +236,7 @@ void *tndy_device_init(const device_t *info)
return sn76489; return sn76489;
} }
#endif
void sn76489_device_close(void *p) void sn76489_device_close(void *p)
{ {
@@ -243,6 +245,7 @@ void sn76489_device_close(void *p)
free(sn76489); free(sn76489);
} }
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
static const device_config_t tndy_config[] = static const device_config_t tndy_config[] =
{ {
{ {
@@ -266,6 +269,7 @@ static const device_config_t tndy_config[] =
"", "", -1 "", "", -1
} }
}; };
#endif
const device_t sn76489_device = const device_t sn76489_device =
{ {
@@ -291,6 +295,7 @@ const device_t ncr8496_device =
NULL NULL
}; };
#if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
const device_t tndy_device = const device_t tndy_device =
{ {
"TNDY", "TNDY",
@@ -300,5 +305,7 @@ const device_t tndy_device =
tndy_device_init, tndy_device_init,
sn76489_device_close, sn76489_device_close,
NULL, { NULL }, NULL, NULL, { NULL }, NULL,
NULL,
tndy_config tndy_config
}; };
#endif

View File

@@ -123,8 +123,10 @@ static const SOUND_CARD sound_cards[] =
#if defined(DEV_BRANCH) && defined(USE_PAS16) #if defined(DEV_BRANCH) && defined(USE_PAS16)
{ &pas16_device }, { &pas16_device },
#endif #endif
{ &tndy_device }, #if defined(DEV_BRANCH) && defined(USE_TANDY_ISA)
{ &pssj_isa_device }, { &pssj_isa_device },
{ &tndy_device },
#endif
{ &wss_device }, { &wss_device },
{ &adlib_mca_device }, { &adlib_mca_device },
{ &ncr_business_audio_device }, { &ncr_business_audio_device },

View File

@@ -42,6 +42,15 @@ ifeq ($(DEV_BUILD), y)
ifndef GUSMAX ifndef GUSMAX
GUSMAX := y GUSMAX := y
endif endif
ifndef ISAMEM_RAMPAGE
ISAMEM_RAMPAGE := y
endif
ifndef ISAMEM_IAB
ISAMEM_IAB := y
endif
ifndef ISAMEM_BRAT
ISAMEM_BRAT := y
endif
ifndef LASERXT ifndef LASERXT
LASERXT := y LASERXT := y
endif endif
@@ -63,21 +72,15 @@ ifeq ($(DEV_BUILD), y)
ifndef VGAWONDER ifndef VGAWONDER
VGAWONDER := y VGAWONDER := y
endif endif
ifndef TANDY_ISA
TANDY_ISA := y
endif
ifndef VNC ifndef VNC
VNC := y VNC := y
endif endif
ifndef XL24 ifndef XL24
XL24 := y XL24 := y
endif endif
ifndef ISAMEM_RAMPAGE
ISAMEM_RAMPAGE := y
endif
ifndef ISAMEM_IAB
ISAMEM_IAB := y
endif
ifndef ISAMEM_BRAT
ISAMEM_BRAT := y
endif
ifndef OLIVETTI ifndef OLIVETTI
OLIVETTI := y OLIVETTI := y
endif endif
@@ -100,6 +103,15 @@ else
ifndef GUSMAX ifndef GUSMAX
GUSMAX := n GUSMAX := n
endif endif
ifndef ISAMEM_RAMPAGE
ISAMEM_RAMPAGE := n
endif
ifndef ISAMEM_IAB
ISAMEM_IAB := n
endif
ifndef ISAMEM_BRAT
ISAMEM_BRAT := n
endif
ifndef LASERXT ifndef LASERXT
LASERXT := n LASERXT := n
endif endif
@@ -121,21 +133,15 @@ else
ifndef VGAWONDER ifndef VGAWONDER
VGAWONDER := n VGAWONDER := n
endif endif
ifndef TANDY_ISA
TANDY_ISA := n
endif
ifndef VNC ifndef VNC
VNC := n VNC := n
endif endif
ifndef XL24 ifndef XL24
XL24 := n XL24 := n
endif endif
ifndef ISAMEM_RAMPAGE
ISAMEM_RAMPAGE := n
endif
ifndef ISAMEM_IAB
ISAMEM_IAB := n
endif
ifndef ISAMEM_BRAT
ISAMEM_BRAT := n
endif
ifndef OLIVETTI ifndef OLIVETTI
OLIVETTI := n OLIVETTI := n
endif endif
@@ -428,6 +434,18 @@ ifeq ($(GUSMAX), y)
OPTS += -DUSE_GUSMAX OPTS += -DUSE_GUSMAX
endif endif
ifeq ($(ISAMEM_RAMPAGE), y)
OPTS += -DUSE_ISAMEM_RAMPAGE
endif
ifeq ($(ISAMEM_IAB), y)
OPTS += -DUSE_ISAMEM_IAB
endif
ifeq ($(ISAMEM_BRAT), y)
OPTS += -DUSE_ISAMEM_BRAT
endif
ifeq ($(LASERXT), y) ifeq ($(LASERXT), y)
OPTS += -DUSE_LASERXT OPTS += -DUSE_LASERXT
DEVBROBJ += m_xt_laserxt.o DEVBROBJ += m_xt_laserxt.o
@@ -456,6 +474,10 @@ OPTS += -DUSE_SIO_DETECT
DEVBROBJ += sio_detect.o DEVBROBJ += sio_detect.o
endif endif
ifeq ($(TANDY_ISA), y)
OPTS += -DUSE_TANDY_ISA
endif
ifeq ($(VGAWONDER), y) ifeq ($(VGAWONDER), y)
OPTS += -DUSE_VGAWONDER OPTS += -DUSE_VGAWONDER
endif endif
@@ -464,18 +486,6 @@ ifeq ($(XL24), y)
OPTS += -DUSE_XL24 OPTS += -DUSE_XL24
endif endif
ifeq ($(ISAMEM_RAMPAGE), y)
OPTS += -DUSE_ISAMEM_RAMPAGE
endif
ifeq ($(ISAMEM_IAB), y)
OPTS += -DUSE_ISAMEM_IAB
endif
ifeq ($(ISAMEM_BRAT), y)
OPTS += -DUSE_ISAMEM_BRAT
endif
ifeq ($(OLIVETTI), y) ifeq ($(OLIVETTI), y)
OPTS += -DUSE_OLIVETTI OPTS += -DUSE_OLIVETTI
DEVBROBJ += olivetti_eva.o DEVBROBJ += olivetti_eva.o