]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/jerry.h
Fix for bad window position when coming out of full screen
[virtualjaguar] / src / jerry.h
index c1f1f7ad6d0ad71dc0b24ac60c0c3b588172a55e..ec0edbd4732889fb0cd739b8632b760793356b59 100644 (file)
@@ -5,7 +5,8 @@
 #ifndef __JERRY_H__
 #define __JERRY_H__
 
-#include "types.h"
+//#include "types.h"
+#include "memory.h"
 
 void JERRYInit(void);
 void JERRYReset(void);
@@ -19,11 +20,24 @@ void JERRYWriteWord(uint32 offset, uint16 data, uint32 who = UNKNOWN);
 void JERRYExecPIT(uint32 cycles);
 void JERRYI2SExec(uint32 cycles);
 
+int JERRYGetPIT1Frequency(void);
+int JERRYGetPIT2Frequency(void);
+
 // 68000 Interrupt bit positions (enabled at $F10020)
 
-enum { IRQ2_EXTERNAL = 0, IRQ2_DSP, IRQ2_TIMER1, IRQ2_TIMER2, IRQ2_ASI, IRQ2_SSI };
+//enum { IRQ2_EXTERNAL = 0, IRQ2_DSP, IRQ2_TIMER1, IRQ2_TIMER2, IRQ2_ASI, IRQ2_SSI };
+enum { IRQ2_EXTERNAL=0x01, IRQ2_DSP=0x02, IRQ2_TIMER1=0x04, IRQ2_TIMER2=0x08, IRQ2_ASI=0x10, IRQ2_SSI=0x20 };
 
 bool JERRYIRQEnabled(int irq);
 void JERRYSetPendingIRQ(int irq);
 
+// This should stay inside this file, but it's here for now...
+// Need to set up an interface function so that this can go back
+void JERRYI2SCallback(void);
+
+// External variables
+
+extern uint32 JERRYI2SInterruptDivide;
+extern int32 JERRYI2SInterruptTimer;
+
 #endif