Live & Learn
标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
WAV文件格式介绍 | 3312 | 0 | 1 | 2011-06-22 | |
I2S协议说明 | 843 | 0 | 0 | 2011-06-22 | |
移植SD卡驱动 for mini2440 & Linux2.6.29 | 1865 | 0 | 1 | 2011-06-21 | |
lwIP RAW TCP/IP接口 | 7499 | 0 | 0 | 2011-06-17 | |
MP3文件格式解析 | 1673 | 0 | 1 | 2011-06-14 | |
iLBC编解码相关知识 | 3443 | 0 | 0 | 2011-04-19 | |
语音编码标准(G.711 G.723 G.726 G.729 iLBC) | 7287 | 0 | 1 | 2011-04-19 | |
java.applet | 1238 | 0 | 0 | 2011-04-19 | |
JMF | 1786 | 0 | 0 | 2011-04-19 | |
VLC Media Player | 1347 | 0 | 0 | 2011-04-19 | |
SDL | 1147 | 0 | 1 | 2011-04-19 | |
在Linux-2.6.32.2下为ST16C554移植驱动的经历 | 1712 | 0 | 0 | 2011-03-31 | |
2416相比2440的十大优势 | 7812 | 0 | 0 | 2011-03-31 | |
ARM芯片选型简易指南 | 1854 | 0 | 0 | 2011-03-31 | |
arm-linux-gcc编译x264 | 1799 | 0 | 2 | 2011-03-29 | |
Linux下的实时流媒体编程 | 1510 | 0 | 2 | 2011-03-28 | |
x264编码详细文字全过程 | 2549 | 0 | 1 | 2011-03-28 | |
ARM Linux环境下多连接TCP服务器编程示例 | 3176 | 0 | 0 | 2011-03-25 | |
Mini2440触摸屏程序分析 | 1620 | 0 | 0 | 2011-03-25 | |
关于Keil C51中“ERROR L107: ADDRESS SPACE OVERFLOW ”的总 | 6834 | 0 | 0 | 2011-03-24 |
config20102009-11-19 19:38
外设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