summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/includes/bebox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/includes/bebox.h')
-rw-r--r--src/mess/includes/bebox.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/mess/includes/bebox.h b/src/mess/includes/bebox.h
new file mode 100644
index 00000000000..72c2c9b6d60
--- /dev/null
+++ b/src/mess/includes/bebox.h
@@ -0,0 +1,83 @@
+/*****************************************************************************
+ *
+ * includes/bebox.h
+ *
+ * BeBox
+ *
+ ****************************************************************************/
+
+#ifndef BEBOX_H_
+#define BEBOX_H_
+
+#include "machine/ins8250.h"
+#include "machine/8237dma.h"
+
+typedef struct
+{
+ device_t *pic8259_master;
+ device_t *pic8259_slave;
+ device_t *dma8237_1;
+ device_t *dma8237_2;
+} bebox_devices_t;
+
+
+class bebox_state : public driver_device
+{
+public:
+ bebox_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag) { }
+
+ UINT32 m_cpu_imask[2];
+ UINT32 m_interrupts;
+ UINT32 m_crossproc_interrupts;
+ bebox_devices_t m_devices;
+ int m_dma_channel;
+ UINT16 m_dma_offset[2][4];
+ UINT8 m_at_pages[0x10];
+ UINT32 m_scsi53c810_data[0x100 / 4];
+ DECLARE_DRIVER_INIT(bebox);
+};
+
+
+/*----------- defined in machine/bebox.c -----------*/
+
+extern const struct pit8253_config bebox_pit8254_config;
+extern const i8237_interface bebox_dma8237_1_config;
+extern const i8237_interface bebox_dma8237_2_config;
+extern const struct pic8259_interface bebox_pic8259_master_config;
+extern const struct pic8259_interface bebox_pic8259_slave_config;
+extern const ins8250_interface bebox_uart_inteface_0;
+extern const ins8250_interface bebox_uart_inteface_1;
+extern const ins8250_interface bebox_uart_inteface_2;
+extern const ins8250_interface bebox_uart_inteface_3;
+
+MACHINE_START( bebox );
+MACHINE_RESET( bebox );
+
+READ64_HANDLER( bebox_cpu0_imask_r );
+READ64_HANDLER( bebox_cpu1_imask_r );
+READ64_HANDLER( bebox_interrupt_sources_r );
+READ64_HANDLER( bebox_crossproc_interrupts_r );
+READ8_HANDLER( bebox_800001F0_r );
+READ64_HANDLER( bebox_800003F0_r );
+READ64_HANDLER( bebox_interrupt_ack_r );
+READ8_HANDLER( bebox_page_r );
+READ8_HANDLER( bebox_80000480_r );
+READ8_HANDLER( bebox_flash_r );
+
+WRITE64_HANDLER( bebox_cpu0_imask_w );
+WRITE64_HANDLER( bebox_cpu1_imask_w );
+WRITE64_HANDLER( bebox_crossproc_interrupts_w );
+WRITE64_HANDLER( bebox_processor_resets_w );
+WRITE8_HANDLER( bebox_800001F0_w );
+WRITE64_HANDLER( bebox_800003F0_w );
+WRITE8_HANDLER( bebox_page_w );
+WRITE8_HANDLER( bebox_80000480_w );
+WRITE8_HANDLER( bebox_flash_w );
+
+void bebox_ide_interrupt(device_t *device, int state);
+
+UINT32 scsi53c810_pci_read(device_t *busdevice, device_t *device, int function, int offset, UINT32 mem_mask);
+void scsi53c810_pci_write(device_t *busdevice, device_t *device, int function, int offset, UINT32 data, UINT32 mem_mask);
+
+#endif /* BEBOX_H_ */