sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
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
17
#ifndef __SIOR_COMMON_H__
18
#define __SIOR_COMMON_H__
19
20
#include <
tamtypes.h
>
21
22
#define SIOR_IRX 0xC001510
23
24
enum
{
25
SIOR_INIT = 1,
26
SIOR_PUTC,
27
SIOR_GETC,
28
SIOR_GETCBLOCK,
29
SIOR_WRITE,
30
SIOR_READ,
31
SIOR_PUTS,
32
SIOR_PUTSN,
33
SIOR_GETS,
34
SIOR_FLUSH
35
};
36
37
struct
siorInitArgs
38
{
39
u32 baudrate;
40
u8 lcr_ueps;
41
u8 lcr_upen;
42
u8 lcr_usbl;
43
u8 lcr_umode;
44
};
45
46
struct
siorReadArgs
47
{
48
char
*buf;
49
s32 len;
50
};
51
52
struct
siorWriteArgs
53
{
54
const
char
*buf;
55
s32 len;
56
};
57
58
union
siorCommsData
59
{
60
u8 data[64];
61
int
result;
62
struct
siorInitArgs
init;
63
struct
siorReadArgs
read;
64
struct
siorWriteArgs
write;
65
const
char
*cstr;
66
char
*str;
67
int
c;
68
};
69
70
#endif
/* __SIOR_COMMON_H__ */
siorInitArgs
Definition
sior-common.h:38
siorReadArgs
Definition
sior-common.h:47
siorWriteArgs
Definition
sior-common.h:53
tamtypes.h
siorCommsData
Definition
sior-common.h:59
core
common
include
sior-common.h
Generated by
1.18.0