• LynxOS 3.1.0 - Accessing a PCI device registers in PCI-IO memory

    From gtanier@gmail.com@110:300/1.1 to All on Fri Apr 5 13:19:31 2013
    Hi there,

    I am programming a block driver on LynxOS 3.1.0 for a PCI component (Silicon Image siI680a) and i am having issues on accessing the Internal Registers.

    For project-specific reasons, I cannot use the DRM nor the PCI support facilities.

    In my install entry point, I can succesfully :
    - retrieve the device structure : PCIGetDevice()
    - configure the different Configuration Registers : PCIWriteConf()
    - map the Internal Registers : PCIMapDevice(), which gives me the virtual memory adress of these registers.

    But when I try to read or write in these registers (to initialize the device for example), it does not work.
    I have a Bus Error which seems to mean that the memory is not mapped properly.


    Does anyone has any idea of what is wrong ?

    Thanks a lot for any help !


    Guillaume

    --- MBSE BBS v0.95.13 (GNU/Linux-x86_64)
    * Origin: The Kofo BBS MBSE - telnet://fido1.kofobbs.ne (110:300/1.1@linuxnet)