PS2SDK
PS2 Homebrew Libraries
sior-common.h
Go to the documentation of this file.
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
16 #ifndef __SIOR_COMMON_H__
17 #define __SIOR_COMMON_H__
18 
19 #include <tamtypes.h>
20 
21 #define SIOR_IRX 0xC001510
22 
23 enum {
24  SIOR_INIT = 1,
25  SIOR_PUTC,
26  SIOR_GETC,
27  SIOR_GETCBLOCK,
28  SIOR_WRITE,
29  SIOR_READ,
30  SIOR_PUTS,
31  SIOR_PUTSN,
32  SIOR_GETS,
33  SIOR_FLUSH
34 };
35 
37 {
38  u32 baudrate;
39  u8 lcr_ueps;
40  u8 lcr_upen;
41  u8 lcr_usbl;
42  u8 lcr_umode;
43 };
44 
46 {
47  char *buf;
48  s32 len;
49 };
50 
52 {
53  const char *buf;
54  s32 len;
55 };
56 
58 {
59  u8 data[64];
60  int result;
61  struct siorInitArgs init;
62  struct siorReadArgs read;
63  struct siorWriteArgs write;
64  const char *cstr;
65  char *str;
66  int c;
67 };
68 
69 #endif /* __SIOR_COMMON_H__ */
siorReadArgs
Definition: sior-common.h:45
siorCommsData
Definition: sior-common.h:57
tamtypes.h
siorWriteArgs
Definition: sior-common.h:51
siorInitArgs
Definition: sior-common.h:36