summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/midyunit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/midyunit.h')
-rw-r--r--src/mame/includes/midyunit.h44
1 files changed, 19 insertions, 25 deletions
diff --git a/src/mame/includes/midyunit.h b/src/mame/includes/midyunit.h
index 9ac1c12b539..3ab84160c23 100644
--- a/src/mame/includes/midyunit.h
+++ b/src/mame/includes/midyunit.h
@@ -6,10 +6,6 @@
Williams/Midway Y/Z-unit system
**************************************************************************/
-#ifndef MAME_INCLUDES_MIDYUNIT_H
-#define MAME_INCLUDES_MIDYUNIT_H
-
-#pragma once
#include "audio/williams.h"
@@ -20,6 +16,25 @@
#include "sound/okim6295.h"
#include "emupal.h"
+/* protection data types */
+struct protection_data
+{
+ uint16_t reset_sequence[3];
+ uint16_t data_sequence[100];
+};
+
+struct dma_state_t
+{
+ uint32_t offset; /* source offset, in bits */
+ int32_t rowbytes; /* source bytes to skip each row */
+ int32_t xpos; /* x position, clipped */
+ int32_t ypos; /* y position, clipped */
+ int32_t width; /* horizontal pixel count */
+ int32_t height; /* vertical pixel count */
+ uint16_t palette; /* palette base */
+ uint16_t color; /* current foreground color with palette */
+};
+
class midyunit_state : public driver_device
{
@@ -73,25 +88,6 @@ public:
DECLARE_CUSTOM_INPUT_MEMBER(adpcm_irq_state_r);
private:
- /* protection data types */
- struct protection_data
- {
- uint16_t reset_sequence[3];
- uint16_t data_sequence[100];
- };
-
- struct dma_state_t
- {
- uint32_t offset; // source offset, in bits
- int32_t rowbytes; // source bytes to skip each row
- int32_t xpos; // x position, clipped
- int32_t ypos; // y position, clipped
- int32_t width; // horizontal pixel count
- int32_t height; // vertical pixel count
- uint16_t palette; // palette base
- uint16_t color; // current foreground color with palette
- };
-
enum
{
TIMER_DMA,
@@ -176,5 +172,3 @@ private:
void init_generic(int bpp, int sound, int prot_start, int prot_end);
void term2_init_common(write16_delegate hack_w);
};
-
-#endif // MAME_INCLUDES_MIDYUNIT_H