Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHow 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...
Altera_Forum
Honored Contributor
14 years agoHi haulisson.
This short tutorial will give you all the information you need: http://tuxthink.blogspot.com/2010/10/writing-example-driver-from-scratch.html You'll find that most of the 'character device' code is already implemented in the altpciechdma.c driver. You can then complement it with the system calls 'copy_from_user()' and 'copy_to_user()', and use the provided user space code to achieve your goals. Best regards, Pedro