标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
C程序优化之路--I/O篇 | 1372 | 0 | 0 | 2009-08-05 | |
缓冲区实现(一)——循环缓冲区(操作固定长度数据) | 6531 | 1 | 0 | 2009-08-03 | |
Open Sound System (OSS) 研究笔记 | 1160 | 0 | 0 | 2009-08-01 | |
环形缓冲区 | 1471 | 0 | 0 | 2009-08-01 | |
Linux音频编程指南 | 1195 | 0 | 0 | 2009-08-01 | |
Linux Audio Device Driver | 13861 | 0 | 4 | 2009-08-01 | |
排序算法相关网站 | 1148 | 0 | 0 | 2009-08-01 | |
OSS--跨平台的统一音频接口深入分析 | 762 | 0 | 0 | 2009-08-01 | |
V4L2 API 规范 | 1712 | 0 | 0 | 2009-07-27 | |
V4L2的操作流程(视频设备 | 1614 | 0 | 0 | 2009-07-27 | |
V4L2 | 1001 | 0 | 0 | 2009-07-24 | |
几篇关于ioctl()的文章 | 1582 | 0 | 0 | 2009-07-24 | |
Linux 系统内核空间与用户空间通信的实现与分析 | 1054 | 0 | 0 | 2009-07-24 | |
Copy_from_user函数详细分析 | 793 | 0 | 0 | 2009-07-24 | |
Posix线程编程指南(5)——杂项 | 610 | 0 | 0 | 2009-07-17 | |
Posix线程编程指南(4)——线程终止 | 835 | 0 | 0 | 2009-07-17 | |
Posix线程编程指南(3)——线程同步 | 636 | 0 | 1 | 2009-07-17 | |
Posix线程编程指南(2)——线程私有数据 | 655 | 0 | 2 | 2009-07-17 | |
linux下精密定时器 | 4162 | 1 | 1 | 2009-07-15 | |
牛人语录 | 706 | 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