All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] xeno_rtcan_mem.ko, what are it's parameters?
Date: Fri, 17 Nov 2006 21:22:09 +0100	[thread overview]
Message-ID: <455E19F1.2080400@domain.hid> (raw)
In-Reply-To: <455D6D3B.9000009@domain.hid>

Jan Kiszka wrote:
> Frits de Klark wrote:
>> Hi,
>>
>> to get back on my earlier question: IF the memory mapping might work for
>> me,
>> how should I call it?
>> The PCI card has two CAN ports. Here's (a part of) the output of lspci -vv:
>>
>> Interrupt: pin A routed to IRQ 11
>> Region 0: Memory at e1003000 (32-bit, non prefetchable) [size=128]
>> Region 2: I/O ports at d800 [size=128]
>> Region 3: I/O ports at dc00 [size=128]
>> Region 4: I/O ports at e000 [size=4]
>>
>> What should the insmod command to try if it might work?
> 
> You could try handing region 2 or 3 to the rtcan_isa driver or region 0
> to rtcan_mem. Maybe your adapter actually does 1:1 mapping of the
> SJA1000 address space (it looks like). I just wonder what region 4 is
> doing. Maybe it controls the content of region 0, which may either hold
> the first or the second CAN controller. Just a theory...

To check that, load the mem driver with:

# insmod xeno_rtcan_mem.o mem=0xe1003000 irq=11

maybe there are SJA1000 registers as well. But the extra registers might 
also be there to do a reset, or report some IRQ status.

Wolfgang.


      parent reply	other threads:[~2006-11-17 20:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 15:49 [Xenomai-help] xeno_rtcan_mem.ko, what are it's parameters? Frits de Klark
2006-11-16 16:02 ` Jan Kiszka
2006-11-16 19:30   ` Wolfgang Grandegger
2006-11-16 20:00     ` Frits de Klark
2006-11-16 20:28       ` Wolfgang Grandegger
2006-11-17  7:57         ` Frits de Klark
2006-11-17  8:03           ` Sebastian Smolorz
2006-11-17  8:05           ` Jan Kiszka
2006-11-17  8:41             ` Frits de Klark
2006-11-17  8:53               ` Jan Kiszka
2006-11-17  9:19                 ` Frits de Klark
2006-11-17  9:25                   ` Jan Kiszka
2006-11-17  9:43                     ` Frits de Klark
2006-11-17 10:20                       ` Frits de Klark
2006-11-17 20:31                         ` Wolfgang Grandegger
2006-11-17 20:22             ` Wolfgang Grandegger [this message]

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=455E19F1.2080400@domain.hid \
    --to=wg@domain.hid \
    --cc=jan.kiszka@domain.hid \
    --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.