Ken Teh wrote:
> 
> I have a PCI device which I need to configure during init_module().
> Typically, this is done by enclosing the pcibios_write_config_xxx(),
> pcibios_read_config_xxx() between a cli() and a sti().
> 

Hi,
  We use camera acquisition PCI cards and I initialise these cards with
:

- pci_find_device(VENDORID,DEVICEID,struct pci_dev *dev)
- pci_read|write_config_xxx(struct pci_dev *dev,PCI_OFFSET_CONFIG,&data)
- remap_address = ioremap_nocache(PCI_IO|MEM,SIZE)
then
- rt_request_global_irq(dev->irq,Irq_handler)
- rt_enable_irq(dev->irq)

and then use IO remap to drive your PCI card.
( you can use pci_read|write_config_xxx(struct pci_dev
*dev,PCI_OFFSET_CONFIG,&data)
to configure bus-masters without problem in rt_tasks )

rt_functions are for RTAI but should have equivalent with RTlinux.

Chris.

--
Kumsta Christophe
Machinery Agrobotic Fruit
<[EMAIL PROTECTED]>
Real-Time image processing developper
RT-Linux/RTAI ( Use the Source Luck !)
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to