Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

How to create a custom driver for PCI-Express(Stratix II GX)

Hi, I am a newbie so please excuse me for asking this. I am currently working on a school project where I am required to make a custom windows/linux driver to talk to the Stratix II GX board via PCI-E. However, I can not find any good tutorial/documentation online for creating a custom pci-e driver. Can anyone please explain to me the basic steps/tools I need? Links to documentations/tutorials are fine too. Thanks.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    altpicechdma.c driver for Linux.It's in the core.

    WinDriver 10.0 for Windows.

    You need to know C.Assembler or C++ practically are not used.

    There is a lot of documentation.Surf the net.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Can anyone please explain to me the basic steps/tools I need? Links to documentations/tutorials are fine too. Thanks.

    --- Quote End ---

    I suggest you first get a basic understanding of drivers. I have coded drivers under windows, and I suggest you read something about WDM and KMDF.

    Of course, a basic c/c++ skill is required.

    After that, you can find some sample driver codes and adapt them to your device according to your requirements.