summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/dp8510.h
diff options
context:
space:
mode:
author Firehawke <Firehawke@users.noreply.github.com>2017-12-13 21:01:10 -0700
committer Firehawke <Firehawke@users.noreply.github.com>2017-12-13 21:01:10 -0700
commit54155441e9ba9941e85d80c4834a66376a11e791 (patch)
treeaa44bdaf0035cbe188d64c447f225f10f7d76d8d /src/devices/video/dp8510.h
parentf537428e5a40ba6dde8ca9bf0fe9ae6b1f189ac4 (diff)
Revert "Merge branch 'master' of https://github.com/mamedev/mame"
This reverts commit f537428e5a40ba6dde8ca9bf0fe9ae6b1f189ac4, reversing changes made to 0d70d798107d4e4e8fb9f230410aeb1e888d65c5.
Diffstat (limited to 'src/devices/video/dp8510.h')
-rw-r--r--src/devices/video/dp8510.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/src/devices/video/dp8510.h b/src/devices/video/dp8510.h
deleted file mode 100644
index 04a0c2b1676..00000000000
--- a/src/devices/video/dp8510.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Patrick Mackinlay
-#ifndef MAME_VIDEO_DP8510_H
-#define MAME_VIDEO_DP8510_H
-
-#pragma once
-
-
-class dp8510_device : public device_t
-{
-public:
- dp8510_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
-
- static const char *const BITBLT_OP[];
- static const int FIFO_SIZE = 16;
-
- DECLARE_WRITE_LINE_MEMBER(line_drawing) { m_line_drawing = state; }
- DECLARE_WRITE_LINE_MEMBER(barrel_input_select) { m_barrel_input_select = state; }
- DECLARE_WRITE_LINE_MEMBER(pixel_data_input) { m_pixel_data_input = state; }
- DECLARE_WRITE_LINE_MEMBER(data_output_select) { m_data_output_select = state; }
- DECLARE_WRITE_LINE_MEMBER(left_mask_enable) { m_left_mask = state; }
- DECLARE_WRITE_LINE_MEMBER(right_mask_enable) { m_right_mask = state; }
-
- enum control_mask : u16
- {
- CONTROL_RM = 0x000f, // right mask
- CONTROL_LM = 0x00f0, // left mask
- CONTROL_SN = 0x0f00, // shift number
- CONTROL_FS = 0xf000 // function select
- };
-
- enum control_fs_mask : u16
- {
- FS_0 = 0x1000,
- FS_1 = 0x2000,
- FS_2 = 0x4000,
- FS_3 = 0x8000
- };
-
- void control_w(const u16 data);
-
- void source_w(const u16 data, const bool fifo_write = true);
- void destination_w(const u16 data, const bool fifo_write = false);
-
- u16 output_r() const;
- u8 pixel_r(const offs_t pixel_address) const;
-
-protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
- u16 logic_unit(const u16 src, const u16 dst) const;
-
- u16 fifo_r();
- void fifo_w(const u16 data);
-
-private:
- // input lines
- int m_line_drawing;
- int m_barrel_input_select;
- int m_pixel_data_input;
- int m_data_output_select;
- int m_left_mask;
- int m_right_mask;
-
- // registers and latches
- u16 m_control;
- u16 m_barrel_input_latch;
- u16 m_logic_output;
- u16 m_fifo_output_latch;
-
- // fifo
- u16 m_fifo[FIFO_SIZE];
- u8 m_fifo_head;
- u8 m_fifo_tail;
-
- // helper internal state
- u16 m_f0;
- u16 m_f1;
- u16 m_f2;
- u16 m_f3;
-};
-
-// device type definition
-DECLARE_DEVICE_TYPE(DP8510, dp8510_device)
-
-#endif // MAME_VIDEO_DP8510_H