All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theo Veenker <Theo.Veenker@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] using a pcmcia parallel port card
Date: Wed, 03 Sep 2008 17:25:43 +0200	[thread overview]
Message-ID: <48BEAC77.9020504@domain.hid> (raw)
In-Reply-To: <48BD905A.2080008@domain.hid>

Veenker, Theo wrote:
> 
> 
> Gilles Chanteperdrix wrote:
>  > Theo Veenker wrote:
>  >> Hi,
>  >>
>  >> I'm trying to access a pcmcia parallel port (Trans Digital TDC303)
>  >> from a kernel space module. When I insert the card into the laptop
>  >> pcmcia_cs recognizes it and reports I/O address 0x3378. I tried
>  >> to access the device at that address like you would access LPT1
>  >> at 0x378. That didn't work; I assume the card is not actually at
>  >> that address or not enabled or something.
>  >>
>  >> Does anyone have a clue how to use a pcmcia parallel port card
>  >> with xenomai (or any other pcmcia card for that matter)?
>  >
>  > I would think your problem is not the pcmcia card (after all, nowadays,
>  > a pcmcia driver is probably just a special kind of pci driver), your
>  > problem is likely that you try to access this PCMCIA parallel port as if
>  > it was the classical builtin ISA based parallel port, and it is not.
>  > Does linux use the same driver for this parallel port as for the vanilla
>  > parallel port ?
>  >
> 
> Thanks. So modern PC cards are not ISA like?
> 
> I believe the vanilla port requires parport or parport_pc (a guess, I
> never used this) and the particular pcmcia card I have is handled by
> parport_cs (also handles the similar Quatech SPP-100).
> 
> Meanwhile I investigated a little further and found out by peeking at
> the target I/O address (0x3378) and above/below, that the card is indeed
> visible at that address. When card not inserted I see 0xFF, when inserted
> I see data looking similar to what I see at 0x378. Maybe you are right
> and the device cannot be accessed this way; in that case I hope someone
> can hint me where to go. But first I'm going to try to find out if the
> device isn't simply in the wrong mode (mode other than SPP). I'll let
> you know.

I'm glad to say from a linux test program I can access this pcmcia card
just like the regular parallel port. Apparently the card doesn't have
internal pull-ups on the status lines (like the regular port does) so
my switches to ground connected to the status lines had little effect.
Adding external pull-ups fixed that.

Theo



  reply	other threads:[~2008-09-03 15:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-02 15:19 [Xenomai-help] using a pcmcia parallel port card Theo Veenker
2008-09-02 17:41 ` Gilles Chanteperdrix
2008-09-02 19:13   ` Theo Veenker
2008-09-03 15:25     ` Theo Veenker [this message]
2008-09-03 17:03       ` Gilles Chanteperdrix

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=48BEAC77.9020504@domain.hid \
    --to=theo.veenker@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.