在skyeye版本的8019驱动中,它这么定义8019的regs:
//page0 registers #define NE_PSTART (NE_BASE+4) //W,接收缓冲环起始页 #define NE_PSTOP (NE_BASE+8) //W,接收缓冲环终止页(不包括此页) #define NE_BNRY (NE_BASE+12) //R/W,接收缓冲环读指针,指向下一个包到来时的起始页,应初始化成=CURR=PSTART #define NE_TPSR (NE_BASE+16) //W,Local DMA发送缓冲起始页寄存器 #define NE_TBCR0 (NE_BASE+20)
并且有注释
//yangye 2003-1-20 //all addr[1,0] must be 00
我想这是为了满足ARM的4 Bytes对齐访问吧?
但是我用的44b0x开发板的例程定义为
#define BaseAddr 0x6000000 #define RWPORT (BaseAddr+0x10) /* dma read write address, form 0x10 - 0x17 */ #define RstAddr (BaseAddr+0x18) /* reset register, 0x18, 0x1a, 0x1c, 0x1e even address is recommanded */
/* page 0 */ #define Pstart (BaseAddr+1) /* page start */ #define Pstop (BaseAddr+2) /* page stop */ #define BNRY (BaseAddr+3) #define TPSR (BaseAddr+4) /* transmit page start */ #define TBCR0 (BaseAddr+5) #define TBCR1 (BaseAddr+6)
.............
是不是和具体的开发板的接线有关,好像skyeye那个驱动是基于at91的开发板的....
谢谢~