PageRenderTime 21ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/xgi_common.h

#
C++ Header | 62 lines | 27 code | 8 blank | 27 comment | 0 complexity | 2b76b3b68e31459c12579d023a577790 MD5 | raw file
 1/*
 2 * Common header definitions for XGI 2D/3D/DRM suite
 3 *
 4 * Copyright (C) 2003 Eric Anholt
 5 *
 6 * Permission to use, copy, modify, distribute, and sell this software and its
 7 * documentation for any purpose is hereby granted without fee, provided that
 8 * the above copyright notice appears in all copies and that both that copyright
 9 * notice and this permission notice appear in supporting documentation, and
10 * and that the name of the copyright holder not be used in advertising
11 * or publicity pertaining to distribution of the software without specific,
12 * written prior permission. The copyright holder makes no representations
13 * about the suitability of this software for any purpose.  It is provided
14 * "as is" without expressed or implied warranty.
15 *
16 * THE COPYRIGHT HOLDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
18 * EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
23 *
24 * Author:
25 *   	Eric Anholt <anholt@FreeBSD.org>
26 *
27 */
28
29#ifndef _XGI_COMMON_H_
30#define _XGI_COMMON_H_
31
32#define DRM_XGI_FB_ALLOC	0x04
33#define DRM_XGI_FB_FREE		0x05
34#define DRM_XGI_FLIP		0x08
35#define DRM_XGI_FLIP_INIT	0x09
36#define DRM_XGI_FLIP_FINAL	0x10
37#define DRM_XGI_AGP_INIT	0x13
38#define DRM_XGI_AGP_ALLOC	0x14
39#define DRM_XGI_AGP_FREE	0x15
40#define DRM_XGI_FB_INIT		0x16
41
42typedef struct {
43  	int context;
44  	unsigned long offset;
45  	unsigned long size;
46  	void *free;
47} drm_xgi_mem_t;
48
49typedef struct {
50  	unsigned long offset, size;
51} drm_xgi_agp_t;
52
53typedef struct {
54  	unsigned long offset, size;
55} drm_xgi_fb_t;
56
57typedef struct {
58  	unsigned int left, right;
59} drm_xgi_flip_t;
60
61#endif /* _XGI_COMMON_H_ */
62