VxWorks
Generation of PCIe Interrupt
Posts  1 - 1  of  1
mk086
Hi Guys,

I got stuck when i'm working with PCIe that is I have two processors connected over PCIe switch. Both processors running with VxWorks v6.7 OS.

I'm able to make code for Root Complex to receive interrupt :


void interruptHandler(int32_t arg) /* signal handler code */
{
logMsg("-------------------------------interruptcaught\n",0,0,0,0,0,0);
RDSP_MUST("-------------------------------interruptcaught\n",0,0,0,0,0,0);
}

void init_interrupt(int32_t intLine) /* task to handle the interrupt */
{
int32_t i = 0xA5;
STATUS connected;

if((connected = pciIntConnect((VOIDFUNCPTR*)INUM_TO_IVEC(intLine),
(VOIDFUNCPTR)interruptHandler,i))== ERROR)
{
RDSP_MUST("intConnect failed\n");
}
else
{
RDSP_MUST("intConnect Success\n");
if(intEnable(intLine)== ERROR)
{
RDSP_MUST("interrupt line %d not enabled...\n", intLine);
}
else
{
RDSP_MUST("interrupt line %d enabled...\n", intLine);
}
}
return RDSP_SUCCESS;
}

Now I got stuck at End Point (2nd Processor) on How to generate PCIe interrupt?

Please help, Awaiting for your Inputs.

Save
Cancel
Reply
 
x
OK