RIO modemsignals.
PATCH 1/1 RIO modemsignals.
Hi,
Francois Groenewald noted that the RIO driver under Linux didn't implement the TIOMGET and related IOCTLs. Attached is a patch that fixes this.
Alan, sorry for being so late with this: I was waiting for an "yep it works" from Francois...
Roger.
Signature · 4 lines
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2137555 ** *-- BitWizard writes Linux device drivers for any device you may have! --* * There are old pilots, and there are bold pilots. * There are also old, bald pilots.
drivers/char/rio/linux_compat.h +1 -0
@@ -93,6 +93,7 @@#define RIO_DEBUG_SPINLOCK 0x010000#define RIO_DEBUG_DELAY 0x020000#define RIO_DEBUG_MOD_COUNT 0x040000 +#define RIO_DEBUG_IOCTL 0x080000/* Copied over from riowinif.h . This is ugly. The winif file declares also much other stuff which is incompatible with the headers from
drivers/char/rio/rio_linux.c +57 -29
122 lines not on this page · raw message
drivers/char/rio/rio_linux.h +17 -0
@@ -190,3 +190,20 @@#define func_enter2 ()#endif +/* Documentation says to use these defines. Why aren't they in a +* header then? Hmm. They are in the header "riowinif.h", however +* that file doesn't compile. I give up. Copied here. -- REW +*/ + +#define MSET_RTS 0x01/* RTS modem signal */ +#define MSET_DTR 0x02/* DTR modem signal */ + +#define MODEM_DSR 0x80/* Data Set Ready modem state */ +#define MODEM_CTS 0x40/* Clear To Send modem state */ +#define MODEM_RI 0x20/* Ring Indicate modem state */ +#define MODEM_CD 0x10/* Carrier Detect modem state */ +#define MODEM_TSTOP 0x08/* Transmit Stopped state */ +#define MODEM_TEMPTY 0x04/* Transmit Empty state */ +#define MODEM_DTR 0x02/* DTR modem output state */ +#define MODEM_RTS 0x01/* RTS modem output state */ +