Nugget
Loading...
Searching...
No Matches
Functions | Variables
syscalls.h File Reference
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include "common/psxlibc/circularbuffer.h"
#include "common/psxlibc/device.h"
#include "common/psxlibc/handlers.h"
Include dependency graph for syscalls.h:

Go to the source code of this file.

Functions

__asm__ volatile ("" :"=r"(n) :"r"(n))
 
 return ((size_t(*)(int, const void *, size_t)) 0xa0)(fd
 
void struct (buf, ret)
 
 __builtin_unreachable ()
 
 return ((char *(*)(char *, const char *)) 0xa0)(dst
 
 return ((char *(*)(char *, const char *, size_t)) 0xa0)(dst
 
 return ((int(*)(const char *, const char *)) 0xa0)(s1
 
 return ((int(*)(const char *, const char *, size_t)) 0xa0)(s1
 
 return ((char *(*)(const char *, int c)) 0xa0)(s
 
 return ((void *(*)(void *, const void *, size_t)) 0xa0)(dst
 
 return ((void *(*)(void *, int, size_t)) 0xa0)(dst
 
void void (ptr, size)
 
int romsyscall_printf (const char *fmt,...)
 
int ramsyscall_printf (const char *fmt,...)
 
 return ((int(*)(int, void *, uint32_t)) 0xa0)(count
 
void int (code1, code2)
 
 return ((int(*)(uint32_t, uint16_t, uint16_t)) 0xb0)(timer
 
void uint32_t (classId, spec)
 
void void (buffer1, size1, buffer2, size2)
 
void uint32_t (classId, mode)
 
 return ((int(*)(const char *, int)) 0xb0)(filename
 
 return ((int(*)(int, void *, int)) 0xb0)(fd
 
 return ((int(*)(int, int, const uint8_t *)) 0xb0)(deviceID
 
 return ((int(*)(int, int, uint8_t *)) 0xb0)(deviceID
 
 return ((int(*)(int, struct HandlerInfo *)) 0xc0)(priority
 
void void (base, size)
 
 return ((int(*)(uint32_t, int)) 0xc0)(timer
 
void uint32_t (irq, value)
 
void struct (circ, c)
 

Variables

static const voidbuf = { 0, 0, 0, 0 }
 
static const void size_t size
 
static int ret
 
static const char * src
 
static const char * s2
 
static int c
 
static const void size_t count
 
static size_t nel
 
static size_t size_t width
 
static size_t size_t int(* compar )(const void *, const void *))
 
static voidbuffer
 
static void uint32_t mode
 
static int code2
 
static uint16_t target
 
static uint16_t uint16_t flags
 
static uint32_t spec
 
static uint32_t uint32_t void(* handler )())
 
static size_t size1
 
static size_t voidbuffer2
 
static size_t void size_t size2
 
static int sector
 
static struct HandlerInfoinfo
 
static int value
 

Function Documentation

◆ __builtin_unreachable()

__builtin_unreachable ( )

◆ int()

void int ( code1  ,
code2   
)

◆ ramsyscall_printf()

int ramsyscall_printf ( const char *  fmt,
  ... 
)

◆ return() [1/16]

return ( (char *(*)(char *, const char *))  0xa0)

◆ return() [2/16]

return ( (char *(*)(char *, const char *, size_t))  0xa0)

◆ return() [3/16]

return ( (char *(*)(const char *, int c))  0xa0)

◆ return() [4/16]

return ( (int(*)(const char *, const char *))  0xa0)

◆ return() [5/16]

return ( (int(*)(const char *, const char *, size_t))  0xa0)

◆ return() [6/16]

return ( (int(*)(const char *, int))  0xb0)

◆ return() [7/16]

return ( (int(*)(int, int, const uint8_t *))  0xb0)

◆ return() [8/16]

return ( (int(*)(int, int, uint8_t *))  0xb0)

◆ return() [9/16]

return ( (int(*)(int, struct HandlerInfo *))  0xc0)

◆ return() [10/16]

return ( (int(*)(int, void *, int))  0xb0)

◆ return() [11/16]

return ( (int(*)(int, void *, uint32_t))  0xa0)

◆ return() [12/16]

return ( (int(*)(uint32_t, int))  0xc0)

◆ return() [13/16]

return ( (int(*)(uint32_t, uint16_t, uint16_t))  0xb0)

◆ return() [14/16]

return ( (size_t(*)(int, const void *, size_t))  0xa0)

◆ return() [15/16]

return ( (void *(*)(void *, const void *, size_t))  0xa0)

◆ return() [16/16]

return ( (void *(*)(void *, int, size_t))  0xa0)

◆ romsyscall_printf()

int romsyscall_printf ( const char *  fmt,
  ... 
)

◆ struct() [1/2]

void struct ( buf  ,
ret   
)

◆ struct() [2/2]

void struct ( circ  ,
c   
)

◆ uint32_t() [1/3]

void uint32_t ( classId  ,
mode   
)

◆ uint32_t() [2/3]

void uint32_t ( classId  ,
spec   
)

◆ uint32_t() [3/3]

void uint32_t ( irq  ,
value   
)

◆ void() [1/3]

void void ( base  ,
size   
)

◆ void() [2/3]

void void ( buffer1  ,
size1  ,
buffer2  ,
size2   
)

◆ void() [3/3]

void void ( ptr  ,
size   
)

◆ volatile()

__asm__ volatile ( )

Variable Documentation

◆ buf

char buf = { 0, 0, 0, 0 }

◆ buffer

static int uint8_t * buffer
Initial value:
{
register int n asm("t1") = 0x4e

◆ buffer2

size_t void* buffer2

◆ c

static int c
Initial value:
{
register int n asm("t1") = 0x1c

◆ code2

int code2
Initial value:
{
register int n asm("t1") = 0xa1

◆ compar

size_t size_t int(* compar) (const void *, const void *)) ( const void ,
const void  
)

◆ count

unsigned count
Initial value:
{
register int n asm("t1") = 0x2a

◆ flags

flags
Initial value:
{
register int n asm("t1") = 0x02

◆ handler

uint32_t uint32_t void(* handler) ()) ( )

◆ info

Initial value:
{
register int n asm("t1") = 0x02

◆ mode

static int mode
Initial value:
{
register int n asm("t1") = 0x7e

◆ nel

size_t nel

◆ ret

int ret
Initial value:
{
register int n asm("t1") = 0x14

◆ s2

static const char * s2
Initial value:
{
register int n asm("t1") = 0x17

◆ sector

static int sector

◆ size

size_t size
Initial value:
{
register int n asm("t1") = 0x03

◆ size1

size_t size1

◆ size2

size_t void size_t size2
Initial value:
{
register int n asm("t1") = 0x12

◆ spec

static uint32_t spec
Initial value:
{
register int n asm("t1") = 0x07

◆ src

static const void * src
Initial value:
{
register int n asm("t1") = 0x15

◆ target

target

◆ value

static int value
Initial value:
{
register int n asm("t1") = 0x0a

◆ width

size_t size_t width