diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-22 08:57:09 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-22 08:57:09 +0000 |
commit | 563e3c6e6e47536bdaad277ec545e27ee0594c41 (patch) | |
tree | 0ee3ec04bf0a204747c2d86691f3bc96f5066959 /qemu-char.h | |
parent | f34af52c53a58ae8ddf238609359198fdc6bb562 (diff) | |
download | qemu-563e3c6e6e47536bdaad277ec545e27ee0594c41.zip qemu-563e3c6e6e47536bdaad277ec545e27ee0594c41.tar.gz qemu-563e3c6e6e47536bdaad277ec545e27ee0594c41.tar.bz2 |
Parallel Port Direction Fix
The direction bit in the control register should not be directly
set using PPWCONTROL. The kernel gives the following debug message.
parport0 (ppdev0): use data_reverse for this!
More over setting the data pins to forward mode does not work,
perhaps a bug in the Linux PP driver. The right way to do this is
to use PPDATADIR to set the direction. The patch checks if the
user is toggling the direction bit, and invokes PPDATADIR to
do the job.
Signed-off-by: Vijay Kumar B <vijaykumar@bravegnu.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5063 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-char.h')
-rw-r--r-- | qemu-char.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-char.h b/qemu-char.h index 2746472..c01e590 100644 --- a/qemu-char.h +++ b/qemu-char.h @@ -27,6 +27,7 @@ typedef struct { #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 #define CHR_IOCTL_SERIAL_SET_TIOCM 12 #define CHR_IOCTL_SERIAL_GET_TIOCM 13 |