PS2SDK
PS2 Homebrew Libraries
acuart_internal.h
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
11 #ifndef _ACUART_INTERNAL_H
12 #define _ACUART_INTERNAL_H
13 
14 #include <acuart.h>
15 #include <irx_imports.h>
16 
17 typedef volatile acUint16 *acUartReg;
18 
19 struct uart_buf
20 {
21  acUint8 *ub_buf;
22  acUint32 ub_size;
23  acUint32 ub_head;
24  acUint32 ub_tail;
25 };
26 
27 struct uart_softc
28 {
29  int eve;
30  acUint32 speed;
31  acUint32 fifo;
32  acUint32 loopback;
33  struct uart_buf xmit;
34  struct uart_buf recv;
35 };
36 
37 #ifdef TTY_DEVICE
38 int CreateTTY();
39 #endif
40 
41 #endif
uart_softc
Definition: acuart_internal.h:27
uart_buf
Definition: acuart_internal.h:19