Merge branch 'gallium-vertex-linear' into gallium-tex-surfaces
[mesa.git] / src / mesa / drivers / dri / sis / server / sis_common.h
1 /* * */
2 /*
3 * Common header definitions for SiS 2D/3D/DRM suite
4 *
5 * Copyright (C) 2003 Eric Anholt
6 *
7 * Permission to use, copy, modify, distribute, and sell this software and its
8 * documentation for any purpose is hereby granted without fee, provided that
9 * the above copyright notice appear in all copies and that both that
10 * copyright notice and this permission notice appear in supporting
11 * documentation, and that the name of the copyright holder not be used in
12 * advertising or publicity pertaining to distribution of the software without
13 * specific, written prior permission. The copyright holder makes no representations
14 * about the suitability of this software for any purpose. It is provided
15 * "as is" without express or implied warranty.
16 *
17 * THE COPYRIGHT HOLDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 * EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 * PERFORMANCE OF THIS SOFTWARE.
24 *
25 * Author:
26 * Eric Anholt <anholt@FreeBSD.org>
27 *
28 */
29
30 #ifndef _SIS_COMMON_H_
31 #define _SIS_COMMON_H_
32
33 #define DRM_SIS_FB_ALLOC 0x04
34 #define DRM_SIS_FB_FREE 0x05
35 #define DRM_SIS_FLIP 0x08
36 #define DRM_SIS_FLIP_INIT 0x09
37 #define DRM_SIS_FLIP_FINAL 0x10
38 #define DRM_SIS_AGP_INIT 0x13
39 #define DRM_SIS_AGP_ALLOC 0x14
40 #define DRM_SIS_AGP_FREE 0x15
41 #define DRM_SIS_FB_INIT 0x16
42
43 typedef struct {
44 int context;
45 unsigned long offset;
46 unsigned long size;
47 void *free;
48 } drm_sis_mem_t;
49
50 typedef struct {
51 unsigned long offset, size;
52 } drm_sis_agp_t;
53
54 typedef struct {
55 unsigned long offset, size;
56 } drm_sis_fb_t;
57
58 typedef struct {
59 unsigned int left, right;
60 } drm_sis_flip_t;
61
62 #endif /* _SIS_COMMON_H_ */
63