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.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help