Deleted Added
full compact
agp.4 (174018) agp.4 (231564)
1.\" Copyright (c) 2001 Yar Tikhiy
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 2001 Yar Tikhiy
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/share/man/man4/agp.4 174018 2007-11-28 12:04:25Z remko $
25.\" $FreeBSD: head/share/man/man4/agp.4 231564 2012-02-12 18:29:56Z ed $
26.\"
27.Dd November 28, 2007
28.Dt AGP 4
29.Os
30.Sh NAME
31.Nm agp
32.Nd "generic interface to the Accelerated Graphics Port (AGP)"
33.Sh SYNOPSIS

--- 41 unchanged lines hidden (view full) ---

75.It Dv AGPIOC_INFO
76Returns state of the
77.Nm
78system.
79The result is a pointer to the following structure:
80.Bd -literal
81typedef struct _agp_info {
82 agp_version version; /* version of the driver */
26.\"
27.Dd November 28, 2007
28.Dt AGP 4
29.Os
30.Sh NAME
31.Nm agp
32.Nd "generic interface to the Accelerated Graphics Port (AGP)"
33.Sh SYNOPSIS

--- 41 unchanged lines hidden (view full) ---

75.It Dv AGPIOC_INFO
76Returns state of the
77.Nm
78system.
79The result is a pointer to the following structure:
80.Bd -literal
81typedef struct _agp_info {
82 agp_version version; /* version of the driver */
83 u_int32_t bridge_id; /* bridge vendor/device */
84 u_int32_t agp_mode; /* mode info of bridge */
83 uint32_t bridge_id; /* bridge vendor/device */
84 uint32_t agp_mode; /* mode info of bridge */
85 off_t aper_base; /* base of aperture */
86 size_t aper_size; /* size of aperture */
87 size_t pg_total; /* max pages (swap + system) */
88 size_t pg_system; /* max pages (system) */
89 size_t pg_used; /* current pages used */
90} agp_info;
91.Ed
92.It Dv AGPIOC_ACQUIRE

--- 7 unchanged lines hidden (view full) ---

100responsibility of the client to handle if necessary.
101.It Dv AGPIOC_SETUP
102Enable the AGP hardware with the relevant mode.
103This
104.Xr ioctl 2
105takes the following structure:
106.Bd -literal
107typedef struct _agp_setup {
85 off_t aper_base; /* base of aperture */
86 size_t aper_size; /* size of aperture */
87 size_t pg_total; /* max pages (swap + system) */
88 size_t pg_system; /* max pages (system) */
89 size_t pg_used; /* current pages used */
90} agp_info;
91.Ed
92.It Dv AGPIOC_ACQUIRE

--- 7 unchanged lines hidden (view full) ---

100responsibility of the client to handle if necessary.
101.It Dv AGPIOC_SETUP
102Enable the AGP hardware with the relevant mode.
103This
104.Xr ioctl 2
105takes the following structure:
106.Bd -literal
107typedef struct _agp_setup {
108 u_int32_t agp_mode; /* mode info of bridge */
108 uint32_t agp_mode; /* mode info of bridge */
109} agp_setup;
110.Ed
111.Pp
112The mode bits are defined in
113.In sys/agpio.h .
114.It Dv AGPIOC_ALLOCATE
115Allocate physical memory suitable for mapping into the AGP aperture.
116This
117.Xr ioctl 2
118takes the following structure:
119.Bd -literal
120typedef struct _agp_allocate {
121 int key; /* tag of allocation */
122 size_t pg_count; /* number of pages */
109} agp_setup;
110.Ed
111.Pp
112The mode bits are defined in
113.In sys/agpio.h .
114.It Dv AGPIOC_ALLOCATE
115Allocate physical memory suitable for mapping into the AGP aperture.
116This
117.Xr ioctl 2
118takes the following structure:
119.Bd -literal
120typedef struct _agp_allocate {
121 int key; /* tag of allocation */
122 size_t pg_count; /* number of pages */
123 u_int32_t type; /* 0 == normal, other devspec */
124 u_int32_t physical; /* device specific (some devices
123 uint32_t type; /* 0 == normal, other devspec */
124 uint32_t physical; /* device specific (some devices
125 * need a phys address of the
126 * actual page behind the gatt
127 * table) */
128} agp_allocate;
129.Ed
130.Pp
131Returns a handle to the allocated memory.
132.It Dv AGPIOC_DEALLOCATE

--- 21 unchanged lines hidden (view full) ---

154.Er EINVAL
155if the memory is not bound.
156This
157.Xr ioctl 2
158takes the following structure:
159.Bd -literal
160typedef struct _agp_unbind {
161 int key; /* tag of allocation */
125 * need a phys address of the
126 * actual page behind the gatt
127 * table) */
128} agp_allocate;
129.Ed
130.Pp
131Returns a handle to the allocated memory.
132.It Dv AGPIOC_DEALLOCATE

--- 21 unchanged lines hidden (view full) ---

154.Er EINVAL
155if the memory is not bound.
156This
157.Xr ioctl 2
158takes the following structure:
159.Bd -literal
160typedef struct _agp_unbind {
161 int key; /* tag of allocation */
162 u_int32_t priority; /* priority for paging out */
162 uint32_t priority; /* priority for paging out */
163} agp_unbind;
164.Ed
165.El
166.Sh FILES
167.Bl -tag -width ".Pa /dev/agpgart" -compact
168.It Pa /dev/agpgart
169AGP device node.
170.El
171.Sh SEE ALSO
172.Xr X 7 Pq Pa ports/x11/xorg
173.Sh HISTORY
174The
175.Nm
176driver first appeared in
177.Fx 4.1 .
163} agp_unbind;
164.Ed
165.El
166.Sh FILES
167.Bl -tag -width ".Pa /dev/agpgart" -compact
168.It Pa /dev/agpgart
169AGP device node.
170.El
171.Sh SEE ALSO
172.Xr X 7 Pq Pa ports/x11/xorg
173.Sh HISTORY
174The
175.Nm
176driver first appeared in
177.Fx 4.1 .