plx9030触发pci中断

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

plx9030触发pci中断

毛毛虫的爹 2013-11-15 17:52:00 浏览639

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;