blob: fd3e17e5925e41e842bbb35ee58a9912e487d879 [file] [log] [blame]
Alexandre Julliardc6c09441997-01-12 18:32:19 +00001#ifndef __WINE_COMM_H
2#define __WINE_COMM_H
Alexandre Julliard6b81b391994-07-07 16:23:58 +00003
Alexandre Julliard670cdc41997-08-24 16:00:30 +00004#define MAX_PORTS 9
Alexandre Julliard6b81b391994-07-07 16:23:58 +00005
6struct DosDeviceStruct {
7 char *devicename; /* /dev/cua1 */
8 int fd;
9 int suspended;
Ove Kaavena4dd1be1999-04-01 11:52:16 +000010 int unget,xmit;
Alexandre Julliard3a405ba1994-10-30 16:25:19 +000011 int baudrate;
Ove Kaavena88444e1999-06-12 06:43:48 +000012 int evtchar;
Ove Kaavena1c45a51999-03-21 15:45:41 +000013 /* events */
14 int commerror, eventmask;
15 /* buffers */
16 char *inbuf,*outbuf;
Ove Kaavena4dd1be1999-04-01 11:52:16 +000017 unsigned ibuf_size,ibuf_head,ibuf_tail;
18 unsigned obuf_size,obuf_head,obuf_tail;
Ove Kaavena1c45a51999-03-21 15:45:41 +000019 /* notifications */
20 int wnd, n_read, n_write;
Alexandre Julliard6b81b391994-07-07 16:23:58 +000021};
22
Alexandre Julliard594997c1995-04-30 10:05:20 +000023extern void COMM_Init(void);
Alexandre Julliard234bc241994-12-10 13:02:28 +000024
Alexandre Julliardc6c09441997-01-12 18:32:19 +000025#endif /* __WINE_COMM_H */