summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-24 02:21:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-11-24 02:21:35 +0000
commita39fc240583021f6221d4dc70eef711a77a46212 (patch)
tree35972e202f904809ff376cb8c7eea0b746f4276b /share
parent0b21b4344af6c09c852b6b60287dec4dfb6a90c3 (diff)
clean
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/man4.i386/mtrr.444
1 files changed, 23 insertions, 21 deletions
diff --git a/share/man/man4/man4.i386/mtrr.4 b/share/man/man4/man4.i386/mtrr.4
index 8934371e241..c4294dbcef7 100644
--- a/share/man/man4/man4.i386/mtrr.4
+++ b/share/man/man4/man4.i386/mtrr.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mtrr.4,v 1.1 1999/11/20 11:11:28 matthieu Exp $
+.\" $OpenBSD: mtrr.4,v 1.2 1999/11/24 02:21:34 deraadt Exp $
.\"
.\" Pentium MTRR driver for OpenBSD.
.\" Copyright 1999 Matthieu Herrb <matthieu@openbsd.org>
@@ -35,7 +35,7 @@ Declarations and data types are to be found in
.Pp
The specific attributes, and number of programmable ranges may vary between
architectures. The full set of supported attributes is:
-.Bl -tag -width 10
+.Bl -tag -width MDF_WRITECOMBINE
.It MDF_UNCACHEABLE
The region is not cached.
.It MDF_WRITECOMBINE
@@ -49,19 +49,20 @@ The region cannot be written to.
.El
.Pp
Memory ranges are described by
-.Fa struct mem_range_desc :
-.Bd -literal -offset indent
-u_int64_t mr_base; /\(** physical base address \(**/
-u_int64_t mr_len; /\(** physical length of region \(**/
-int mr_flags; /\(** attributes of region \(**/
-char mr_owner[8];
+.Bd -literal -offset xxxx
+struct mem_range_desc {
+ u_int64_t mr_base; /\(** physical base address \(**/
+ u_int64_t mr_len; /\(** physical length of region \(**/
+ int mr_flags; /\(** attributes of region \(**/
+ char mr_owner[8];
+};
.Ed
.Pp
In addition to the region attributes listed above, the following flags
may also be set in the
.Fa mr_flags
field:
-.Bl -tag -width 10
+.Bl -tag -width MDF_FIXACTIVE
.It MDF_FIXBASE
The region's base address cannot be changed.
.It MDF_FIXLEN
@@ -80,10 +81,11 @@ altered.
.El
.Pp
Operations are performed using
-.Fa struct mem_range_op :
-.Bd -literal -offset indent
-struct mem_range_desc *mo_desc;
-int mo_arg[2];
+.Bd -literal -offset xxxx
+struct mem_range_op {
+ struct mem_range_desc *mo_desc;
+ int mo_arg[2];
+};
.Ed
.Pp
The
@@ -107,24 +109,24 @@ should be set to MEMRANGE_SET_UPDATE to update an existing
or establish a new range, or to MEMRANGE_SET_REMOVE to remove a range.
.Pp
.Sh RETURN VALUES
-.Bl -tag -width 10
-.It EOPNOTSUPP
+.Bl -tag -width Er
+.It Bq Er EOPNOTSUPP
Memory range operations are not supported on this architecture.
-.It ENXIO
+.It Bq Er ENXIO
No memory range descriptors are available (eg. firmware has not enabled
any).
-.It EINVAL
+.It Bq Er EINVAL
The memory range supplied as an argument is invalid or overlaps another
range in a fashion not supported by this architecture.
-.It EBUSY
+.It Bq Er EBUSY
An attempt to remove or update a range failed because the range is busy.
-.It ENOSPC
+.It Bq Er ENOSPC
An attempt to create a new range failed due to a shortage of hardware
resources (eg. descriptor slots).
-.It ENOENT
+.It Bq Er ENOENT
An attempt to remove a range failed because no range matches the descriptor
base/length supplued.
-.It EPERM
+.It Bq Er EPERM
An attempt to remove a range failed because the range is permanently
enabled.
.El