summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/southbridge.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/southbridge.h')
-rw-r--r--src/mess/machine/southbridge.h147
1 files changed, 147 insertions, 0 deletions
diff --git a/src/mess/machine/southbridge.h b/src/mess/machine/southbridge.h
new file mode 100644
index 00000000000..cae2b981915
--- /dev/null
+++ b/src/mess/machine/southbridge.h
@@ -0,0 +1,147 @@
+#pragma once
+
+#ifndef __SOUTHBRIDGE_H__
+#define __SOUTHBRIDGE_H__
+
+#include "emu.h"
+
+#include "machine/ins8250.h"
+#include "machine/mc146818.h"
+#include "machine/pic8259.h"
+#include "machine/pit8253.h"
+#include "video/isa_cga.h"
+#include "video/isa_ega.h"
+#include "video/isa_svga_cirrus.h"
+#include "video/isa_svga_s3.h"
+#include "video/isa_svga_tseng.h"
+
+#include "machine/idectrl.h"
+#include "machine/isa_aha1542.h"
+#include "machine/at_keybc.h"
+#include "includes/ps2.h"
+
+#include "imagedev/harddriv.h"
+#include "machine/pci.h"
+#include "machine/kb_keytro.h"
+
+#include "sound/dac.h"
+#include "sound/speaker.h"
+#include "machine/ram.h"
+#include "machine/nvram.h"
+#include "machine/isa.h"
+
+#include "machine/isa_adlib.h"
+#include "machine/isa_com.h"
+#include "machine/isa_fdc.h"
+#include "machine/isa_gblaster.h"
+#include "machine/isa_hdc.h"
+#include "machine/isa_sblaster.h"
+#include "machine/isa_gus.h"
+#include "machine/3c503.h"
+#include "machine/ne1000.h"
+#include "machine/ne2000.h"
+#include "video/isa_mda.h"
+#include "machine/isa_mpu401.h"
+#include "machine/isa_ibm_mfc.h"
+
+#include "machine/isa_ide.h"
+#include "machine/isa_ide_cd.h"
+
+#include "machine/pc_lpt.h"
+#include "machine/pc_kbdc.h"
+
+//**************************************************************************
+// TYPE DEFINITIONS
+//**************************************************************************
+
+// ======================> southbridge_device
+
+class southbridge_device :
+ public device_t
+{
+public:
+ // construction/destruction
+ southbridge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
+
+ // optional information overrides
+ virtual machine_config_constructor device_mconfig_additions() const;
+
+protected:
+ // device-level overrides
+ virtual void device_start();
+ virtual void device_reset();
+public:
+
+ //static IRQ_CALLBACK(at_irq_callback);
+ required_device<cpu_device> m_maincpu;
+ required_device<device_t> m_pic8259_master;
+ required_device<device_t> m_pic8259_slave;
+ required_device<device_t> m_dma8237_1;
+ required_device<device_t> m_dma8237_2;
+ required_device<device_t> m_pit8254;
+ required_device<at_keyboard_controller_device> m_keybc;
+ required_device<isa16_device> m_isabus;
+ required_device<device_t> m_speaker;
+ required_device<mc146818_device> m_mc146818;
+ required_device<pc_kbdc_device> m_pc_kbdc;
+ DECLARE_READ8_MEMBER(at_page8_r);
+ DECLARE_WRITE8_MEMBER(at_page8_w);
+ DECLARE_READ8_MEMBER(at_portb_r);
+ DECLARE_WRITE8_MEMBER(at_portb_w);
+ DECLARE_READ8_MEMBER(get_slave_ack);
+ DECLARE_WRITE_LINE_MEMBER(at_pit8254_out0_changed);
+ DECLARE_WRITE_LINE_MEMBER(at_pit8254_out2_changed);
+ DECLARE_WRITE_LINE_MEMBER(pc_dma_hrq_changed);
+ DECLARE_READ8_MEMBER(pc_dma8237_0_dack_r);
+ DECLARE_READ8_MEMBER(pc_dma8237_1_dack_r);
+ DECLARE_READ8_MEMBER(pc_dma8237_2_dack_r);
+ DECLARE_READ8_MEMBER(pc_dma8237_3_dack_r);
+ DECLARE_READ8_MEMBER(pc_dma8237_5_dack_r);
+ DECLARE_READ8_MEMBER(pc_dma8237_6_dack_r);
+ DECLARE_READ8_MEMBER(pc_dma8237_7_dack_r);
+ DECLARE_WRITE8_MEMBER(pc_dma8237_0_dack_w);
+ DECLARE_WRITE8_MEMBER(pc_dma8237_1_dack_w);
+ DECLARE_WRITE8_MEMBER(pc_dma8237_2_dack_w);
+ DECLARE_WRITE8_MEMBER(pc_dma8237_3_dack_w);
+ DECLARE_WRITE8_MEMBER(pc_dma8237_5_dack_w);
+ DECLARE_WRITE8_MEMBER(pc_dma8237_6_dack_w);
+ DECLARE_WRITE8_MEMBER(pc_dma8237_7_dack_w);
+ DECLARE_WRITE_LINE_MEMBER(at_dma8237_out_eop);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack0_w);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack1_w);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack2_w);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack3_w);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack4_w);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack5_w);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack6_w);
+ DECLARE_WRITE_LINE_MEMBER(pc_dack7_w);
+ DECLARE_READ32_MEMBER(ide_r);
+ DECLARE_WRITE32_MEMBER(ide_w);
+ DECLARE_READ8_MEMBER(at_dma8237_2_r);
+ DECLARE_WRITE8_MEMBER(at_dma8237_2_w);
+ DECLARE_READ8_MEMBER(at_keybc_r);
+ DECLARE_WRITE8_MEMBER(at_keybc_w);
+ DECLARE_WRITE_LINE_MEMBER(at_mc146818_irq);
+ DECLARE_WRITE8_MEMBER(write_rtc);
+ DECLARE_READ8_MEMBER(pc_dma_read_byte);
+ DECLARE_WRITE8_MEMBER(pc_dma_write_byte);
+ DECLARE_READ8_MEMBER(pc_dma_read_word);
+ DECLARE_WRITE8_MEMBER(pc_dma_write_word);
+protected:
+ int m_poll_delay;
+ UINT8 m_at_spkrdata;
+ UINT8 m_at_speaker_input;
+ int m_dma_channel;
+ UINT8 m_dma_offset[2][4];
+ UINT8 m_at_pages[0x10];
+ UINT16 m_dma_high_byte;
+ UINT8 m_at_speaker;
+ UINT8 m_at_offset1;
+ void at_speaker_set_spkrdata(UINT8 data);
+ void at_speaker_set_input(UINT8 data);
+
+ UINT8 m_channel_check;
+ UINT8 m_nmi_enabled;
+};
+
+#endif /* __SOUTHBRIDGE_H__ */