函数逻辑报告 |
Source Code:arch\x86\kernel\tboot.c |
Create Date:2022-07-27 08:53:30 |
Last Modify:2022-05-22 06:45:44 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:tboot_sleep
函数原型:static int tboot_sleep(u8 sleep_state, unsigned int pm1a_control, unsigned int pm1b_control)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
u8 | sleep_state | |
unsigned int | pm1a_control | |
unsigned int | pm1b_control |
274 | static unsigned int acpi_shutdown_map[6] = { - 1, - 1, - 1, TB_SHUTDOWN_S3, TB_SHUTDOWN_S4, TB_SHUTDOWN_S5} |
280 | 如果非tboot_enabled()则返回:0 |
283 | tboot_copy_fadt( & acpi_gbl_FADT) |
284 | pm1a_cnt_val等于pm1a_control |
285 | pm1b_cnt_val等于pm1b_control |
287 | vector_width等于32 |
289 | 如果sleep_state大于等于ACPI_S_STATE_COUNT或acpi_shutdown_map[sleep_state]恒等于负1则 |
291 | 打印警告信息("unsupported sleep state 0x%x\n", sleep_state) |
292 | 返回:负1 |
296 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |