All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Smolorz <smolorz@domain.hid>
To: "Charlton, John" <john.charlton@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>,
	"socketcan-users@domain.hid" <socketcan-users@domain.hid>
Subject: Re: [Xenomai-help] rtcanconfig rtcansend rtcanrecv
Date: Thu, 08 Jan 2009 11:32:49 +0100	[thread overview]
Message-ID: <4965D651.5010808@domain.hid> (raw)
In-Reply-To: <CF7FB0793253794F9F45991443E5FE2003E4BAC0C0@domain.hid>

Charlton, John wrote:
> I am attaching rtcan_tscan1.zip (and the ts-can1-manual.pdf) which
> contains the added rtcan_tscan1.c and Kconfig and Makefile modifications
> I made. It is possible that there is something in my kernel module that
> is causing the problem.  I copied the rtcan_isa.c module and changed the
> names for the tscan1 device.  The TS-CAN1 PC-104 has jumper selectable
> configuration registers and IRQ.  The first TS-CAN1 is at the default
> open jumper setting which is IO address 0x150 to 0x157 and IRQ5 (both
> JP4 and JP5).  The second TS-CAN1 is at 0x158 to 0x15F and IRQ7 (only JP5).

Without digging too deep into the special properties of your CAN 
hardware and your source code modifications: It seems to me that your 
CAN controller has two distinct IO regions whereas rtcan_isa assumes 
that there is one IO region of 32 bytes which belongs to the SJA1000. 
What are the two regions of your hardware for especially, the one with 
only 8 bytes? You should check whether you access those SJA1000 
registers correctly. A look into rtcan_sja1000_regs.h may help you.

However, as Wolfgang already suggested, there is at least one driver 
available for plain Linux which should work with your CAN controller. If 
you tested this driver successfully you could take a look into its 
source to get further hints for your Xenomai driver.

-- 
Sebastian


  reply	other threads:[~2009-01-08 10:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-07 16:17 [Xenomai-help] rtcanconfig rtcansend rtcanrecv Charlton, John
2009-01-07 17:28 ` Sebastian Smolorz
2009-01-07 19:56   ` Charlton, John
2009-01-08 10:32     ` Sebastian Smolorz [this message]
2009-01-08 13:21       ` Charlton, John
2009-01-12 15:33         ` Charlton, John
2009-01-12 16:10           ` [Xenomai-help] [Socketcan-users] " Wolfgang Grandegger
2009-01-12 16:30             ` Charlton, John
2009-01-12 17:10               ` Sebastian Smolorz
2009-01-12 18:47                 ` Charlton, John
2009-01-12 20:30                   ` Wolfgang Grandegger
2009-01-13 14:32                     ` Charlton, John
2009-01-13 15:04                       ` Wolfgang Grandegger
2009-01-14 20:50                         ` Charlton, John
2009-01-12 17:17               ` Wolfgang Grandegger
     [not found]         ` <496605F2.1080306@domain.hid>
2009-02-02 21:54           ` Charlton, John
2009-02-03 14:19             ` Sebastian Smolorz
2009-01-07 20:08   ` [Xenomai-help] " Charlton, John
2009-01-07 18:19 ` Wolfgang Grandegger
2009-01-07 20:16   ` Charlton, John
2009-01-07 20:31     ` Wolfgang Grandegger

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=4965D651.5010808@domain.hid \
    --to=smolorz@domain.hid \
    --cc=john.charlton@domain.hid \
    --cc=socketcan-users@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.