函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_hpet_print_config

函数原型:static void _hpet_print_config(const char *function, int line)

返回类型:void

参数:

类型参数名称
const char *function
intline
143  打印信息("%s(%d):\n", function, line)
145  id等于hpet_readl(HPET_ID)
146  period等于hpet_readl(HPET_PERIOD)
147  打印信息("ID: 0x%x, PERIOD: 0x%x\n", id, period)
149  cfg等于hpet_readl(HPET_CFG)
150  status等于hpet_readl(HPET_STATUS)
151  打印信息("CFG: 0x%x, STATUS: 0x%x\n", cfg, status)
153  l等于hpet_readl(HPET_COUNTER)
154  h等于hpet_readl(HPET_COUNTER + 4)
155  打印信息("COUNTER_l: 0x%x, COUNTER_h: 0x%x\n", l, h)
157  channels等于id按位与HPET_ID_NUMBER的值右移HPET_ID_NUMBER_SHIFT位的值加1
159 i小于channels循环
160  l等于hpet_readl(HPET_Tn_CFG(i))
161  h等于hpet_readl(HPET_Tn_CFG(i) + 4)
162  打印信息("T%d: CFG_l: 0x%x, CFG_h: 0x%x\n", i, l, h)
164  l等于hpet_readl(HPET_Tn_CMP(i))
165  h等于hpet_readl(HPET_Tn_CMP(i) + 4)
166  打印信息("T%d: CMP_l: 0x%x, CMP_h: 0x%x\n", i, l, h)
168  l等于hpet_readl(HPET_Tn_ROUTE(i))
169  h等于hpet_readl(HPET_Tn_ROUTE(i) + 4)
170  打印信息("T%d ROUTE_l: 0x%x, ROUTE_h: 0x%x\n", i, l, h)