函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_nb.c Create Date:2022-07-27 09:42:50
Last Modify:2020-03-16 21:36:56 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Data Fabric Indirect Access uses FICAA/FICAD

函数原型:int amd_df_indirect_read(u16 node, u8 func, u16 reg, u8 instance_id, unsigned int *lo)

返回类型:int

参数:

类型参数名称
u16node
u8func
u16reg
u8instance_id
unsigned int *lo
185  err等于负ENODEV
187  如果node大于等于num则转到:out
190  F4等于link
191  如果非F4则转到:out
194  ficaa等于1
195  ficaa或等于reg按位与0x3FC
196  ficaa或等于func按位与0x7的值左移11位
197  ficaa或等于instance_id左移16位
199  mutex_lock( & Protect the PCI config register pairs used for SMN and DF indirect access. )
201  err等于pci_write_config_dword(F4, 0x5C, ficaa)
202  如果err
203  打印警告信息("Error writing DF Indirect FICAA, FICAA=0x%x\n", ficaa)
204  转到:out_unlock
207  err等于pci_read_config_dword(F4, 0x98, lo)
208  如果err打印警告信息("Error reading DF Indirect FICAD LO, FICAA=0x%x.\n", ficaa)
211  out_unlock :
212  mutex_unlock( & Protect the PCI config register pairs used for SMN and DF indirect access. )
214  out :
215  返回:err
调用者
名称描述
umc_normaddr_to_sysaddr