Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\hpet.c Create Date:2022-07-28 08:42:48
Last Modify:2020-03-16 21:38:50 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_hpet_print_config

Proto:static void _hpet_print_config(const char *function, int line)

Type:void

Parameter:

TypeParameterName
const char *function
intline
143  pr_info("%s(%d):\n", function, line)
145  id = hpet_readl(HPET_ID)
146  period = hpet_readl(HPET_PERIOD)
147  pr_info("ID: 0x%x, PERIOD: 0x%x\n", id, period)
149  cfg = hpet_readl(HPET_CFG)
150  status = hpet_readl(HPET_STATUS)
151  pr_info("CFG: 0x%x, STATUS: 0x%x\n", cfg, status)
153  l = hpet_readl(HPET_COUNTER)
154  h = hpet_readl(HPET_COUNTER + 4)
155  pr_info("COUNTER_l: 0x%x, COUNTER_h: 0x%x\n", l, h)
157  channels = ((id & HPET_ID_NUMBER) >> HPET_ID_NUMBER_SHIFT) + 1
159  When i < channels cycle
160  l = hpet_readl(HPET_Tn_CFG(i))
161  h = hpet_readl(HPET_Tn_CFG(i) + 4)
162  pr_info("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  pr_info("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  pr_info("T%d ROUTE_l: 0x%x, ROUTE_h: 0x%x\n", i, l, h)