标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
C程序优化之路--I/O篇 | 1376 | 0 | 0 | 2009-08-05 | |
缓冲区实现(一)——循环缓冲区(操作固定长度数据) | 6573 | 1 | 0 | 2009-08-03 | |
Open Sound System (OSS) 研究笔记 | 1167 | 0 | 0 | 2009-08-01 | |
环形缓冲区 | 1476 | 0 | 0 | 2009-08-01 | |
Linux音频编程指南 | 1198 | 0 | 0 | 2009-08-01 | |
Linux Audio Device Driver | 13874 | 0 | 4 | 2009-08-01 | |
排序算法相关网站 | 1153 | 0 | 0 | 2009-08-01 | |
OSS--跨平台的统一音频接口深入分析 | 767 | 0 | 0 | 2009-08-01 | |
V4L2 API 规范 | 1715 | 0 | 0 | 2009-07-27 | |
V4L2的操作流程(视频设备 | 1649 | 0 | 0 | 2009-07-27 | |
V4L2 | 1031 | 0 | 0 | 2009-07-24 | |
几篇关于ioctl()的文章 | 1620 | 0 | 0 | 2009-07-24 | |
Linux 系统内核空间与用户空间通信的实现与分析 | 1060 | 0 | 0 | 2009-07-24 | |
Copy_from_user函数详细分析 | 799 | 0 | 0 | 2009-07-24 | |
Posix线程编程指南(5)——杂项 | 613 | 0 | 0 | 2009-07-17 | |
Posix线程编程指南(4)——线程终止 | 841 | 0 | 0 | 2009-07-17 | |
Posix线程编程指南(3)——线程同步 | 640 | 0 | 1 | 2009-07-17 | |
Posix线程编程指南(2)——线程私有数据 | 660 | 0 | 2 | 2009-07-17 | |
linux下精密定时器 | 4171 | 1 | 1 | 2009-07-15 | |
牛人语录 | 709 | 0 | 1 | 2009-07-14 |
config20102009-11-19 19:37
外设fpga做的8k的memory,用arm9去读写它,在linux2.6系统下;这样做对吗?
实际地址映射到虚拟内存中,用得到的虚拟地址去读写。
地址总线:a1-a14 数据总线:d0-d15
#define FPGA_BASE_ADDR (0x18000000)//片选为nGCS3
#define BWSCON (0x48000000)
#define BANKCON3 (0x48000010)
#define IP_SIZE (0x1FFF)//13根地址线8K的物理空间
static void *bwscon,*bankcon3,*fpga_base_addr;
bwscon = ioremap_nocache(BWSCON,0x0000004);
bankcon3 = ioremap_nocache(BANKCON3,0x0000004);
fpga_base_addr = ioremap_nocache(FPGA_BASE_ADDR,IP_SIZE);
writel(readl(bwscon)|0xD000,bwscon);
writel(0x7FFC,bankcon3);
for(i=0;i