Previous 15994 Revisions Next

r15482 Tuesday 19th June, 2012 at 14:26:18 UTC by Curt Coder
[WANGPC] WDC WIP. (nw)
[src/mess/machine]wangpc_wdc.c wangpc_wdc.h

src/mess/machine/wangpc_wdc.c
r15481r15482
2020 
2121#define Z80_TAG         "l53"
2222#define MK3882_TAG      "l07"
23#define SASIBUS_TAG      "sasi"
2423 
2524#define OPTION_DREQ1   BIT(m_option, 1)
2625#define OPTION_DREQ2   BIT(m_option, 2)
r15481r15482
102101 
103102 
104103//-------------------------------------------------
105//  SCSIBus_interface sasi_intf
106//-------------------------------------------------
107 
108static const SCSIConfigTable sasi_dev_table =
109{
110   1,
111   {
112      { SCSI_ID_0, "harddisk0" }
113   }
114};
115 
116static const SCSIBus_interface sasi_intf =
117{
118    &sasi_dev_table,
119    NULL,
120   DEVCB_NULL,
121   DEVCB_NULL,
122   DEVCB_NULL,
123   DEVCB_NULL,
124   DEVCB_NULL,
125   DEVCB_NULL,
126   DEVCB_NULL
127};
128 
129 
130//-------------------------------------------------
131104//  MACHINE_CONFIG_FRAGMENT( wangpc_wdc )
132105//-------------------------------------------------
133106 
r15481r15482
139112 
140113   MCFG_Z80CTC_ADD(MK3882_TAG, 2000000, ctc_intf)
141114 
142   MCFG_SCSIBUS_ADD(SASIBUS_TAG, sasi_intf)
143115   MCFG_DEVICE_ADD("harddisk0", SCSIHD, 0)
144116MACHINE_CONFIG_END
145117 
r15481r15482
187159   device_t(mconfig, WANGPC_WDC, "Wang PC-PM001", tag, owner, clock),
188160   device_wangpcbus_card_interface(mconfig, *this),
189161   m_maincpu(*this, Z80_TAG),
190   m_ctc(*this, MK3882_TAG),
191   m_sasibus(*this, SASIBUS_TAG)
162   m_ctc(*this, MK3882_TAG)
192163{
193164}
194165 
src/mess/machine/wangpc_wdc.h
r15481r15482
1616#include "emu.h"
1717#include "cpu/z80/z80.h"
1818#include "imagedev/harddriv.h"
19#include "machine/scsibus.h"
2019#include "machine/wangpcbus.h"
2120#include "machine/z80ctc.h"
2221 
r15481r15482
7170 
7271   required_device<cpu_device> m_maincpu;
7372   required_device<z80ctc_device> m_ctc;
74   required_device<device_t> m_sasibus;
7573 
7674   UINT8 m_status;
7775   UINT8 m_option;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team