caodan4linux/libuio
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
libuio -- light-wight library to access UIO devices --------------------------------------------------- Copyright (C) 2007 Hans J. Koch Copyright (C) 2010 Stephan Linz Copyright (C) 2020 Dan.Cao libuio is a light-wight C programming library to handle UIO device discovery and binding task. The library is based on the UIO example code lsuio v0.2.0 written by Hans J. Koch <hjk@linutronix.de>. Hans J. Koch maintains UIO in the Linux kernel. For more infomration use the links: http://www.osadl.org/UIO.uio.0.html http://www.osadl.org/UIO.uio0.0.html http://www.osadl.org/projects/downloads/UIO http://lwn.net/Articles/232575/ Comments are welcome. Stephan Linz <linz@li-pro.net> rwuio example: read 32bit value from the map1, read offset=0 rwuio -m 1 -r 0x0 -4 read 32bit value from the map1, read offset=0x8 rwuio -m 1 -r 0x8 -4 write 32bit value 0x1234567 to map1, write offset=0 rwuio -m 1 -w 0x0:0x12345678 -4 write 32bit value 0x1234567 to map1, write offset=0x8 rwuio -m 1 -w 0x8:0x12345678 -4