函数逻辑报告 |
Source Code:arch\x86\kernel\hpet.c |
Create Date:2022-07-27 09:42:14 |
Last Modify:2020-03-16 21:38:50 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:hpet_enable - Try to setup the HPET timer. Returns 1 on success.
函数原型:int __init hpet_enable(void)
返回类型:int
参数:无
819 | 如果非is_hpet_capable()则返回:0 |
822 | hpet_set_mapping() |
823 | 如果非hpet_virt_address则返回:0 |
833 | hpet_period等于hpet_readl(HPET_PERIOD) |
838 | freq等于FSEC_PER_SEC |
846 | id等于hpet_readl(HPET_ID) |
847 | hpet_print_config() |
850 | channels等于id按位与HPET_ID_NUMBER的值右移HPET_ID_NUMBER_SHIFT位的值加1 |
856 | 如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_HPET_EMULATE_RTC)且channels小于2则转到:out_nohpet |
860 | 如果非hc则 |
861 | 打印警告信息("Disabling HPET.\n") |
862 | 转到:out_nohpet |
865 | nr_channels等于channels |
868 | cfg等于hpet_readl(HPET_CFG) |
870 | cfg与等于HPET_CFG_ENABLE按位或HPET_CFG_LEGACY的值的反 |
871 | hpet_writel(cfg, HPET_CFG) |
879 | cfg等于hpet_readl(HPET_Tn_CFG(i)) |
881 | irq等于cfg按位与Tn_INT_ROUTE_CNF_MASK的值右移Tn_INT_ROUTE_CNF_SHIFT位 |
884 | cfg与等于HPET_TN_ENABLE按位或HPET_TN_LEVEL按位或HPET_TN_FSB的值的反 |
885 | hpet_writel(cfg, HPET_Tn_CFG(i)) |
887 | cfg与等于HPET_TN_PERIODIC按位或HPET_TN_PERIODIC_CAP按位或HPET_TN_64BIT_CAP按位或HPET_TN_32BIT按位或HPET_TN_ROUTE按位或HPET_TN_FSB按位或HPET_TN_FSB_CAP的值的反 |
893 | hpet_print_config() |
900 | 如果非hpet_counting()则转到:out_nohpet |
903 | clocksource_register_hz( & clocksource_hpet, (u32)hpet_freq) |
905 | 如果id按位与HPET_ID_LEGSUP则 |
906 | hpet_legacy_clockevent_register( & channels[0]) |
907 | mode等于HPET_MODE_LEGACY |
908 | 如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_HPET_EMULATE_RTC)则mode等于HPET_MODE_LEGACY |
910 | 返回:1 |
912 | 返回:0 |
914 | out_nohpet : |
915 | 释放内存 |
916 | channels = NULL |
917 | nr_channels等于0 |
918 | hpet_clear_mapping() |
920 | 返回:0 |
名称 | 描述 |
---|---|
hpet_late_init | The late initialization runs after the PCI quirks have been invoked* which might have detected a system on which the HPET can be enforced |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |