阅读:1391回复:3
请教PCI9054本地内存读写的问题?
我想用IOCTL+Buffer的方式读写memory,可是老是读不出数据?
源代码见附件 case IOCTL_READ_BAR0: { PULONG pData = (PULONG) Irp->AssociatedIrp.SystemBuffer; //READ_REGISTER_BUFFER_ULONG(pdx->membase,pData,10); for(int j=0;j<10;j++) { pData[j]=READ_REGISTER_ULONG(pdx->membase+j); } break; } case IOCTL_WRITE_BAR0: { //ULONG inputdata[10]; for(int i=0;i<10;i++) { //inputdata=(ULONG)i; WRITE_REGISTER_ULONG(pdx->membase+i,(ULONG)i); } break; } |
|
|
沙发#
发布于:2004-03-14 19:55
你是指9054片上,还是本地扩展的?
|
|
|
板凳#
发布于:2004-03-14 20:07
先读一个字节看看!!
|
|
|
地板#
发布于:2004-03-27 03:58
pdx->membase 映射的是否正确?
|
|