Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apm_32.c Create Date:2022-07-28 08:22:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:apm_bios_call_simple - make a simple APM BIOS 32bit call*@func: APM function to invoke*@ebx_in: EBX register value for BIOS call*@ecx_in: ECX register value for BIOS call*@eax: EAX register on return from the BIOS call*@err: bits

Proto:static int apm_bios_call_simple(unsigned int func, unsigned int ebx_in, unsigned int ecx_in, unsigned int *eax, int *err)

Type:int

Parameter:

TypeParameterName
unsigned intfunc
unsigned intebx_in
unsigned intecx_in
unsigned int *eax
int *err
719  func = func
720  In and out = ebx_in
721  ecx = ecx_in
723  ret = Run __apm_bios_call or __apm_bios_call_simple on CPU 0
724  eax = Out only
725  err = Error: -ENOMEM, or bits 8-15 of eax
726  Return ret
Caller
NameDescribe
apm_driver_versionapm_driver_version - APM driver version*@val: loaded with the APM version on return* Retrieve the APM version supported by the BIOS
set_power_stateset_power_state - set the power management state*@what: which items to transition*@state: state to transition to* Request an APM change of state for one or more system devices
apm_do_idleapm_do_idle - perform power saving* This function notifies the BIOS that the processor is (in the view* of the OS) idle. It returns -1 in the event that the BIOS refuses* to handle the idle request. On a success the function returns 1
apm_do_busyapm_do_busy - inform the BIOS the CPU is busy* Request that the BIOS brings the CPU back to full performance.
apm_engage_power_managementapm_engage_power_management - enable PM on a device*@device: identity of device*@enable: on/off* Activate or deactivate power management on either a specific device* or the entire system (%APM_DEVICE_ALL).