sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
tty.c File Reference
#include "kernel.h"
#include "deci2.h"

Go to the source code of this file.

Classes

struct  tty_packet
struct  tty_queue
struct  tinfo

Macros

#define READ_ONCE(x)
#define WRITE_ONCE(x, val)

Functions

void sceTtyHandler (int event, int param, void *opt)
int sceTtyWrite (char *buf, int len)
int sceTtyRead (char *buf, int len)
int sceTtyInit ()

Variables

int ttyinit = 0
struct tinfo tinfo

Detailed Description

DECI2 TTY

Definition in file tty.c.

Macro Definition Documentation

◆ READ_ONCE

#define READ_ONCE ( x)
Value:
(*(const volatile typeof(x) *)(&x))

Definition at line 18 of file tty.c.

◆ WRITE_ONCE

#define WRITE_ONCE ( x,
val )
Value:
(*(volatile typeof(x) *)(&x) = (val))

Definition at line 19 of file tty.c.

Function Documentation

◆ sceTtyHandler()

void sceTtyHandler ( int event,
int param,
void * opt )

Definition at line 95 of file tty.c.

◆ sceTtyInit()

int sceTtyInit ( )

Definition at line 207 of file tty.c.

◆ sceTtyRead()

int sceTtyRead ( char * buf,
int len )

Definition at line 190 of file tty.c.

◆ sceTtyWrite()

int sceTtyWrite ( char * buf,
int len )

Definition at line 135 of file tty.c.

Variable Documentation

◆ ttyinit

int ttyinit = 0

Definition at line 21 of file tty.c.