summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/a2bus/uthernet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/a2bus/uthernet.cpp')
-rw-r--r--src/devices/bus/a2bus/uthernet.cpp74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/devices/bus/a2bus/uthernet.cpp b/src/devices/bus/a2bus/uthernet.cpp
new file mode 100644
index 00000000000..734edadcf1a
--- /dev/null
+++ b/src/devices/bus/a2bus/uthernet.cpp
@@ -0,0 +1,74 @@
+// license:BSD-3-Clause
+// copyright-holders:R. Belmont
+/*********************************************************************
+
+ uthernet.cpp
+
+ Apple II Uthernet Card
+
+*********************************************************************/
+
+#include "emu.h"
+#include "uthernet.h"
+
+/***************************************************************************
+ PARAMETERS
+***************************************************************************/
+
+//**************************************************************************
+// GLOBAL VARIABLES
+//**************************************************************************
+
+DEFINE_DEVICE_TYPE(A2BUS_UTHERNET, a2bus_uthernet_device, "a2uthernet", "Uthernet")
+
+//**************************************************************************
+// LIVE DEVICE
+//**************************************************************************
+
+a2bus_uthernet_device::a2bus_uthernet_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
+ a2bus_uthernet_device(mconfig, A2BUS_UTHERNET, tag, owner, clock)
+{
+}
+
+a2bus_uthernet_device::a2bus_uthernet_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, type, tag, owner, clock),
+ device_a2bus_card_interface(mconfig, *this),
+ m_netinf(*this, "cs8900a")
+{
+}
+
+void a2bus_uthernet_device::device_add_mconfig(machine_config &config)
+{
+ CS8900A(config, m_netinf, 20_MHz_XTAL); // see CS8900A data sheet sec 3.13
+}
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void a2bus_uthernet_device::device_start()
+{
+}
+
+void a2bus_uthernet_device::device_reset()
+{
+}
+
+/*-------------------------------------------------
+ read_c0nx - called for reads from this card's c0nx space
+-------------------------------------------------*/
+
+uint8_t a2bus_uthernet_device::read_c0nx(uint8_t offset)
+{
+ return m_netinf->read(offset);
+}
+
+/*-------------------------------------------------
+ write_c0nx - called for writes to this card's c0nx space
+-------------------------------------------------*/
+
+void a2bus_uthernet_device::write_c0nx(uint8_t offset, uint8_t data)
+{
+ m_netinf->write(offset,data);
+}
+
fd2e06cbbb8c?s=128&d=retro' /> Aaron Giles2008-09-271-8/+8 * Changed MAKE_RGB macro to set the alpha to 255 instead of 0. Updated Aaron Giles2008-09-272-5/+6 * 02410: -aviwrite: files over 2 gigs sometimes get cut off Aaron Giles2008-09-271-2/+7 * Cleanups and version bump.mame0127u5 Aaron Giles2008-09-261-3/+3 * From: Christophe Jaillet [mailto:christophe.jaillet@wanadoo.fr] Aaron Giles2008-09-261-8/+24 * From: Atari Ace [mailto:atari_ace@verizon.net] Aaron Giles2008-09-261-2/+2 * Cleanups and version bump.mame0127u4 Aaron Giles2008-09-181-2/+2 * Changed requirements for laserdisc CHDs to require a new chunk of Aaron Giles2008-09-183-1/+93 * Cleanups and version bump.mame0127u3 Aaron Giles2008-09-111-1/+1 * Added a core_fopen_ram_copy() call, similar to core_fopen_ram() except that it Nathan Woods2008-09-062-4/+38 * Cleanups and version bump.mame0127u1 Aaron Giles2008-08-281-1/+1 * Fixed bug when writing AVI files with more than one RIFF chunk. Aaron Giles2008-08-211-1/+3 * Cleanups and version bump.mame0127 Aaron Giles2008-08-191-2/+2 * Added new generic laserdisc VIDEO_UPDATE handler to the laserdisc code. Aaron Giles2008-08-181-3/+3 * Cleanups and version bump.mame0126u5 Aaron Giles2008-08-142-123/+123 * Added new flag to menu items: MENU_FLAG_DISABLE, which means the Aaron Giles2008-08-132-2/+41 * Added video level detection and reporting to ldverify. Aaron Giles2008-08-122-8/+0 * Rejiggered huffman.c to support multiple interleaving Aaron Giles2008-08-126-732/+1534 * Cleanups and version bump.mame0126u4 Aaron Giles2008-08-072-31/+31 * ldverify now prints transient progress to stderr, allows for frame #0, Aaron Giles2008-08-072-11/+99 * Removed obsolete makemeta tool. Replaced it with new ldverify Aaron Giles2008-08-054-32/+151 * Added proper laserdisc support for MACH 3, Us vs. Them, and Cobra Aaron Giles2008-08-041-21/+14 * Removed per-frame metadata support from chdman. Creating an A/V Aaron Giles2008-08-013-5/+13 * Cleanups/version bump.mame0126u3 Aaron Giles2008-07-311-1/+1 * Added new options 'cheatpath' to specify one or more paths for cheat Aaron Giles2008-07-312-0/+4 * From: Atari Ace [mailto:atari_ace@verizon.net] Aaron Giles2008-07-241-3/+1 * Cleanups.