mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
-sbus: Added a skeleton device for the Artecon SB300P 3-serial 1-parallel SBus card. [Ryan Holtz]
This commit is contained in:
parent
d5ff94a4c7
commit
59254bc5de
@ -3038,6 +3038,8 @@ end
|
||||
|
||||
if (BUSES["SBUS"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/bus/sbus/artecon.cpp",
|
||||
MAME_DIR .. "src/devices/bus/sbus/artecon.h",
|
||||
MAME_DIR .. "src/devices/bus/sbus/bwtwo.cpp",
|
||||
MAME_DIR .. "src/devices/bus/sbus/bwtwo.h",
|
||||
MAME_DIR .. "src/devices/bus/sbus/cgsix.cpp",
|
||||
|
72
src/devices/bus/sbus/artecon.cpp
Normal file
72
src/devices/bus/sbus/artecon.cpp
Normal file
@ -0,0 +1,72 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
/***************************************************************************
|
||||
|
||||
Artecon SB-300P 3-serial 1-parallel SBus card skeleton
|
||||
|
||||
The Artecon SB series of SBus cards uses up to 4 Cirrus Logic
|
||||
CL-CD1400 Four-Channel Serial/Parallel Communications Engines.
|
||||
|
||||
Each chip supports up to four full-duplex serial channels, or three
|
||||
full-duplex serial channels and one high-speed bidirectional parallel
|
||||
channel.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "artecon.h"
|
||||
|
||||
DEFINE_DEVICE_TYPE(SBUS_SB300P, sbus_artecon_device, "sb300p", "Artecon SB-300P 3S/1P controller")
|
||||
|
||||
void sbus_artecon_device::mem_map(address_map &map)
|
||||
{
|
||||
map(0x00000000, 0x01ffffff).rw(FUNC(sbus_artecon_device::unknown_r), FUNC(sbus_artecon_device::unknown_w));
|
||||
map(0x00000000, 0x00003fff).r(FUNC(sbus_artecon_device::rom_r));
|
||||
}
|
||||
|
||||
ROM_START( sbus_artecon )
|
||||
ROM_REGION32_BE(0x8000, "prom", ROMREGION_ERASEFF)
|
||||
ROM_LOAD( "artecon_sbus_port.bin", 0x0000, 0x4000, CRC(bced6981) SHA1(1c6006fb8cb555eff0cb7c2783c776d05c6797f8))
|
||||
ROM_END
|
||||
|
||||
const tiny_rom_entry *sbus_artecon_device::device_rom_region() const
|
||||
{
|
||||
return ROM_NAME( sbus_artecon );
|
||||
}
|
||||
|
||||
void sbus_artecon_device::device_add_mconfig(machine_config &config)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
sbus_artecon_device::sbus_artecon_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: device_t(mconfig, SBUS_SB300P, tag, owner, clock)
|
||||
, device_sbus_card_interface(mconfig, *this)
|
||||
, m_rom(*this, "prom")
|
||||
{
|
||||
}
|
||||
|
||||
void sbus_artecon_device::device_start()
|
||||
{
|
||||
}
|
||||
|
||||
void sbus_artecon_device::install_device()
|
||||
{
|
||||
m_sbus->install_device(m_base, m_base + 0x1ffffff, *this, &sbus_artecon_device::mem_map);
|
||||
}
|
||||
|
||||
READ32_MEMBER(sbus_artecon_device::unknown_r)
|
||||
{
|
||||
logerror("%s: unknown_r: %08x & %08x\n", machine().describe_context(), offset << 2, mem_mask);
|
||||
return 0;
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(sbus_artecon_device::unknown_w)
|
||||
{
|
||||
logerror("%s: unknown_w: %08x = %08x & %08x\n", machine().describe_context(), offset << 2, data, mem_mask);
|
||||
}
|
||||
|
||||
READ32_MEMBER(sbus_artecon_device::rom_r)
|
||||
{
|
||||
return ((uint32_t*)m_rom->base())[offset];
|
||||
}
|
45
src/devices/bus/sbus/artecon.h
Normal file
45
src/devices/bus/sbus/artecon.h
Normal file
@ -0,0 +1,45 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
/***************************************************************************
|
||||
|
||||
Artecon SB-300P 3-serial 1-parallel SBus card skeleton
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_BUS_SBUS_ARTECON_H
|
||||
#define MAME_BUS_SBUS_ARTECON_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "sbus.h"
|
||||
|
||||
|
||||
class sbus_artecon_device : public device_t, public device_sbus_card_interface
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
sbus_artecon_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||
|
||||
protected:
|
||||
// device_t overrides
|
||||
virtual const tiny_rom_entry *device_rom_region() const override;
|
||||
virtual void device_add_mconfig(machine_config &config) override;
|
||||
virtual void device_start() override;
|
||||
|
||||
// device_sbus_slot_interface overrides
|
||||
virtual void install_device() override;
|
||||
|
||||
DECLARE_READ32_MEMBER(unknown_r);
|
||||
DECLARE_WRITE32_MEMBER(unknown_w);
|
||||
DECLARE_READ32_MEMBER(rom_r);
|
||||
|
||||
private:
|
||||
void mem_map(address_map &map) override;
|
||||
|
||||
required_memory_region m_rom;
|
||||
};
|
||||
|
||||
|
||||
DECLARE_DEVICE_TYPE(SBUS_SB300P, sbus_artecon_device)
|
||||
|
||||
#endif // MAME_BUS_SBUS_ARTECON_H
|
@ -17,6 +17,7 @@
|
||||
#include "sunpc.h"
|
||||
|
||||
// Peripheral boards
|
||||
#include "artecon.h"
|
||||
#include "hme.h"
|
||||
|
||||
#include "sbus.h"
|
||||
@ -29,6 +30,7 @@ void sbus_cards(device_slot_interface &device)
|
||||
device.option_add("turbogxp", SBUS_TURBOGXP); /* Sun TurboGX+ 8-bit color display board */
|
||||
device.option_add("sunpc", SBUS_SUNPC); /* Sun SunPC 5x86 Accelerator board */
|
||||
device.option_add("hme", SBUS_HME); /* Sun SunSwift 10/100 + Fast Wide SCSI "Colossus" board */
|
||||
device.option_add("sb300p", SBUS_SB300P); /* Artecon CB300P 3-serial/4-parallel board */
|
||||
}
|
||||
|
||||
DEFINE_DEVICE_TYPE(SBUS_SLOT, sbus_slot_device, "sbus_slot", "Sun SBus Slot")
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#include "sparcdasm.h"
|
||||
|
||||
#define SPARCV8 (0)
|
||||
#define SPARCV8 (1)
|
||||
#define LOG_FCODES (0)
|
||||
|
||||
#if LOG_FCODES
|
||||
|
Loading…
Reference in New Issue
Block a user