summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99/peb/tn_ide.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99/peb/tn_ide.h')
-rw-r--r--src/devices/bus/ti99/peb/tn_ide.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/devices/bus/ti99/peb/tn_ide.h b/src/devices/bus/ti99/peb/tn_ide.h
index ded43865d74..fba16021778 100644
--- a/src/devices/bus/ti99/peb/tn_ide.h
+++ b/src/devices/bus/ti99/peb/tn_ide.h
@@ -24,7 +24,7 @@
#include "machine/74259.h"
#include "machine/74543.h"
-namespace bus { namespace ti99 { namespace peb {
+namespace bus::ti99::peb {
class nouspikel_ide_card_device : public device_t, public device_ti99_peribox_card_interface
{
@@ -68,14 +68,19 @@ private:
// RTC type
int m_rtctype;
- DECLARE_WRITE_LINE_MEMBER(clock_interrupt_callback);
- DECLARE_WRITE_LINE_MEMBER(ide_interrupt_callback);
- DECLARE_WRITE_LINE_MEMBER(resetdr_callback);
+ // Genmod decoding. If not used, the AME line is pulled up, and the AMD line is pulled down
+ bool m_genmod;
+
+ template<int rtctype> void rtc_int_callback(int state);
+ void ide_interrupt_callback(int state);
+ void resetdr_callback(int state);
void decode(offs_t offset, bool& mmap, bool& sramsel, bool& xramsel, bool& rtcsel, bool& cs1fx, bool& cs3fx);
+
+ int m_rtc_int;
};
-} } } // end namespace bus::ti99::peb
+} // end namespace bus::ti99::peb
DECLARE_DEVICE_TYPE_NS(TI99_IDE, bus::ti99::peb, nouspikel_ide_card_device)