The attached example two routines will show you how to access hardware registers with physical address provided. One is by means of Proc file system, and the other is through Sys file system.
example routines:
Procfs:
|
文件: | regrw_procfs.tar.bz2 |
大小: | 20KB |
下载: | 下载 |
|
Sysfs:
|
文件: | regrw_sysfs.tar.bz2 |
大小: | 10KB |
下载: | 下载 |
|
my implementment through IOCTL:
|
文件: | myregrw.tar.bz2 |
大小: | 2883KB |
下载: | 下载 |
|
阅读(1470) | 评论(0) | 转发(0) |