Attempt uio with devmem. I give up on UIO for now

This commit is contained in:
Ciro Santilli
2017-08-05 23:06:47 +01:00
parent c6edbfddb0
commit 879001563a
4 changed files with 101 additions and 13 deletions

View File

@@ -60,6 +60,10 @@ Class: pure magic: https://www-s.acm.illinois.edu/sigops/2007/roll_your_own/7.c.
TODO: does it have any side effects? Set in the edu device at:
k->class_id = PCI_CLASS_OTHERS
## Play with registers from the CLI
Use setpci, devmem2 and /sys.
*/
#include <asm/uaccess.h> /* put_user */