plx9030触发pci中断

  1. 云栖社区>
  2. 博客列表>
  3. 正文

plx9030触发pci中断

毛毛虫的爹 2013-11-15 17:52:00 浏览409 评论0

摘要: if(((SWAB_16(PLX_INT(0x4C)))&0x04)==0x04) { ErrNo = *(UINT16*)(g_MemBase+0XFFFE*2); /*logMsg("Int1 exist in Open422Device().\n",0,0,0,0,0,0)

if(((SWAB_16(PLX_INT(0x4C)))&0x04)==0x04)
{
                ErrNo =  *(UINT16*)(g_MemBase+0XFFFE*2);
/*logMsg("Int1 exist in Open422Device().\n",0,0,0,0,0,0);*/
}
PLX_INT(0x4C) = SWAB_16(0x0242); /*added by sgh-2011-6-1 for disable PCI interrupt*/
if(((SWAB_16(PLX_INT(0x4C)))&0x04)==0x04)
{
                ErrNo =  *(UINT16*)(g_MemBase+0XFFFE*2);
/*logMsg("Int2 exist in Open422Device()\n",0,0,0,0,0,0);*/
}
///////////////////
PLX_INT(0x4C) = SWAB_16(0x0243); 
taskDelay(5);
if(((SWAB_16(PLX_INT(0x4C)))&0x04)==0x04)
                {
ErrNo =  *(UINT16*)(g_MemBase+0XFFFE*2);
/*logMsg("Int before Start422()\n",0,0,0,0,0,0);*/
 
清中断:
PLX_INT(0x4C) = PLX_INT(0x4C) |0x01;


【云栖快讯】阿里云栖开发者沙龙(Java技术专场)火热来袭!快来报名参与吧!  详情请点击

网友评论

毛毛虫的爹
文章736篇 | 关注26
关注
为您提供简单高效、处理能力可弹性伸缩的计算服务,帮助您快速构建更稳定、安全的应用,提升运维效... 查看详情
RDS是一种稳定可靠、可弹性伸缩的在线数据库服务。支持MySQL、SQL Server、Po... 查看详情
双12

双12