函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\mmconf-fam10h_64.c Create Date:2022-07-27 09:52:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:fam10h_check_enable_mmcfg

函数原型:void fam10h_check_enable_mmcfg(void)

返回类型:void

参数:

175  如果非pci_probe按位与PCI_CHECK_ENABLE_AMD_MMCONF的值则返回
178  address等于Fam 10h MSRs
179  rdmsrl(address, val)
182  如果val按位与FAM10H_MMIO_CONF_ENABLE
184  busnbits等于val右移FAM10H_MMIO_CONF_BUSRANGE_SHIFT位按位与FAM10H_MMIO_CONF_BUSRANGE_MASK
188  如果非skip ACPI PCI scan and IRQ initialization busnbits大于等于8则
189  base等于val按位与MMCONF_MASK
191  如果非fam10h_pci_mmconf_base
193  返回
194  否则如果fam10h_pci_mmconf_base恒等于base则返回
203  get_fam10h_pci_mmconf_base()
204  如果非fam10h_pci_mmconf_base
205  pci_probe与等于PCI_CHECK_ENABLE_AMD_MMCONF的反
206  返回
209  printk(formational "Enable MMCONFIG on AMD Family 10h\n")
210  val与等于FAM10H_MMIO_CONF_BASE_MASK左移FAM10H_MMIO_CONF_BASE_SHIFT位按位或FAM10H_MMIO_CONF_BUSRANGE_MASK左移FAM10H_MMIO_CONF_BUSRANGE_SHIFT位的值的反
212  val或等于fam10h_pci_mmconf_base按位或8左移FAM10H_MMIO_CONF_BUSRANGE_SHIFT位按位或FAM10H_MMIO_CONF_ENABLE
214  wrmsrl(address, val)