OSDN Git Service

[VM][General] Merge upstream 2016-03-01. (Pahse 1).
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz700 / floppy.h
index 33960b2..806449f 100644 (file)
@@ -1,56 +1,56 @@
-/*\r
-       SHARP MZ-800 Emulator 'EmuZ-800'\r
-       SHARP MZ-1500 Emulator 'EmuZ-1500'\r
-\r
-       Author : Takeda.Toshiya\r
-       Date   : 2011.05.16-\r
-\r
-       [ floppy ]\r
-*/\r
-\r
-#ifndef _FLOPPY_H_\r
-#define _FLOPPY_H_\r
-\r
-#include "../vm.h"\r
-#include "../../emu.h"\r
-#include "../device.h"\r
-\r
-#define SIG_FLOPPY_DRQ 0\r
-\r
-class FLOPPY : public DEVICE\r
-{\r
-private:\r
-       DEVICE* d_cpu;\r
-       DEVICE* d_fdc;\r
-       \r
-       uint32 prev_dc;\r
-       int register_id;\r
-       bool motor_on;\r
-       bool irq_enabled;\r
-       \r
-public:\r
-       FLOPPY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}\r
-       ~FLOPPY() {}\r
-       \r
-       // common functions\r
-       void initialize();\r
-       void reset();\r
-       void write_io8(uint32 addr, uint32 data);\r
-       void event_callback(int event_id, int err);\r
-       void write_signal(int id, uint32 data, uint32 mask);\r
-       void save_state(FILEIO* state_fio);\r
-       bool load_state(FILEIO* state_fio);\r
-       \r
-       // unique functions\r
-       void set_context_cpu(DEVICE* device)\r
-       {\r
-               d_cpu = device;\r
-       }\r
-       void set_context_fdc(DEVICE* device)\r
-       {\r
-               d_fdc = device;\r
-       }\r
-};\r
-\r
-#endif\r
-\r
+/*
+       SHARP MZ-800 Emulator 'EmuZ-800'
+       SHARP MZ-1500 Emulator 'EmuZ-1500'
+
+       Author : Takeda.Toshiya
+       Date   : 2011.05.16-
+
+       [ floppy ]
+*/
+
+#ifndef _FLOPPY_H_
+#define _FLOPPY_H_
+
+#include "../vm.h"
+#include "../../emu.h"
+#include "../device.h"
+
+#define SIG_FLOPPY_DRQ 0
+
+class FLOPPY : public DEVICE
+{
+private:
+       DEVICE* d_cpu;
+       DEVICE* d_fdc;
+       
+       uint32_t prev_dc;
+       int register_id;
+       bool motor_on;
+       bool irq_enabled;
+       
+public:
+       FLOPPY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
+       ~FLOPPY() {}
+       
+       // common functions
+       void initialize();
+       void reset();
+       void write_io8(uint32_t addr, uint32_t data);
+       void event_callback(int event_id, int err);
+       void write_signal(int id, uint32_t data, uint32_t mask);
+       void save_state(FILEIO* state_fio);
+       bool load_state(FILEIO* state_fio);
+       
+       // unique functions
+       void set_context_cpu(DEVICE* device)
+       {
+               d_cpu = device;
+       }
+       void set_context_fdc(DEVICE* device)
+       {
+               d_fdc = device;
+       }
+};
+
+#endif
+