summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/atarixga.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-06-29 08:34:30 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-06-29 08:34:30 +0200
commit63f9a01f8c5d43b9cfe68c2d401a84647d19c10e (patch)
treea1f1874aa84850bddbebd2b0e0bfc3e1c77ce8c4 /src/mame/machine/atarixga.h
parent1f6f1bfd6cfb748d9c5e159d6bd014bab8d30944 (diff)
Cleanup and version bumpmame0175
Diffstat (limited to 'src/mame/machine/atarixga.h')
-rw-r--r--src/mame/machine/atarixga.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/mame/machine/atarixga.h b/src/mame/machine/atarixga.h
index 710aedb22c2..8d6980a3ac3 100644
--- a/src/mame/machine/atarixga.h
+++ b/src/mame/machine/atarixga.h
@@ -3,7 +3,7 @@
/*************************************************************************
atarixga.h
-
+
Atari XGA encryption FPGA
*************************************************************************/
@@ -16,38 +16,38 @@ extern const device_type ATARI_XGA;
class atari_xga_device : public device_t
{
public:
- // construction/destruction
- atari_xga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-
- DECLARE_WRITE32_MEMBER(write);
- DECLARE_READ32_MEMBER(read);
-
+ // construction/destruction
+ atari_xga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
+
+ DECLARE_WRITE32_MEMBER(write);
+ DECLARE_READ32_MEMBER(read);
+
protected:
- virtual void device_start() override;
- virtual void device_reset() override;
-
+ virtual void device_start() override;
+ virtual void device_reset() override;
+
private:
- static const size_t RAM_WORDS = 2048;
-
- enum fpga_mode
- {
- FPGA_RESET,
- FPGA_SETKEY,
- FPGA_DECIPHER
- };
-
- UINT16 powers2(UINT8 k, UINT16 x);
- UINT16 lfsr2(UINT16 x);
- UINT16 lfsr1(UINT16 x);
- UINT16 parity(UINT16 x);
- size_t popcount(UINT16 x);
- UINT16 ctz(UINT16 x);
- UINT16 decipher(UINT8 k, UINT16 c);
-
- fpga_mode m_mode;
- UINT16 m_address; // last written address
- UINT16 m_ciphertext; // last written ciphertext
- std::unique_ptr<UINT16[]> m_ram; // CY7C185-45PC, only 16-Kbit used
+ static const size_t RAM_WORDS = 2048;
+
+ enum fpga_mode
+ {
+ FPGA_RESET,
+ FPGA_SETKEY,
+ FPGA_DECIPHER
+ };
+
+ UINT16 powers2(UINT8 k, UINT16 x);
+ UINT16 lfsr2(UINT16 x);
+ UINT16 lfsr1(UINT16 x);
+ UINT16 parity(UINT16 x);
+ size_t popcount(UINT16 x);
+ UINT16 ctz(UINT16 x);
+ UINT16 decipher(UINT8 k, UINT16 c);
+
+ fpga_mode m_mode;
+ UINT16 m_address; // last written address
+ UINT16 m_ciphertext; // last written ciphertext
+ std::unique_ptr<UINT16[]> m_ram; // CY7C185-45PC, only 16-Kbit used
};