Previous 15994 Revisions Next

r9746 Tuesday 7th December, 2010 at 08:21:36 UTC by Dirk Best
[WD17XX] Added WD2797 subtype
[src/mess/machine]wd17xx.c wd17xx.h

src/mess/machine/wd17xx.c
r9745r9746
399399
400400static int wd17xx_has_side_select(running_device *device)
401401{
402   return (device->type() == WD1773 || device->type() == WD1793 || device->type() == WD2793);
402   return (device->type() == WD1773 || device->type() == WD1793 || device->type() == WD2797);
403403}
404404
405405static int wd17xx_dden(running_device *device)
r9745r9746
21072107#define DEVTEMPLATE_DERIVED_NAME      "WD2793"
21082108#include "devtempl.h"
21092109
2110#define DEVTEMPLATE_DERIVED_ID(p,s)      p##wd2797##s
2111#define DEVTEMPLATE_DERIVED_FEATURES   0
2112#define DEVTEMPLATE_DERIVED_NAME      "WD2797"
2113#include "devtempl.h"
2114
21102115#define DEVTEMPLATE_DERIVED_ID(p,s)      p##wd177x##s
21112116#define DEVTEMPLATE_DERIVED_FEATURES   0
21122117#define DEVTEMPLATE_DERIVED_NAME      "WD179x"
r9745r9746
21242129DEFINE_LEGACY_DEVICE(WD179X, wd179x);
21252130DEFINE_LEGACY_DEVICE(WD1793, wd1793);
21262131DEFINE_LEGACY_DEVICE(WD2793, wd2793);
2132DEFINE_LEGACY_DEVICE(WD2797, wd2797);
21272133DEFINE_LEGACY_DEVICE(WD177X, wd177x);
21282134DEFINE_LEGACY_DEVICE(MB8877, mb8877);
21292135
src/mess/machine/wd17xx.h
r9745r9746
2424DECLARE_LEGACY_DEVICE(WD179X, wd179x);
2525DECLARE_LEGACY_DEVICE(WD1793, wd1793);
2626DECLARE_LEGACY_DEVICE(WD2793, wd2793);
27DECLARE_LEGACY_DEVICE(WD2797, wd2797);
2728DECLARE_LEGACY_DEVICE(WD177X, wd177x);
2829DECLARE_LEGACY_DEVICE(MB8877, mb8877);
2930
r9745r9746
115116   MDRV_DEVICE_ADD(_tag, WD2793, 0) \
116117   MDRV_DEVICE_CONFIG(_intrf)
117118
119#define MDRV_WD2797_ADD(_tag, _intrf) \
120   MDRV_DEVICE_ADD(_tag, WD2797, 0) \
121   MDRV_DEVICE_CONFIG(_intrf)
122
118123#define MDRV_WD177X_ADD(_tag, _intrf) \
119124   MDRV_DEVICE_ADD(_tag, WD177X, 0) \
120125   MDRV_DEVICE_CONFIG(_intrf)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team