1  /*
2   * UAE - The Un*x Amiga Emulator
3   *
4   * Serial Line Emulation
5   *
6   * Copyright 1996, 1997 Stefan Reinauer <stepan@linux.de>
7   * Copyright 1997 Christian Schmitt <schmitt@freiburg.linux.de>
8   */
9 
10 #ifndef UAE_SERIAL_H
11 #define UAE_SERIAL_H
12 
13 #include "uae/types.h"
14 
15 extern void serial_init (void);
16 extern void serial_exit (void);
17 extern void serial_dtr_off (void);
18 extern void serial_dtr_on (void);
19 
20 extern uae_u16 SERDATR (void);
21 extern int   SERDATS (void);
22 extern void  SERPER (uae_u16 w);
23 extern void  SERDAT (uae_u16 w);
24 
25 extern uae_u8 serial_writestatus (uae_u8, uae_u8);
26 extern uae_u8 serial_readstatus (uae_u8);
27 extern void serial_uartbreak (int);
28 extern void serial_rbf_clear (void);
29 extern uae_u16 serdat;
30 
31 extern int doreadser, serstat;
32 
33 extern void serial_flush_buffer (void);
34 
35 extern void serial_hsynchandler (void);
36 extern void serial_check_irq (void);
37 
38 extern int uaeser_getdatalength (void);
39 extern int uaeser_getbytespending (void*);
40 extern int uaeser_open (void*, void*, int);
41 extern void uaeser_close (void*);
42 extern int uaeser_read (void*, uae_u8 *data, uae_u32 len);
43 extern int uaeser_write (void*, uae_u8 *data, uae_u32 len);
44 extern int uaeser_query (void*, uae_u16 *status, uae_u32 *pending);
45 extern int uaeser_setparams (void*, int baud, int rbuffer, int bits, int sbits, int rtscts, int parity, uae_u32 xonxoff);
46 extern int uaeser_break (void*, int brklen);
47 extern void uaeser_signal (void*, int source);
48 extern void uaeser_trigger (void*);
49 extern void uaeser_clearbuffers (void*);
50 
51 extern void enet_writeser (uae_u16);
52 extern int enet_readseravail (void);
53 extern int enet_readser (uae_u16 *buffer);
54 extern int enet_open (TCHAR *name);
55 extern void enet_close (void);
56 
57 #endif /* UAE_SERIAL_H */
58