[RFC] Introduce ports.
Jan Lübbe
jluebbe at lasnet.de
Sun Aug 5 16:44:59 CEST 2007
On Thu, 2007-08-02 at 17:06 +0200, andrzej zaborowski wrote:
> Hi,
>
> the attached patch adds a struct gsmd_port notion which is only
> slightly more abstract than gsmd_fd. It is untested, but I'm posting
> it to request comments on the approach and suggestions.
>
> The port is much like a tty, the term is used a lot in the TS 07.10
> document. I was going through TS 07.10 and implementing the
> multiplexing when I noticed that we will need to use some kind of port
> notion in gsmd to be able to start and stop the multiplexing, without
> going around though pty's. Pty's can be easily implemented on top of
> the struct gsmd_port (e.g. for GPRS with pppd).
>
> It should be easy to switch to and from multiplexing mode in the AT
> cmd parser with this. The uart fd is wrapped in a struct gsmd_port and
> only this struct is used by atcmd.c. When the multiplexer is enabled,
> each DLC will provide a (virtual) gsmd_port of its own and atcmd.c can
> then be attached to one of these ports. The attached
> src/gsmd/ts0710muxing.c is where I left off the multiplexer
> implementation, if I can make the multiplexing work until Saturday I
> wil
> l post a patch under bug #90 (I will be away after Saturday).
> Regards
There is already a TS 07.10 implemetation in the kernel. See Harald
Welte's message:
http://lists.openmoko.org/pipermail/gsmd-devel/2007-July/000132.html
It provides a TTY per DLC to userspace.
This driver needs some more work though, it was ported from 2.4 for the
OpenEZX project. The EZX GSM-Modem deviates somewhat from TS 07.10, so
the differences should be factored out.
--
Jan Lübbe <jluebbe at lasnet.de> http://sicherheitsschwankung.de
gpg-key 1024D/D8480F2E 2002-03-20
fingerprint 1B25 F91F 9E7B 5D4F 1282 02D6 8A83 8BE4 D848 0F2E
More information about the gsmd-devel
mailing list