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寄存器偏移量Offset设置,求解惑?



如图Keystone_SRIO_drv.c文件中,我们想进行ACKID的匹配,其中调用函数Keystone_SRIO_Maintenance(),有一个参数是指定寄存器的Offset

图中我们想对SPn_ACKID_STAT寄存器进行Keystone_SRIO_Maintenance()操作,它的偏移量Offset设置为0x148+(0x20*uiRemotePort)uiRemotePort表示远端端口号。以端口0为例,按上面计算SP0_ACKID_STAT寄存器的偏移量是0x148,但是查询TI关于SRIO的手册发现它的偏移量是0xB148(文档141)


请问Offset我该如何算?