diff options
author | Marc-André Lureau | 2017-01-26 14:33:39 +0100 |
---|---|---|
committer | Marc-André Lureau | 2017-06-02 09:33:52 +0200 |
commit | 7566c6efe75572c63a8841fc09d0a8935b188c2f (patch) | |
tree | ae2db83931156b4b8a89ccaea0044d972e481c5d /include/chardev/char-parallel.h | |
parent | chardev: move headers to include/chardev (diff) | |
download | qemu-7566c6efe75572c63a8841fc09d0a8935b188c2f.tar.gz qemu-7566c6efe75572c63a8841fc09d0a8935b188c2f.tar.xz qemu-7566c6efe75572c63a8841fc09d0a8935b188c2f.zip |
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>
Diffstat (limited to 'include/chardev/char-parallel.h')
-rw-r--r-- | include/chardev/char-parallel.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/chardev/char-parallel.h b/include/chardev/char-parallel.h index 26742f9d5c..3284a1b96b 100644 --- a/include/chardev/char-parallel.h +++ b/include/chardev/char-parallel.h @@ -24,9 +24,27 @@ #ifndef CHAR_PARALLEL_H #define CHAR_PARALLEL_H -#if defined(__linux__) || defined(__FreeBSD__) || \ +#include "chardev/char.h" + +#if defined(__linux__) || defined(__FreeBSD__) || \ defined(__FreeBSD_kernel__) || defined(__DragonFly__) #define HAVE_CHARDEV_PARPORT 1 #endif +#define CHR_IOCTL_PP_READ_DATA 3 +#define CHR_IOCTL_PP_WRITE_DATA 4 +#define CHR_IOCTL_PP_READ_CONTROL 5 +#define CHR_IOCTL_PP_WRITE_CONTROL 6 +#define CHR_IOCTL_PP_READ_STATUS 7 +#define CHR_IOCTL_PP_EPP_READ_ADDR 8 +#define CHR_IOCTL_PP_EPP_READ 9 +#define CHR_IOCTL_PP_EPP_WRITE_ADDR 10 +#define CHR_IOCTL_PP_EPP_WRITE 11 +#define CHR_IOCTL_PP_DATA_DIR 12 + +struct ParallelIOArg { + void *buffer; + int count; +}; + #endif /* CHAR_PARALLEL_H */ |