Markup: .Fn instead of .Nm, .Tn, offset indent, newline for a new sentence.
This commit is contained in:
parent
4a4dc62ed5
commit
50ad9a0506
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: bioscall.9,v 1.8 2008/04/30 13:10:59 martin Exp $
|
.\" $NetBSD: bioscall.9,v 1.9 2010/05/05 05:49:38 jruoho Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd October 1, 1998
|
.Dd May 5, 2010
|
||||||
.Dt BIOSCALL 9 i386
|
.Dt BIOSCALL 9 i386
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -39,9 +39,10 @@
|
||||||
.Fn bioscall "int function" "struct bioscallregs *regs"
|
.Fn bioscall "int function" "struct bioscallregs *regs"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Nm
|
.Fn bioscall
|
||||||
function switches the processor into real mode, calls the BIOS interrupt
|
function switches the processor into real mode, calls the
|
||||||
numbered
|
.Tn BIOS
|
||||||
|
interrupt numbered
|
||||||
.Fa function ,
|
.Fa function ,
|
||||||
and returns to protected mode.
|
and returns to protected mode.
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -50,10 +51,13 @@ bootstrap when necessary to probe devices or pseudo-devices.
|
||||||
.Pp
|
.Pp
|
||||||
The register values specified by
|
The register values specified by
|
||||||
.Fa *regs
|
.Fa *regs
|
||||||
(with one exception) are installed before the BIOS interrupt is called.
|
(with one exception) are installed before the
|
||||||
The processor flags are handled specially. Only the following flags are
|
.Tn BIOS
|
||||||
passed to the
|
interrupt is called.
|
||||||
BIOS from the registers in
|
The processor flags are handled specially.
|
||||||
|
Only the following flags are passed to the
|
||||||
|
.Tn BIOS
|
||||||
|
from the registers in
|
||||||
.Fa regs
|
.Fa regs
|
||||||
(the remainder come from the processor's flags register at the time
|
(the remainder come from the processor's flags register at the time
|
||||||
of the call):
|
of the call):
|
||||||
|
@ -71,23 +75,32 @@ structure is defined to contain structures for each register, to allow
|
||||||
access to 32-, 16- or 8-bit wide sections of the registers.
|
access to 32-, 16- or 8-bit wide sections of the registers.
|
||||||
Definitions are provided which simplify access to the union members.
|
Definitions are provided which simplify access to the union members.
|
||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
.Nm
|
The
|
||||||
fills in
|
.Fn bioscall
|
||||||
|
function fills in
|
||||||
.Fa *regs
|
.Fa *regs
|
||||||
with the processor registers as returned from the BIOS call.
|
with the processor registers as returned from the
|
||||||
|
.Tn BIOS
|
||||||
|
call.
|
||||||
.Sh EXAMPLES
|
.Sh EXAMPLES
|
||||||
The Advanced Power Management driver calls
|
The Advanced Power Management driver calls
|
||||||
.Nm
|
.Fn bioscall
|
||||||
by setting up a register structure with the APM installation check and
|
by setting up a register structure with the
|
||||||
device types in registers
|
.Tn APM
|
||||||
|
installation check and device types in registers
|
||||||
.Fa ax
|
.Fa ax
|
||||||
and
|
and
|
||||||
.Fa bx ,
|
.Fa bx ,
|
||||||
then calls the BIOS to fetch the details for calling the APM support
|
then calls the
|
||||||
through a protected-mode interface. The BIOS returns these details in
|
.Tn BIOS
|
||||||
the registers:
|
to fetch the details for calling the
|
||||||
|
.Tn APM
|
||||||
|
support through a protected-mode interface.
|
||||||
|
The
|
||||||
|
.Tn BIOS
|
||||||
|
returns these details in the registers:
|
||||||
.Pp
|
.Pp
|
||||||
.Bd -literal
|
.Bd -literal -offset indent
|
||||||
#include \*[Lt]i386/bioscall.h\*[Gt]
|
#include \*[Lt]i386/bioscall.h\*[Gt]
|
||||||
#include \*[Lt]i386/apmvar.h\*[Gt]
|
#include \*[Lt]i386/apmvar.h\*[Gt]
|
||||||
struct bioscallregs regs;
|
struct bioscallregs regs;
|
||||||
|
@ -104,11 +117,14 @@ bioscall(APM_SYSTEM_BIOS, \*[Am]regs);
|
||||||
.Sh REFERENCES
|
.Sh REFERENCES
|
||||||
.Xr apm 4
|
.Xr apm 4
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
.Nm
|
The
|
||||||
first appeared in
|
.Fn bioscall
|
||||||
|
function first appeared in
|
||||||
.Nx 1.3 .
|
.Nx 1.3 .
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
Not all BIOS functions are safe to call through the trampoline, as they
|
Not all
|
||||||
|
.Tn BIOS
|
||||||
|
functions are safe to call through the trampoline, as they
|
||||||
may depend on system state which has been disturbed or used for other
|
may depend on system state which has been disturbed or used for other
|
||||||
purposes once the
|
purposes once the
|
||||||
.Nx
|
.Nx
|
||||||
|
|
Loading…
Reference in New Issue