Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThanks for the reply!
I get this kind of errors when commenting the include file: error: dereferencing pointer to incomplete type error: implicit declaration of function ‘sg_create_mapper’ error: implicit declaration of function ‘sg_destroy_mapper’ error: implicit declaration of function ‘sgm_map_user_pages’ error: implicit declaration of function ‘sgm_unmap_user_pages’ error: variable ‘sg_fops’ has initializer but incomplete type error: unknown field ‘owner’ specified in initializer error: unknown field ‘open’ specified in initializer error: unknown field ‘release’ specified in initializer error: unknown field ‘write’ specified in initializer error: implicit declaration of function ‘alloc_chrdev_region’ error: implicit declaration of function ‘unregister_chrdev_region’ After further googling I found this code: svn.assembla.com/svn/altpciechdma/user_dma_sg.c It has some of the missing functions in it. With some approximate copy/pasting I can get the driver to compile and the char device functionalities to (apparently) work. Thank you :).