mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -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,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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue