1
/* glint_common.h -- common header definitions for Gamma 2D/3D/DRM suite
3
* Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
6
* Permission is hereby granted, free of charge, to any person obtaining a
7
* copy of this software and associated documentation files (the "Software"),
8
* to deal in the Software without restriction, including without limitation
9
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
* and/or sell copies of the Software, and to permit persons to whom the
11
* Software is furnished to do so, subject to the following conditions:
13
* The above copyright notice and this permission notice (including the next
14
* paragraph) shall be included in all copies or substantial portions of the
17
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20
* PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
21
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
* DEALINGS IN THE SOFTWARE.
25
* Converted to common header format:
26
* Jens Owen <jens@tungstengraphics.com>
28
* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/glint/glint_common.h,v 1.1 2002/10/30 12:52:15 alanh Exp $
32
#ifndef _GLINT_COMMON_H_
33
#define _GLINT_COMMON_H_
36
* WARNING: If you change any of these defines, make sure to change
37
* the kernel include file as well (gamma_drm.h)
40
/* Driver specific DRM command indices
41
* NOTE: these are not OS specific, but they are driver specific
43
#define DRM_GAMMA_INIT 0x00
44
#define DRM_GAMMA_COPY 0x01
48
GAMMA_INIT_DMA = 0x01,
49
GAMMA_CLEANUP_DMA = 0x02
51
int sarea_priv_offset;
57
unsigned int buffers_offset;
60
extern int drmGAMMAInitDMA( int fd, drmGAMMAInit *info );
61
extern int drmGAMMACleanupDMA( int fd );