函数逻辑报告 |
Source Code:arch\x86\kernel\mmconf-fam10h_64.c |
Create Date:2022-07-27 09:52:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:get_fam10h_pci_mmconf_base
函数原型:static void get_fam10h_pci_mmconf_base(void)
返回类型:void
参数:无
69 | 如果fam10h_pci_mmconf_base则返回 |
72 | 如果非early_pci_allowed()则返回 |
75 | found等于0 |
94 | 如果非found则返回 |
98 | address等于MSR_K8_SYSCFG |
102 | 如果非val按位与1左移21位的值则 |
103 | tom2等于1ULL左移32位 |
104 | 否则 |
106 | address等于MSR_K8_TOP_MEM2 |
111 | 如果base小于等于tom2则base等于tom2加2乘MMCONF_UNIT减1按位与MMCONF_MASK |
118 | hi_mmio_num等于0 |
123 | reg等于Direct PCI access. This is used for PCI accesses in early boot beforethe PCI subsystem works. |
124 | 如果非reg按位与3的值则继续下一循环 |
128 | reg等于Direct PCI access. This is used for PCI accesses in early boot beforethe PCI subsystem works. |
136 | hi_mmio_num自加 |
139 | 如果非hi_mmio_num则转到:out |
143 | sort(range, hi_mmio_num, range的长度, cmp_range, NULL) |
147 | 如果start大于base加MMCONF_SIZE则转到:out |
151 | base等于start按位与MMCONF_MASK的值减MMCONF_UNIT |
152 | 如果base大于tom2且BASE_VALID(base)则转到:out |
154 | base等于end加MMCONF_UNIT按位与MMCONF_MASK |
155 | 如果BASE_VALID(base)则转到:out |
158 | 以i小于hi_mmio_num循环 |
159 | base等于end加MMCONF_UNIT按位与MMCONF_MASK |
160 | val等于start按位与MMCONF_MASK |
161 | 如果val大于等于base加MMCONF_SIZE且BASE_VALID(base)则转到:out |
164 | 返回 |
166 | out : |
名称 | 描述 |
---|---|
fam10h_check_enable_mmcfg |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |