linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jbradford@dial.pipex.com
To: linux-kernel@vger.kernel.org
Subject: Serial port monitoring with keyboard LEDs
Date: Sat, 21 Sep 2002 22:06:15 +0100	[thread overview]
Message-ID: <200209212106.g8LL6FKP001764@darkstar.example.net> (raw)

Hi,

I'm trying to add code to use the keyboard LEDs as serial port Tx/Rx LEDs, somwehat analogous to an external modem, (I.E. for links to things other than modems, that typically don't have LEDs).

I'm using a 2.4.19 kernel as a reference, and looking at putting my code in /drivers/char/serial.c, specifically at the serial_in and serial_out functions, is this the Right Thing or not?  Obviously the LEDs won't actually reflect what is going out on the serial line, because of buffering, etc, and also, what's going to be more useful - just flash on and off for each byte sent, or LED on for 1, LED off for 0 bit?  That would be even more of an approximation to what's actually happening on the serial line, because obviously we're sending a byte at a time to the serial port.

Any pointers to docs I should read would be appreicated :-)

John.

             reply	other threads:[~2002-09-21 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-21 21:06 jbradford [this message]
2002-09-22  6:26 ` Serial port monitoring with keyboard LEDs Brad Hards

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=200209212106.g8LL6FKP001764@darkstar.example.net \
    --to=jbradford@dial.pipex.com \
    --cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).