From: Grant Grundler <grundler@dsl2.external.hp.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: jochen@scram.de (Jochen Friedrich),
parisc-linux@lists.parisc-linux.org (HP900 PARISC mailing list)
Subject: Re: [parisc-linux] Patch to enable IrDA :-)
Date: Sun, 07 Jul 2002 00:33:49 -0600 [thread overview]
Message-ID: <20020707063349.DAB344850@dsl2.external.hp.com> (raw)
In-Reply-To: Message from Alan Cox <alan@lxorguk.ukuu.org.uk> of "Wed, 01 May 2002 01:43:25 BST." <E172iDN-0000pm-00@the-village.bc.nu>
Alan Cox wrote:
> With these ifdefs for ARM and parisc maybe
>
> arg = IRDA_MODEM_BITS;
>
> and sticking tha tin the header would be good ?
A few monthes later...here's a patch that does this for i386 and parisc.
Should I commit this to the parisc-linux CVS?
(also available as ftp://ftp.parisc-linux.org/patches/diff.irtty_bits)
grant
Index: drivers/net/irda/irtty.c
===================================================================
RCS file: /var/cvs/linux/drivers/net/irda/irtty.c,v
retrieving revision 1.8
diff -u -p -r1.8 irtty.c
--- drivers/net/irda/irtty.c 2001/11/09 23:36:06 1.8
+++ drivers/net/irda/irtty.c 2002/07/07 06:30:36
@@ -760,14 +760,11 @@ static int irtty_set_dtr_rts(struct net_
struct irtty_cb *self;
struct tty_struct *tty;
mm_segment_t fs;
- int arg = 0;
+ int arg = TIOCM_MODEM_BITS;
self = (struct irtty_cb *) dev->priv;
tty = self->tty;
-#ifdef TIOCM_OUT2 /* Not defined for ARM */
- arg = TIOCM_OUT2;
-#endif
if (rts)
arg |= TIOCM_RTS;
if (dtr)
Index: include/asm-i386/termios.h
===================================================================
RCS file: /var/cvs/linux/include/asm-i386/termios.h,v
retrieving revision 1.3
diff -u -p -r1.3 termios.h
--- include/asm-i386/termios.h 2001/07/05 21:38:41 1.3
+++ include/asm-i386/termios.h 2002/07/07 06:30:36
@@ -37,6 +37,8 @@ struct termio {
#define TIOCM_OUT2 0x4000
#define TIOCM_LOOP 0x8000
+#define TIOCM_MODEM_BITS TIOCM_OUT2 /* IRDA support */
+
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/* line disciplines */
Index: include/asm-parisc/termios.h
===================================================================
RCS file: /var/cvs/linux/include/asm-parisc/termios.h,v
retrieving revision 1.6
diff -u -p -r1.6 termios.h
--- include/asm-parisc/termios.h 2001/07/11 17:20:32 1.6
+++ include/asm-parisc/termios.h 2002/07/07 06:30:36
@@ -37,6 +37,9 @@ struct termio {
#define TIOCM_OUT2 0x4000
#define TIOCM_LOOP 0x8000
+/* IRDA support - PA-RISC uses OUT1 as hardware flow control bit. */
+#define TIOCM_MODEM_BITS (TIOCM_OUT2 | TIOCM_OUT1)
+
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
/* line disciplines */
next prev parent reply other threads:[~2002-07-07 6:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jochen@scram.de>
2002-05-01 0:08 ` [parisc-linux] Patch to enable IrDA :-) Jochen Friedrich
2002-05-01 0:43 ` Alan Cox
2002-07-07 6:33 ` Grant Grundler [this message]
2002-06-02 17:06 ` Grant Grundler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020707063349.DAB344850@dsl2.external.hp.com \
--to=grundler@dsl2.external.hp.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jochen@scram.de \
--cc=parisc-linux@lists.parisc-linux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox