On 02/28/2011 02:41 PM, Jorge Fernandez Monteagudo wrote:
>>> What's the minimum interface I've to implement in order to use a
>>> SJA1000 can controller I've embedded in a FPGA which implements a PCI
>>> device? I'm studying the ems_pci.c code, is it a good starting point?
>> I have custom base address, irq and so on.
>>
>> If you want to connect a SJA1000 to a PCI Bus you have to use or
>> implement a PCI Bridge. A bridges from "PLX" are often used to do this.
>> Do you already have a FPGA connected to PCI?

[...]

> Yes, the FPGA implements the PCI bus controller and gives access to the
> SJA1000 can controller. I must enable the memory windows where the SJA1000
> is mapped and enable the interrupts. Then, I have to provide the base

Yes, you need a mem window and an interrupt.

> address where the read and write operations must be done. Then, the
> 'ems_pci.c' is a good start?

I think the plx_can.c is more generic.

cheers, Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to