mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
New skeleton ISA16 device: InterLan NP600A-3 Intelligent Protocol Processor [modem7, minuszerodegrees.net]
This commit is contained in:
parent
ea53f9cb91
commit
68735745b0
@ -1284,6 +1284,8 @@ if (BUSES["ISA"]~=null) then
|
||||
MAME_DIR .. "src/devices/bus/isa/eis_sad8852.h",
|
||||
MAME_DIR .. "src/devices/bus/isa/lbaenhancer.cpp",
|
||||
MAME_DIR .. "src/devices/bus/isa/lbaenhancer.h",
|
||||
MAME_DIR .. "src/devices/bus/isa/np600.cpp",
|
||||
MAME_DIR .. "src/devices/bus/isa/np600.h",
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -56,6 +56,7 @@
|
||||
#include "ne2000.h"
|
||||
#include "3c505.h"
|
||||
#include "eis_sad8852.h"
|
||||
#include "np600.h"
|
||||
|
||||
// communication ports
|
||||
#include "lpt.h"
|
||||
@ -168,6 +169,7 @@ void pc_isa16_cards(device_slot_interface &device)
|
||||
device.option_add("sb16_lle", ISA16_SB16);
|
||||
device.option_add("mcd", ISA16_MCD);
|
||||
device.option_add("sad8852", ISA16_SAD8852);
|
||||
device.option_add("np600a3", NP600A3);
|
||||
device.option_add("wd1007a", WD1007A);
|
||||
device.option_add("ev346", EV346);
|
||||
device.option_add("jc1310", JC1310);
|
||||
|
51
src/devices/bus/isa/np600.cpp
Normal file
51
src/devices/bus/isa/np600.cpp
Normal file
@ -0,0 +1,51 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:AJR
|
||||
/*********************************************************************
|
||||
|
||||
InterLan NP600 Intelligent Protocol Processor
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "np600.h"
|
||||
|
||||
#include "cpu/i86/i186.h"
|
||||
//#include "machine/i82586.h"
|
||||
|
||||
DEFINE_DEVICE_TYPE(NP600A3, np600a3_device, "np600a3", "InterLan NP600A-3 Intelligent Protocol Processor")
|
||||
|
||||
np600a3_device::np600a3_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
|
||||
: device_t(mconfig, NP600A3, tag, owner, clock)
|
||||
, device_isa16_card_interface(mconfig, *this)
|
||||
, m_npcpu(*this, "npcpu")
|
||||
{
|
||||
}
|
||||
|
||||
void np600a3_device::device_start()
|
||||
{
|
||||
}
|
||||
|
||||
void np600a3_device::mem_map(address_map &map)
|
||||
{
|
||||
map(0x00000, 0x7ffff).ram(); // GM71256-12 x16
|
||||
map(0xfc000, 0xfffff).rom().region("npcpu", 0);
|
||||
}
|
||||
|
||||
void np600a3_device::device_add_mconfig(machine_config &config)
|
||||
{
|
||||
I80186(config, m_npcpu, 16_MHz_XTAL);
|
||||
m_npcpu->set_addrmap(AS_PROGRAM, &np600a3_device::mem_map);
|
||||
|
||||
//I82586(config, "enet", 30_MHz_XTAL / 3); // what divider?
|
||||
}
|
||||
|
||||
ROM_START(np600a3)
|
||||
ROM_REGION(0x4000, "npcpu", 0)
|
||||
ROM_LOAD16_BYTE("258-0032-00_rev_ba.u38", 0x0000, 0x2000, CRC(84ccb317) SHA1(3ecc8e265336f5d3b0f276f18dd1b7001778f2c3))
|
||||
ROM_LOAD16_BYTE("258-0033-00_rev_ba.u39", 0x0001, 0x2000, CRC(0e0f726c) SHA1(520773e235a826438b025381cd3861df86d4965d))
|
||||
ROM_END
|
||||
|
||||
const tiny_rom_entry *np600a3_device::device_rom_region() const
|
||||
{
|
||||
return ROM_NAME(np600a3);
|
||||
}
|
36
src/devices/bus/isa/np600.h
Normal file
36
src/devices/bus/isa/np600.h
Normal file
@ -0,0 +1,36 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:AJR
|
||||
/*********************************************************************
|
||||
|
||||
InterLan NP600 Intelligent Protocol Processor
|
||||
|
||||
*********************************************************************/
|
||||
|
||||
#ifndef MAME_BUS_ISA_NP600_H
|
||||
#define MAME_BUS_ISA_NP600_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "isa.h"
|
||||
|
||||
class np600a3_device : public device_t, public device_isa16_card_interface
|
||||
{
|
||||
public:
|
||||
np600a3_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
|
||||
|
||||
static constexpr feature_type unemulated_features() { return feature::LAN; }
|
||||
|
||||
protected:
|
||||
virtual void device_start() override;
|
||||
virtual void device_add_mconfig(machine_config &config) override;
|
||||
virtual const tiny_rom_entry *device_rom_region() const override;
|
||||
|
||||
private:
|
||||
void mem_map(address_map &map);
|
||||
|
||||
required_device<cpu_device> m_npcpu;
|
||||
};
|
||||
|
||||
DECLARE_DEVICE_TYPE(NP600A3, np600a3_device)
|
||||
|
||||
#endif // MAME_BUS_ISA_NP600_H
|
Loading…
Reference in New Issue
Block a user