mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
chardev: serial & parallel declaration to own headers
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
8228e353d8
commit
7566c6efe7
12 changed files with 50 additions and 46 deletions
|
@ -24,6 +24,8 @@
|
|||
#ifndef CHAR_SERIAL_H
|
||||
#define CHAR_SERIAL_H
|
||||
|
||||
#include "chardev/char.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define HAVE_CHARDEV_SERIAL 1
|
||||
#elif defined(__linux__) || defined(__sun__) || defined(__FreeBSD__) \
|
||||
|
@ -32,4 +34,24 @@
|
|||
#define HAVE_CHARDEV_SERIAL 1
|
||||
#endif
|
||||
|
||||
#define CHR_IOCTL_SERIAL_SET_PARAMS 1
|
||||
typedef struct {
|
||||
int speed;
|
||||
int parity;
|
||||
int data_bits;
|
||||
int stop_bits;
|
||||
} QEMUSerialSetParams;
|
||||
|
||||
#define CHR_IOCTL_SERIAL_SET_BREAK 2
|
||||
|
||||
#define CHR_IOCTL_SERIAL_SET_TIOCM 13
|
||||
#define CHR_IOCTL_SERIAL_GET_TIOCM 14
|
||||
|
||||
#define CHR_TIOCM_CTS 0x020
|
||||
#define CHR_TIOCM_CAR 0x040
|
||||
#define CHR_TIOCM_DSR 0x100
|
||||
#define CHR_TIOCM_RI 0x080
|
||||
#define CHR_TIOCM_DTR 0x002
|
||||
#define CHR_TIOCM_RTS 0x004
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue