summaryrefslogtreecommitdiff
path: root/libpcsxcore/sio.h
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-10 01:43:36 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-10 01:43:36 +0000
commit422812bcfa252636ccfde425c6c39a89d5bfafe7 (patch)
tree4e37e2a929f89a5e74d10c24c5de2743452e8904 /libpcsxcore/sio.h
parentff3d67b25e27c57a97608a57bd340e9d0e3ba2f9 (diff)
downloadpcsxr-422812bcfa252636ccfde425c6c39a89d5bfafe7.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@47728 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/sio.h')
-rw-r--r--libpcsxcore/sio.h37
1 files changed, 10 insertions, 27 deletions
diff --git a/libpcsxcore/sio.h b/libpcsxcore/sio.h
index 56e71d7e..20c75d1b 100644
--- a/libpcsxcore/sio.h
+++ b/libpcsxcore/sio.h
@@ -33,37 +33,20 @@ extern "C" {
#define MCD_SIZE (1024 * 8 * 16)
-// Status Flags
-#define TX_RDY 0x0001
-#define RX_RDY 0x0002
-#define TX_EMPTY 0x0004
-#define PARITY_ERR 0x0008
-#define RX_OVERRUN 0x0010
-#define FRAMING_ERR 0x0020
-#define SYNC_DETECT 0x0040
-#define DSR 0x0080
-#define CTS 0x0100
-#define IRQ 0x0200
-
-// Control Flags
-#define TX_PERM 0x0001
-#define DTR 0x0002
-#define RX_PERM 0x0004
-#define BREAK 0x0008
-#define RESET_ERR 0x0010
-#define RTS 0x0020
-#define SIO_RESET 0x0040
-
-extern unsigned short StatReg;
-extern unsigned short ModeReg;
-extern unsigned short CtrlReg;
-extern unsigned short BaudReg;
-
extern char Mcd1Data[MCD_SIZE], Mcd2Data[MCD_SIZE];
-unsigned char sioRead8();
void sioWrite8(unsigned char value);
+void sioWriteStat16(unsigned short value);
+void sioWriteMode16(unsigned short value);
void sioWriteCtrl16(unsigned short value);
+void sioWriteBaud16(unsigned short value);
+
+unsigned char sioRead8();
+unsigned short sioReadStat16();
+unsigned short sioReadMode16();
+unsigned short sioReadCtrl16();
+unsigned short sioReadBaud16();
+
void sioInterrupt();
int sioFreeze(gzFile f, int Mode);