ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
tamtypes.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  qword_t
 

Macros

#define NULL   (void *)0
 

Typedefs

typedef unsigned char u8
 
typedef unsigned short u16
 
typedef volatile u8 vu8
 
typedef volatile u16 vu16
 
typedef unsigned int u32
 
typedef unsigned long u64
 
typedef unsigned int u128
 
typedef volatile u32 vu32
 
typedef volatile u64 vu64
 
typedef volatile u128 vu128
 
typedef signed char s8
 
typedef signed short s16
 
typedef volatile s8 vs8
 
typedef volatile s16 vs16
 
typedef signed int s32
 
typedef signed long s64
 
typedef signed int s128
 
typedef volatile s32 vs32
 
typedef volatile s64 vs64
 
typedef volatile s128 vs128
 

Functions

static u8 _lb (u32 addr)
 
static u16 _lh (u32 addr)
 
static u32 _lw (u32 addr)
 
static void _sb (u8 val, u32 addr)
 
static void _sh (u16 val, u32 addr)
 
static void _sw (u32 val, u32 addr)
 
static u64 _ld (u32 addr)
 
static u128 _lq (u32 addr)
 
static void _sd (u64 val, u32 addr)
 
static void _sq (u128 val, u32 addr)
 

Detailed Description

Commonly used typedefs

Definition in file tamtypes.h.

Macro Definition Documentation

◆ NULL

#define NULL   (void *)0

Definition at line 91 of file tamtypes.h.

Typedef Documentation

◆ s128

typedef signed int s128

Definition at line 64 of file tamtypes.h.

◆ s16

typedef signed short s16

Definition at line 52 of file tamtypes.h.

◆ s32

typedef signed int s32

Definition at line 58 of file tamtypes.h.

◆ s64

typedef signed long s64

Definition at line 62 of file tamtypes.h.

◆ s8

typedef signed char s8

Definition at line 51 of file tamtypes.h.

◆ u128

typedef unsigned int u128

Definition at line 36 of file tamtypes.h.

◆ u16

typedef unsigned short u16

Definition at line 24 of file tamtypes.h.

◆ u32

typedef unsigned int u32

Definition at line 30 of file tamtypes.h.

◆ u64

typedef unsigned long u64

Definition at line 34 of file tamtypes.h.

◆ u8

typedef unsigned char u8

Definition at line 23 of file tamtypes.h.

◆ vs128

typedef volatile s128 vs128

Definition at line 68 of file tamtypes.h.

◆ vs16

typedef volatile s16 vs16

Definition at line 55 of file tamtypes.h.

◆ vs32

typedef volatile s32 vs32

Definition at line 66 of file tamtypes.h.

◆ vs64

typedef volatile s64 vs64

Definition at line 67 of file tamtypes.h.

◆ vs8

typedef volatile s8 vs8

Definition at line 54 of file tamtypes.h.

◆ vu128

typedef volatile u128 vu128

Definition at line 40 of file tamtypes.h.

◆ vu16

typedef volatile u16 vu16

Definition at line 27 of file tamtypes.h.

◆ vu32

typedef volatile u32 vu32

Definition at line 38 of file tamtypes.h.

◆ vu64

typedef volatile u64 vu64

Definition at line 39 of file tamtypes.h.

◆ vu8

typedef volatile u8 vu8

Definition at line 26 of file tamtypes.h.

Function Documentation

◆ _lb()

static u8 _lb ( u32  addr)
inlinestatic

Definition at line 94 of file tamtypes.h.

94 { return *(vu8 *)addr; }
volatile u8 vu8
Definition: tamtypes.h:26

◆ _ld()

static u64 _ld ( u32  addr)
inlinestatic

Definition at line 103 of file tamtypes.h.

103 { return *(vu64 *)addr; }
volatile u64 vu64
Definition: tamtypes.h:39

◆ _lh()

static u16 _lh ( u32  addr)
inlinestatic

Definition at line 95 of file tamtypes.h.

95 { return *(vu16 *)addr; }
volatile u16 vu16
Definition: tamtypes.h:27

◆ _lq()

static u128 _lq ( u32  addr)
inlinestatic

Definition at line 104 of file tamtypes.h.

104 { return *(vu128 *)addr; }
volatile u128 vu128
Definition: tamtypes.h:40

◆ _lw()

static u32 _lw ( u32  addr)
inlinestatic

Definition at line 96 of file tamtypes.h.

96 { return *(vu32 *)addr; }
volatile u32 vu32
Definition: tamtypes.h:38

Referenced by LoadELFFromFile().

◆ _sb()

static void _sb ( u8  val,
u32  addr 
)
inlinestatic

Definition at line 98 of file tamtypes.h.

98 { *(vu8 *)addr = val; }

◆ _sd()

static void _sd ( u64  val,
u32  addr 
)
inlinestatic

Definition at line 105 of file tamtypes.h.

105 { *(vu64 *)addr = val; }

◆ _sh()

static void _sh ( u16  val,
u32  addr 
)
inlinestatic

Definition at line 99 of file tamtypes.h.

99 { *(vu16 *)addr = val; }

◆ _sq()

static void _sq ( u128  val,
u32  addr 
)
inlinestatic

Definition at line 106 of file tamtypes.h.

106 { *(vu128 *)addr = val; }

◆ _sw()

static void _sw ( u32  val,
u32  addr 
)
inlinestatic

Definition at line 100 of file tamtypes.h.

100 { *(vu32 *)addr = val; }