ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
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
36
struct
siorInitArgs
{
37
u32
baudrate
;
38
u8
lcr_ueps
;
39
u8
lcr_upen
;
40
u8
lcr_usbl
;
41
u8
lcr_umode
;
42
};
43
44
struct
siorReadArgs
{
45
char
*
buf
;
46
s32
len
;
47
};
48
49
struct
siorWriteArgs
{
50
const
char
*
buf
;
51
s32
len
;
52
};
53
54
union
siorCommsData
{
55
u8
data
[64];
56
int
result
;
57
struct
siorInitArgs
init
;
58
struct
siorReadArgs
read
;
59
struct
siorWriteArgs
write
;
60
const
char
*
cstr
;
61
char
*
str
;
62
int
c
;
63
};
64
65
#endif
/* __SIOR_COMMON_H__ */
SIOR_INIT
@ SIOR_INIT
Definition:
sior-common.h:24
SIOR_PUTS
@ SIOR_PUTS
Definition:
sior-common.h:30
SIOR_WRITE
@ SIOR_WRITE
Definition:
sior-common.h:28
SIOR_GETC
@ SIOR_GETC
Definition:
sior-common.h:26
SIOR_FLUSH
@ SIOR_FLUSH
Definition:
sior-common.h:33
SIOR_READ
@ SIOR_READ
Definition:
sior-common.h:29
SIOR_GETCBLOCK
@ SIOR_GETCBLOCK
Definition:
sior-common.h:27
SIOR_PUTSN
@ SIOR_PUTSN
Definition:
sior-common.h:31
SIOR_PUTC
@ SIOR_PUTC
Definition:
sior-common.h:25
SIOR_GETS
@ SIOR_GETS
Definition:
sior-common.h:32
siorInitArgs
Definition:
sior-common.h:36
siorInitArgs::lcr_umode
u8 lcr_umode
Definition:
sior-common.h:41
siorInitArgs::lcr_ueps
u8 lcr_ueps
Definition:
sior-common.h:38
siorInitArgs::lcr_usbl
u8 lcr_usbl
Definition:
sior-common.h:40
siorInitArgs::baudrate
u32 baudrate
Definition:
sior-common.h:37
siorInitArgs::lcr_upen
u8 lcr_upen
Definition:
sior-common.h:39
siorReadArgs
Definition:
sior-common.h:44
siorReadArgs::buf
char * buf
Definition:
sior-common.h:45
siorReadArgs::len
s32 len
Definition:
sior-common.h:46
siorWriteArgs
Definition:
sior-common.h:49
siorWriteArgs::len
s32 len
Definition:
sior-common.h:51
siorWriteArgs::buf
const char * buf
Definition:
sior-common.h:50
tamtypes.h
s32
signed int s32
Definition:
tamtypes.h:58
u32
unsigned int u32
Definition:
tamtypes.h:30
u8
unsigned char u8
Definition:
tamtypes.h:23
siorCommsData
Definition:
sior-common.h:54
siorCommsData::data
u8 data[64]
Definition:
sior-common.h:55
siorCommsData::read
struct siorReadArgs read
Definition:
sior-common.h:58
siorCommsData::cstr
const char * cstr
Definition:
sior-common.h:60
siorCommsData::result
int result
Definition:
sior-common.h:56
siorCommsData::c
int c
Definition:
sior-common.h:62
siorCommsData::str
char * str
Definition:
sior-common.h:61
siorCommsData::init
struct siorInitArgs init
Definition:
sior-common.h:57
siorCommsData::write
struct siorWriteArgs write
Definition:
sior-common.h:59
common
include
sior-common.h
Generated on Thu Feb 11 2021 11:42:21 for ps2sdk by
1.9.2