.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "APM_BIOS_CALL" "" "06 October 2005" "" ""
.SH NAME
apm_bios_call \- Make an APM BIOS 32bit call
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
u8 apm_bios_call (u32 \fIfunc\fB, u32 \fIebx_in\fB, u32 \fIecx_in\fB, u32 * \fIeax\fB, u32 * \fIebx\fB, u32 * \fIecx\fB, u32 * \fIedx\fB, u32 * \fIesi\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIfunc\fB\fR
APM function to execute
.TP
\fB\fIebx_in\fB\fR
EBX register for call entry
.TP
\fB\fIecx_in\fB\fR
ECX register for call entry
.TP
\fB\fIeax\fB\fR
EAX register return
.TP
\fB\fIebx\fB\fR
EBX register return
.TP
\fB\fIecx\fB\fR
ECX register return
.TP
\fB\fIedx\fB\fR
EDX register return
.TP
\fB\fIesi\fB\fR
ESI register return
.SH "DESCRIPTION"
.PP
Make an APM call using the 32bit protected mode interface. The
caller is responsible for knowing if APM BIOS is configured and
enabled. This call can disable interrupts for a long period of
time on some laptops. The return value is in AH and the carry
flag is loaded into AL. If there is an error, then the error
code is returned in AH (bits 8-15 of eax) and this function
returns non-zero.