diff options
author | 2012-08-21 10:41:19 +0000 | |
---|---|---|
committer | 2012-08-21 10:41:19 +0000 | |
commit | 7285b359d259b2ae0fdf85096571c386ec8c991a (patch) | |
tree | a027aff57f1a255f9ec6cfd3b68cabe4b6683998 /src/mess/video/nubus_vikbw.h | |
parent | 67c425e90757876a6716b7867df30c0149912e74 (diff) |
Merge of MESS sources (no whatsnew)
Diffstat (limited to 'src/mess/video/nubus_vikbw.h')
-rw-r--r-- | src/mess/video/nubus_vikbw.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mess/video/nubus_vikbw.h b/src/mess/video/nubus_vikbw.h new file mode 100644 index 00000000000..f7e77146a70 --- /dev/null +++ b/src/mess/video/nubus_vikbw.h @@ -0,0 +1,48 @@ +#pragma once + +#ifndef __NUBUS_VIKBW_H__ +#define __NUBUS_VIKBW_H__ + +#include "emu.h" +#include "machine/nubus.h" + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +// ======================> nubus_vikbw_device + +class nubus_vikbw_device : + public device_t, + public device_nubus_card_interface +{ +public: + // construction/destruction + nubus_vikbw_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + nubus_vikbw_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); + + // optional information overrides + virtual machine_config_constructor device_mconfig_additions() const; + virtual const rom_entry *device_rom_region() const; + +protected: + // device-level overrides + virtual void device_start(); + virtual void device_reset(); + + DECLARE_READ32_MEMBER(viking_ack_r); + DECLARE_WRITE32_MEMBER(viking_ack_w); + DECLARE_READ32_MEMBER(viking_enable_r); + DECLARE_WRITE32_MEMBER(viking_disable_w); + +public: + UINT8 *m_vram; + UINT32 m_vbl_disable, m_palette[2]; +}; + + +// device type definition +extern const device_type NUBUS_VIKBW; + +#endif /* __NUBUS_VIKBW_H__ */ + |