1#include "irx_imports.h"
5int acUartWrite(
void *buf,
int count);
6int acUartRead(
void *buf,
int count);
8static int acuart_read(
iop_file_t *f,
void *buffer,
int size) {
10 return acUartRead(buffer, size);
12static int acuart_write(
iop_file_t *f,
void *buffer,
int size) {
14 return acUartWrite(buffer, size);
17IOMAN_RETURN_VALUE_IMPL(0);
18IOMAN_RETURN_VALUE_IMPL(
ENOTSUP);
21 IOMAN_RETURN_VALUE(0),
22 IOMAN_RETURN_VALUE(0),
44 IOP_DT_CHAR | IOP_DT_CONS,
46 "TTY via arcade UART",
51 if(AddDrv(&uart_tty) != 0)
return MODULE_NO_RESIDENT_END;
54 open(DEVNAME
"00:", 0x1000 | O_RDWR);
57 open(DEVNAME
"00:", O_WRONLY);
60 open(DEVNAME
"00:", O_WRONLY);
61 return MODULE_RESIDENT_END;
u32 count
start sector of fragmented bd/file