summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/thomflop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/thomflop.h')
-rw-r--r--src/mess/machine/thomflop.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/mess/machine/thomflop.h b/src/mess/machine/thomflop.h
new file mode 100644
index 00000000000..b1f21b87453
--- /dev/null
+++ b/src/mess/machine/thomflop.h
@@ -0,0 +1,53 @@
+/**********************************************************************
+
+ Copyright (C) Antoine Mine' 2006
+
+ Thomson 8-bit computers
+
+**********************************************************************/
+
+#ifndef THOMFLOP_H_
+#define THOMFLOP_H_
+
+#include "image.h"
+#include "imagedev/flopdrv.h"
+#include "machine/mc6843.h"
+#include "machine/mc6854.h"
+
+extern const mc6843_interface to7_6843_itf;
+extern const mc6854_interface to7_network_iface;
+
+extern UINT8 to7_controller_type; /* set during init */
+extern UINT8 to7_floppy_bank;
+
+/* number of external floppy controller ROM banks */
+#define TO7_NB_FLOP_BANK 9
+
+/* external floppy / network controller active */
+#define THOM_FLOPPY_EXT (to7_controller_type >= 1)
+
+/* internal floppy controller active (no or network extension) */
+#define THOM_FLOPPY_INT (to7_controller_type == 0 || to7_controller_type > 4)
+
+
+/* external controllers */
+extern void to7_floppy_init ( running_machine &machine, void* base );
+extern void to7_floppy_reset ( running_machine &machine );
+extern READ8_HANDLER ( to7_floppy_r );
+extern WRITE8_HANDLER ( to7_floppy_w );
+
+/* TO9 internal (WD2793) & external controllers */
+extern void to9_floppy_init ( running_machine &machine, void* int_base, void* ext_base );
+extern void to9_floppy_reset ( running_machine &machine );
+extern READ8_HANDLER ( to9_floppy_r );
+extern WRITE8_HANDLER ( to9_floppy_w );
+
+/* TO8 internal (THMFC1) controller */
+extern void thmfc_floppy_init ( running_machine &machine );
+extern void thmfc_floppy_reset ( running_machine &machine );
+extern READ8_HANDLER ( thmfc_floppy_r );
+extern WRITE8_HANDLER ( thmfc_floppy_w );
+
+extern WRITE_LINE_DEVICE_HANDLER(thomson_index_callback);
+
+#endif /* THOMFLOP_H_ */