summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-03-14 23:57:04 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-03-14 23:57:04 +0000
commitd2b29570854a5d0e502a8e29c3493bf7cc75bb87 (patch)
tree3b23adee46e7aaf0603f47be621e2250a16b7d60
parent86fea391826a27512c17cd2284f3ac6b04838a53 (diff)
The userland AGP interface has been removed.
-rw-r--r--share/man/man4/agp.4126
1 files changed, 13 insertions, 113 deletions
diff --git a/share/man/man4/agp.4 b/share/man/man4/agp.4
index cd5e9b6e494..00c837f6d68 100644
--- a/share/man/man4/agp.4
+++ b/share/man/man4/agp.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: agp.4,v 1.5 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: agp.4,v 1.6 2014/03/14 23:57:03 kettenis Exp $
.\" Copyright (c) Owain Ainsworth <oga@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
@@ -12,7 +12,7 @@
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: March 14 2014 $
.Dt AGP 4
.Os
.Sh NAME
@@ -23,118 +23,14 @@
.Sh DESCRIPTION
The
.Nm
-driver provides support for programming the AGP GART through
-.Xr ioctl 2 .
-This support is used by the X server on some architectures.
-.Pp
-The following
-.Xr ioctl 2
-operations can be performed on
-.Pa /dev/agp* ,
-and are defined in
-.In sys/agpio.h :
-.Bl -tag -width indent
-.It Dv AGPIOC_INFO
-Returns information about the AGP subsystem.
-The result is a pointer to the following structure:
-.Bd -literal
-typedef struct _agp_info {
- agp_version version; /* version of driver (unused) */
- u_int32_t bridge_id; /* bridge vendor/device */
- u_int32_t agp_mode; /* mode info of bridge */
- off_t aper_base; /* base of aperture */
- size_t aper_size; /* size of aperture */
- size_t pg_total; /* max pages (swap + system) */
- size_t pg_system; /* max pages (system) */
- size_t pg_used; /* current pages used */
-} agp_info;
-.Ed
-.It Dv AGPIOC_ACQUIRE
-Acquire control of the AGP chipset for use by this client.
-Returns
-.Er EBUSY
-if the AGP chipset is already acquired by another client.
-.It Dv AGPIOC_RELEASE
-Release control of the AGP chipset.
-This does not unbind or free any allocated memory, which is the
-responsibility of the client to handle if necessary.
-.It Dv AGPIOC_SETUP
-Enable the AGP hardware with the relevant mode.
-This
-.Xr ioctl 2
-takes the following structure:
-.Bd -literal
-typedef struct _agp_setup {
- u_int32_t agp_mode; /* mode info of bridge */
-} agp_setup;
-.Ed
-.Pp
-The mode bits are defined in
-.In sys/agpio.h .
-.It Dv AGPIOC_ALLOCATE
-Allocate physical memory suitable for mapping into the AGP aperture.
-This
-.Xr ioctl 2
-takes the following structure:
-.Bd -literal
-typedef struct _agp_allocate {
- int key; /* tag of allocation */
- size_t pg_count; /* number of pages */
- u_int32_t type; /* 0 == normal, other devspec */
- u_int32_t physical; /* device specific (some devices
- * need a phys address of the
- * actual page behind the gatt
- * table) */
-} agp_allocate;
-.Ed
-.Pp
-It returns a handle to the allocated memory.
-.It Dv AGPIOC_DEALLOCATE
-Free the previously allocated memory associated with the
-handle passed.
-.It Dv AGPIOC_BIND
-Bind the allocated memory at a given offset with the AGP
-aperture.
-Returns
-.Er EINVAL
-if the memory is already bound or the offset is not at an
-AGP page boundary.
-This
-.Xr ioctl 2
-takes the following structure:
-.Bd -literal
-typedef struct _agp_bind {
- int key; /* tag of allocation */
- off_t pg_start; /* starting page to populate */
-} agp_bind;
-.Ed
-.Pp
-The tag of allocation is the handle returned by
-.Dv AGPIOC_ALLOCATE .
-.It Dv AGPIOC_UNBIND
-Unbind memory from the AGP aperture.
-Returns
-.Er EINVAL
-if the memory is not bound.
-This
-.Xr ioctl 2
-takes the following structure:
-.Bd -literal
-typedef struct _agp_unbind {
- int key; /* tag of allocation */
- u_int32_t priority; /* priority for paging out */
-} agp_unbind;
-.Ed
-.El
-.Sh FILES
-.Bl -tag -width "/dev/agpgartXXX" -compact
-.It Pa /dev/agp?
-AGP GART device special files.
-.It Pa /dev/agpgart
-AGP GART device special file.
-.El
+driver provides support for programming the AGP GART.
+This support is used by
+.Xr drm 4
+kernel drivers.
.Sh SEE ALSO
-.Xr ioctl 2 ,
+.Xr drm 4 ,
+.Xr inteldrm 4 ,
+.Xr radeondrm 4 ,
.Xr vga 4
.Sh HISTORY
The
@@ -147,3 +43,7 @@ The driver was then ported in parts to
.Ox ,
and fully integrated in
.Ox 4.3 .
+The userland
+.Xr ioctl 2
+interface was removed in
+.Ox 5.6 .