VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/agpgart.h@ 33428

Last change on this file since 33428 was 25078, checked in by vboxsync, 15 years ago

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 4.3 KB
Line 
1/*
2 * AGPGART module version 0.99
3 * Copyright (C) 1999 Jeff Hartmann
4 * Copyright (C) 1999 Precision Insight, Inc.
5 * Copyright (C) 1999 Xi Graphics, Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * JEFF HARTMANN, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
21 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
23 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 */
25/*
26 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
27 *
28 * Permission is hereby granted, free of charge, to any person obtaining a
29 * copy of this software and associated documentation files (the
30 * "Software"), to deal in the Software without restriction, including
31 * without limitation the rights to use, copy, modify, merge, publish,
32 * distribute, and/or sell copies of the Software, and to permit persons
33 * to whom the Software is furnished to do so, provided that the above
34 * copyright notice(s) and this permission notice appear in all copies of
35 * the Software and that both the above copyright notice(s) and this
36 * permission notice appear in supporting documentation.
37 *
38 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
39 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
41 * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
42 * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
43 * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
44 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
45 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
46 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
47 *
48 * Except as contained in this notice, the name of a copyright holder
49 * shall not be used in advertising or otherwise to promote the sale, use
50 * or other dealings in this Software without prior written authorization
51 * of the copyright holder.
52 */
53
54#ifndef _AGPGART_H
55#define _AGPGART_H
56
57#pragma ident "@(#)agpgart.h 1.1 05/04/04 SMI"
58
59typedef struct _agp_version {
60 uint16_t agpv_major;
61 uint16_t agpv_minor;
62} agp_version_t;
63
64typedef struct _agp_info {
65 agp_version_t agpi_version;
66 uint32_t agpi_devid; /* bridge vendor + device */
67 uint32_t agpi_mode; /* mode of bridge */
68 ulong_t agpi_aperbase; /* base of aperture */
69 size_t agpi_apersize; /* aperture range size */
70 uint32_t agpi_pgtotal; /* max number of pages in aperture */
71 uint32_t agpi_pgsystem; /* same as pg_total */
72 uint32_t agpi_pgused; /* NUMBER of currently used pages */
73} agp_info_t;
74
75typedef struct _agp_setup {
76 uint32_t agps_mode;
77} agp_setup_t;
78
79typedef struct _agp_allocate {
80 int32_t agpa_key;
81 uint32_t agpa_pgcount;
82 uint32_t agpa_type;
83 uint32_t agpa_physical; /* for i810/830 driver */
84} agp_allocate_t;
85
86typedef struct _agp_bind {
87 int32_t agpb_key;
88 uint32_t agpb_pgstart;
89} agp_bind_t;
90
91typedef struct _agp_unbind {
92 int32_t agpu_key;
93 uint32_t agpu_pri; /* no use in solaris */
94} agp_unbind_t;
95
96#define AGPIOC_BASE 'G'
97#define AGPIOC_INFO _IOR(AGPIOC_BASE, 0, 100)
98#define AGPIOC_ACQUIRE _IO(AGPIOC_BASE, 1)
99#define AGPIOC_RELEASE _IO(AGPIOC_BASE, 2)
100#define AGPIOC_SETUP _IOW(AGPIOC_BASE, 3, agp_setup_t)
101#define AGPIOC_ALLOCATE _IOWR(AGPIOC_BASE, 4, agp_allocate_t)
102#define AGPIOC_DEALLOCATE _IOW(AGPIOC_BASE, 5, int)
103#define AGPIOC_BIND _IOW(AGPIOC_BASE, 6, agp_bind_t)
104#define AGPIOC_UNBIND _IOW(AGPIOC_BASE, 7, agp_unbind_t)
105
106#define AGP_DEVICE "/dev/agpgart"
107
108#endif /* _AGPGART_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette