mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
isa: added hookup for Trident TGUI9680 video card.
This commit is contained in:
parent
c4577f6270
commit
038c64e4de
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -983,6 +983,8 @@ src/emu/bus/isa/svga_cirrus.c svneol=native#text/plain
|
||||
src/emu/bus/isa/svga_cirrus.h svneol=native#text/plain
|
||||
src/emu/bus/isa/svga_s3.c svneol=native#text/plain
|
||||
src/emu/bus/isa/svga_s3.h svneol=native#text/plain
|
||||
src/emu/bus/isa/svga_trident.c svneol=native#text/plain
|
||||
src/emu/bus/isa/svga_trident.h svneol=native#text/plain
|
||||
src/emu/bus/isa/svga_tseng.c svneol=native#text/plain
|
||||
src/emu/bus/isa/svga_tseng.h svneol=native#text/plain
|
||||
src/emu/bus/isa/vga.c svneol=native#text/plain
|
||||
|
@ -416,6 +416,7 @@ BUSOBJS += $(BUSOBJ)/isa/xsu_cards.o
|
||||
BUSOBJS += $(BUSOBJ)/isa/sc499.o
|
||||
BUSOBJS += $(BUSOBJ)/isa/3c505.o
|
||||
BUSOBJS += $(BUSOBJ)/isa/aga.o
|
||||
BUSOBJS += $(BUSOBJ)/isa/svga_trident.o
|
||||
endif
|
||||
|
||||
#-------------------------------------------------
|
||||
|
@ -19,6 +19,7 @@ SLOT_INTERFACE_START( pc_isa8_cards )
|
||||
SLOT_INTERFACE("aga_pc200", ISA8_AGA_PC200)
|
||||
SLOT_INTERFACE("ega", ISA8_EGA)
|
||||
SLOT_INTERFACE("svga_et4k", ISA8_SVGA_ET4K)
|
||||
SLOT_INTERFACE("tgui9680",ISA8_SVGA_TGUI9680)
|
||||
SLOT_INTERFACE("com", ISA8_COM)
|
||||
SLOT_INTERFACE("fdc", ISA8_FDC_SUPERIO)
|
||||
SLOT_INTERFACE("fdc_xt", ISA8_FDC_XT)
|
||||
@ -57,6 +58,7 @@ SLOT_INTERFACE_START( pc_isa16_cards )
|
||||
SLOT_INTERFACE("vga", ISA8_VGA)
|
||||
SLOT_INTERFACE("svga_et4k", ISA8_SVGA_ET4K)
|
||||
SLOT_INTERFACE("svga_dm",ISA8_SVGA_CIRRUS)
|
||||
SLOT_INTERFACE("tgui9680",ISA8_SVGA_TGUI9680)
|
||||
SLOT_INTERFACE("com", ISA8_COM)
|
||||
SLOT_INTERFACE("comat", ISA8_COM_AT)
|
||||
SLOT_INTERFACE("fdc", ISA8_FDC_AT)
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "svga_cirrus.h"
|
||||
#include "svga_s3.h"
|
||||
#include "svga_tseng.h"
|
||||
#include "svga_trident.h"
|
||||
|
||||
// storage
|
||||
#include "fdc.h"
|
||||
|
94
src/emu/bus/isa/svga_trident.c
Normal file
94
src/emu/bus/isa/svga_trident.c
Normal file
@ -0,0 +1,94 @@
|
||||
/*
|
||||
* svga_trident.c
|
||||
*
|
||||
* Created on: 6/09/2014
|
||||
*/
|
||||
|
||||
#include "emu.h"
|
||||
#include "svga_trident.h"
|
||||
#include "video/pc_vga.h"
|
||||
|
||||
|
||||
ROM_START( tgui9680 )
|
||||
ROM_REGION( 0x8000, "tgui9680", 0 )
|
||||
ROM_LOAD16_BYTE( "trident_tgui9680_bios.bin", 0x0000, 0x4000, CRC(1eebde64) SHA1(67896a854d43a575037613b3506aea6dae5d6a19) )
|
||||
ROM_CONTINUE( 0x0001, 0x4000 )
|
||||
ROM_END
|
||||
|
||||
//**************************************************************************
|
||||
// GLOBAL VARIABLES
|
||||
//**************************************************************************
|
||||
|
||||
const device_type ISA8_SVGA_TGUI9680 = &device_creator<isa8_svga_tgui9680_device>;
|
||||
|
||||
|
||||
static MACHINE_CONFIG_FRAGMENT( vga_trident )
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_RAW_PARAMS(XTAL_25_1748MHz,900,0,640,526,0,480)
|
||||
MCFG_SCREEN_UPDATE_DEVICE("vga", trident_vga_device, screen_update)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
|
||||
MCFG_DEVICE_ADD("vga", TRIDENT_VGA, 0)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
//-------------------------------------------------
|
||||
// machine_config_additions - device-specific
|
||||
// machine configurations
|
||||
//-------------------------------------------------
|
||||
|
||||
machine_config_constructor isa8_svga_tgui9680_device::device_mconfig_additions() const
|
||||
{
|
||||
return MACHINE_CONFIG_NAME( vga_trident );
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// rom_region - device-specific ROM region
|
||||
//-------------------------------------------------
|
||||
|
||||
const rom_entry *isa8_svga_tgui9680_device::device_rom_region() const
|
||||
{
|
||||
return ROM_NAME( tgui9680 );
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
// LIVE DEVICE
|
||||
//**************************************************************************
|
||||
|
||||
//-------------------------------------------------
|
||||
// isa8_vga_device - constructor
|
||||
//-------------------------------------------------
|
||||
|
||||
isa8_svga_tgui9680_device::isa8_svga_tgui9680_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
|
||||
device_t(mconfig, ISA8_SVGA_TGUI9680, "Trident TGUI9680 Graphics Card", tag, owner, clock, "tgui9680", __FILE__),
|
||||
device_isa8_card_interface(mconfig, *this)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_start - device-specific startup
|
||||
//-------------------------------------------------
|
||||
READ8_MEMBER(isa8_svga_tgui9680_device::input_port_0_r ) { return 0xff; } //return space.machine().root_device().ioport("IN0")->read(); }
|
||||
|
||||
void isa8_svga_tgui9680_device::device_start()
|
||||
{
|
||||
set_isa_device();
|
||||
|
||||
m_vga = subdevice<trident_vga_device>("vga");
|
||||
|
||||
m_isa->install_rom(this, 0xc0000, 0xc7fff, 0, 0, "tgui9680", "tgui9680");
|
||||
|
||||
m_isa->install_device(0x3b0, 0x3bf, 0, 0, read8_delegate(FUNC(trident_vga_device::port_03b0_r),m_vga), write8_delegate(FUNC(trident_vga_device::port_03b0_w),m_vga));
|
||||
m_isa->install_device(0x3c0, 0x3cf, 0, 0, read8_delegate(FUNC(trident_vga_device::port_03c0_r),m_vga), write8_delegate(FUNC(trident_vga_device::port_03c0_w),m_vga));
|
||||
m_isa->install_device(0x3d0, 0x3df, 0, 0, read8_delegate(FUNC(trident_vga_device::port_03d0_r),m_vga), write8_delegate(FUNC(trident_vga_device::port_03d0_w),m_vga));
|
||||
|
||||
m_isa->install_memory(0xa0000, 0xbffff, 0, 0, read8_delegate(FUNC(trident_vga_device::mem_r),m_vga), write8_delegate(FUNC(trident_vga_device::mem_w),m_vga));
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_reset - device-specific reset
|
||||
//-------------------------------------------------
|
||||
|
||||
void isa8_svga_tgui9680_device::device_reset()
|
||||
{
|
||||
}
|
46
src/emu/bus/isa/svga_trident.h
Normal file
46
src/emu/bus/isa/svga_trident.h
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* svga_trident.h
|
||||
*
|
||||
* Created on: 6/09/2014
|
||||
*/
|
||||
|
||||
#ifndef SVGA_TRIDENT_H_
|
||||
#define SVGA_TRIDENT_H_
|
||||
|
||||
#include "emu.h"
|
||||
#include "isa.h"
|
||||
#include "video/pc_vga.h"
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
//**************************************************************************
|
||||
|
||||
// ======================> isa8_vga_device
|
||||
|
||||
class isa8_svga_tgui9680_device :
|
||||
public device_t,
|
||||
public device_isa8_card_interface
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
isa8_svga_tgui9680_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
|
||||
// optional information overrides
|
||||
virtual machine_config_constructor device_mconfig_additions() const;
|
||||
virtual const rom_entry *device_rom_region() const;
|
||||
|
||||
DECLARE_READ8_MEMBER(input_port_0_r);
|
||||
protected:
|
||||
// device-level overrides
|
||||
virtual void device_start();
|
||||
virtual void device_reset();
|
||||
private:
|
||||
trident_vga_device *m_vga;
|
||||
};
|
||||
|
||||
|
||||
// device type definition
|
||||
extern const device_type ISA8_SVGA_TGUI9680;
|
||||
|
||||
|
||||
#endif /* SVGA_TRIDENT_H_ */
|
Loading…
Reference in New Issue
Block a user