
你好 我想问下KeyStone开头的封装函数具体的说明在哪里可以找到?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
另外... 我还先想问下srio例程中的中断服务程序

ICSR寄存器的值是怎么跟
char * doorbell_msg_str[]=
{
"doorbell for latency test.",
"doorbell which indicates NREAD operation done.",
"doorbell which indicates NWRITE operation done.",
"doorbell which indicates NWRITE_R operation done.",
"doorbell which indicates SWRITE operation done."
};
这些操作联系在一起的? 我在例程里没找到相应的代码 比如当NREAD完成 然后将ICSR的bit1置位的操作
还是说自动置位?那么这个进行捆绑的或者映射的操作是怎么实现的
您贴出来的是STK中的例程吧?
KeyStone_SRIO_Init_drv.c中有截图中的函数原型,函数说明没有手册可以查阅。
是doorbellInfo联系起来的。
void InitLsuDoorbell(SRIO_LSU_Transfer * lsuTransfer,
SRIO_Transfer_Param * transferParam)
{
lsuTransfer->doorbellValid= 1;
if(SRIO_PKT_TYPE_NREAD==transferParam->packet_type)
lsuTransfer->doorbellInfo= SRIO_DOORBELL_MSG_NREAD_DONE;
else if(SRIO_PKT_TYPE_NWRITE==transferParam->packet_type)
lsuTransfer->doorbellInfo= SRIO_DOORBELL_MSG_NWRITE_DONE;
else if(SRIO_PKT_TYPE_NWRITE_R==transferParam->packet_type)
lsuTransfer->doorbellInfo= SRIO_DOORBELL_MSG_NWRITE_R_DONE;
else if(SRIO_PKT_TYPE_SWRITE==transferParam->packet_type)
lsuTransfer->doorbellInfo= SRIO_DOORBELL_MSG_SWRITE_DONE;
else
lsuTransfer->doorbellValid= 0;
中断映射可参考以下博客看一下。