2002-10-14 08:57:45

by Romain Lievin

[permalink] [raw]
Subject: Serial API ('serport' ?)

Hi,

I would like to know whether a kind of parport exists for the serial ports.
This will allow me to do some low level accesses on the serial port pins (CTS/RTS & DSR/DTR).
I need to implement a bit-banging access on the serial port which can coexist with the other serial ports.

I can not use request_region/release_region because the region has already been locked by the serial port driver.

Any idea ?

--
Romain Lievin, aka 'roms' <[email protected]>
Web site <http://lpg.ticalc.org/prj_tilp>
"Linux, y'a moins bien mais c'est plus cher !"


2002-10-14 09:08:35

by Russell King

[permalink] [raw]
Subject: Re: Serial API ('serport' ?)

On Mon, Oct 14, 2002 at 11:07:55AM +0200, Romain Lievin wrote:
> I would like to know whether a kind of parport exists for the serial ports.

Not currently.

> This will allow me to do some low level accesses on the serial port pins
> (CTS/RTS & DSR/DTR). I need to implement a bit-banging access on the serial
> port which can coexist with the other serial ports.

Although these are available to user space, they're not easily controlled
from anything outside the serial driver at the moment. I'm aware of this
limitation, and it needs to be fixed; there are keyboards (eg) for the iPAQ
that need to bitbang these signals.

Unfortunately that doesn't help you.

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

2002-10-14 12:25:59

by Brian Gerst

[permalink] [raw]
Subject: Re: Serial API ('serport' ?)

Romain Lievin wrote:
> Hi,
>
> I would like to know whether a kind of parport exists for the serial ports.
> This will allow me to do some low level accesses on the serial port pins (CTS/RTS & DSR/DTR).
> I need to implement a bit-banging access on the serial port which can coexist with the other serial ports.
>
> I can not use request_region/release_region because the region has already been locked by the serial port driver.
>
> Any idea ?

TTY line disciplines should be what you are looking for.

--
Brian Gerst