Forum Discussion

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

How to finish the altpciechdma.c driver?

I've downloaded the altpciechdma.c driver for the Altera Arria GX dev kit.

The char part of it is not yet finished (due to the comments).

And a module is missign "mapper_user_to_sg.h".

Smb has tried to finish this part of the driver by himself?

Or maybe I've missed the "mapper_user_to_sg.h" module?

I need to talk to the driver from userspace.

(Using LInux 2.6.25)

22 Replies

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

    Char device operations are already implemented in this kernel module. Just comment this include file. You will not find him . :-)

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

    Anyone figured this out?

    I spent a few days trying to get to this point. The DMA test works fine now, but I'd like to register the character device and I am missing that mapper_user_to_sg.h file.

    I can't seem to find it anywhere on google, I wonder if it's just a placeholder or if the file actually exists somewhere...

    If anyone managed to solve this issue help would be much appreciated.

    Thank you!