mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
-sbus: Added a skeleton device for the SunSwift 10/100 + Fast Wide SCSI SBus board. [Ryan Holtz, Andrew Liles]
This commit is contained in:
parent
07571845d8
commit
c7170bed75
@ -3042,6 +3042,8 @@ if (BUSES["SBUS"]~=null) then
|
||||
MAME_DIR .. "src/devices/bus/sbus/bwtwo.h",
|
||||
MAME_DIR .. "src/devices/bus/sbus/cgthree.cpp",
|
||||
MAME_DIR .. "src/devices/bus/sbus/cgthree.h",
|
||||
MAME_DIR .. "src/devices/bus/sbus/hme.cpp",
|
||||
MAME_DIR .. "src/devices/bus/sbus/hme.h",
|
||||
MAME_DIR .. "src/devices/bus/sbus/sunpc.cpp",
|
||||
MAME_DIR .. "src/devices/bus/sbus/sunpc.h",
|
||||
MAME_DIR .. "src/devices/bus/sbus/turbogx.cpp",
|
||||
|
71
src/devices/bus/sbus/hme.cpp
Normal file
71
src/devices/bus/sbus/hme.cpp
Normal file
@ -0,0 +1,71 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
/***************************************************************************
|
||||
|
||||
Sun SunSwift 10/100 + Fast Wide SCSI "Colossus" skeleton
|
||||
|
||||
Notable parts on board:
|
||||
- 1x 32-pin PLCC ROM, label 525 / 1409 / -08 on separate lines
|
||||
- 1x Sun STP2002QFP, marked 100-4156-05 / 609-0392458 / DP03972
|
||||
- 1x National Semiconductor DP83840AVCE-1 Ethernet Physical Layer
|
||||
- 1x National Semiconductor DP83223V Twisted Pair Transceiver
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "hme.h"
|
||||
|
||||
DEFINE_DEVICE_TYPE(SBUS_HME, sbus_hme_device, "sbus_hme", "Sun 10/100 + Fast Wide SCSI")
|
||||
|
||||
void sbus_hme_device::mem_map(address_map &map)
|
||||
{
|
||||
map(0x00000000, 0x01ffffff).rw(FUNC(sbus_hme_device::unknown_r), FUNC(sbus_hme_device::unknown_w));
|
||||
map(0x00000000, 0x0000ffff).r(FUNC(sbus_hme_device::rom_r));
|
||||
}
|
||||
|
||||
ROM_START( sbus_hme )
|
||||
ROM_REGION32_BE(0x10000, "prom", ROMREGION_ERASEFF)
|
||||
ROM_LOAD( "525 1409 -08.bin", 0x00000, 0x10000, CRC(10f0b28f) SHA1(b54bb0f01c45accdbc58c3a86f8de34949374880))
|
||||
ROM_END
|
||||
|
||||
const tiny_rom_entry *sbus_hme_device::device_rom_region() const
|
||||
{
|
||||
return ROM_NAME( sbus_hme );
|
||||
}
|
||||
|
||||
void sbus_hme_device::device_add_mconfig(machine_config &config)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
sbus_hme_device::sbus_hme_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: device_t(mconfig, SBUS_HME, tag, owner, clock)
|
||||
, device_sbus_card_interface(mconfig, *this)
|
||||
, m_rom(*this, "prom")
|
||||
{
|
||||
}
|
||||
|
||||
void sbus_hme_device::device_start()
|
||||
{
|
||||
}
|
||||
|
||||
void sbus_hme_device::install_device()
|
||||
{
|
||||
m_sbus->install_device(m_base, m_base + 0x1ffffff, *this, &sbus_hme_device::mem_map);
|
||||
}
|
||||
|
||||
READ32_MEMBER(sbus_hme_device::unknown_r)
|
||||
{
|
||||
logerror("%s: unknown_r: %08x & %08x\n", machine().describe_context(), offset << 2, mem_mask);
|
||||
return 0;
|
||||
}
|
||||
|
||||
WRITE32_MEMBER(sbus_hme_device::unknown_w)
|
||||
{
|
||||
logerror("%s: unknown_w: %08x = %08x & %08x\n", machine().describe_context(), offset << 2, data, mem_mask);
|
||||
}
|
||||
|
||||
READ32_MEMBER(sbus_hme_device::rom_r)
|
||||
{
|
||||
return ((uint32_t*)m_rom->base())[offset];
|
||||
}
|
45
src/devices/bus/sbus/hme.h
Normal file
45
src/devices/bus/sbus/hme.h
Normal file
@ -0,0 +1,45 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
/***************************************************************************
|
||||
|
||||
Sun SunSwift 10/100 + Fast Wide SCSI "Colossus" skeleton
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_BUS_SBUS_HME_H
|
||||
#define MAME_BUS_SBUS_HME_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "sbus.h"
|
||||
|
||||
|
||||
class sbus_hme_device : public device_t, public device_sbus_card_interface
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
sbus_hme_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;
|
||||
};
|
||||
|
||||
// device type definition
|
||||
DECLARE_DEVICE_TYPE(SBUS_HME, sbus_hme_device)
|
||||
|
||||
#endif // MAME_BUS_SBUS_HME_H
|
@ -16,6 +16,9 @@
|
||||
// Accelerator boards
|
||||
#include "sunpc.h"
|
||||
|
||||
// Peripheral boards
|
||||
#include "hme.h"
|
||||
|
||||
#include "sbus.h"
|
||||
|
||||
void sbus_cards(device_slot_interface &device)
|
||||
@ -24,6 +27,7 @@ void sbus_cards(device_slot_interface &device)
|
||||
device.option_add("cgthree", SBUS_CGTHREE); /* Sun cgthree color display board */
|
||||
device.option_add("turbogx", SBUS_TURBOGX); /* 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 */
|
||||
}
|
||||
|
||||
DEFINE_DEVICE_TYPE(SBUS_SLOT, sbus_slot_device, "sbus_slot", "Sun SBus Slot")
|
||||
|
Loading…
Reference in New Issue
Block a user