Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Functions | Variables
sio1-tty.c File Reference
#include <stdint.h>
#include "common/psxlibc/device.h"
#include "common/psxlibc/stdio.h"
#include "common/syscalls/syscalls.h"
#include "monitor/link.h"
Include dependency graph for sio1-tty.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void installSio1Tty (void)
 

Variables

const struct Device s_ttyDevice
 

Function Documentation

◆ installSio1Tty()

void installSio1Tty ( void  )

Variable Documentation

◆ s_ttyDevice

const struct Device s_ttyDevice
Initial value:
= {
.name = "tty",
.blockSize = 1,
.desc = "MONITOR_SIO1",
.init = (device_init)ttyNull,
.open = (device_open)ttyNull,
.action = ttyAction,
.close = (device_close)ttyNull,
.ioctl = (device_ioctl)ttyNull,
.read = (device_read)ttyNull,
.write = (device_write)ttyNull,
.erase = (device_erase)ttyNull,
.undelete = (void *)ttyNull,
.firstFile = (device_firstFile)ttyNull,
.format = (device_format)ttyNull,
.chdir = (void *)ttyNull,
.rename = (device_rename)ttyNull,
.deinit = (device_deinit)ttyNull,
.check = (void *)ttyNull,
}
struct DirEntry *(* device_firstFile)(struct File *file, const char *filename, struct DirEntry *entry)
Definition device.h:56
void(* device_init)()
Definition device.h:48
int(* device_open)(struct File *, const char *filename, int mode)
Definition device.h:49
struct DirEntry *(* device_nextFile)(struct File *file, struct DirEntry *entry)
Definition device.h:57
int(* device_close)(struct File *)
Definition device.h:51
int(* device_ioctl)(struct File *, int cmd, int arg)
Definition device.h:52
int(* device_format)(struct File *file)
Definition device.h:58
void(* device_deinit)()
Definition device.h:60
int(* device_erase)(struct File *, const char *path)
Definition device.h:55
@ PSXDTTYPE_CONS
Definition device.h:42
@ PSXDTTYPE_CHAR
Definition device.h:41
int(* device_rename)(struct File *oldFile, const char *oldName, struct File *newFile, const char *newName)
Definition device.h:59
int(* device_write)(struct File *, void *buffer, int size)
Definition device.h:54
int(* device_read)(struct File *, void *buffer, int size)
Definition device.h:53
struct DirEntry * nextFile(struct DirEntry *entry)
Definition filesystem.c:58