From 7fe60435bce6595a9c58a9bfd8244d74b5320e96 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 15 Jan 2013 08:46:13 +0100 Subject: Import DirectFB141_2k11R3_beta5 --- Source/DirectFB/gfxdrivers/matrox/matrox_maven.h | 64 ++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 Source/DirectFB/gfxdrivers/matrox/matrox_maven.h (limited to 'Source/DirectFB/gfxdrivers/matrox/matrox_maven.h') diff --git a/Source/DirectFB/gfxdrivers/matrox/matrox_maven.h b/Source/DirectFB/gfxdrivers/matrox/matrox_maven.h new file mode 100755 index 0000000..eeeb32d --- /dev/null +++ b/Source/DirectFB/gfxdrivers/matrox/matrox_maven.h @@ -0,0 +1,64 @@ +/* + (c) 1998-2001 Petr Vandrovec + + This code originally comes from matroxfb. + Relicensed under the LGPL with the authors permission. + Adapted for CRTC2 ITU-R 656 mode by Ville Syrjala + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#ifndef __MATROX_MAVEN_H__ +#define __MATROX_MAVEN_H__ + +typedef struct { + char dev[256]; + u8 regs[256]; + u8 address; +} MatroxMavenData; + +DFBResult maven_init( MatroxMavenData *mav, + MatroxDriverData *mdrv ); + +DFBResult maven_open( MatroxMavenData *mav, + MatroxDriverData *mdrv ); +void maven_close( MatroxMavenData *mav, + MatroxDriverData *mdrv ); + +void maven_enable( MatroxMavenData *mav, + MatroxDriverData *mdrv ); +void maven_disable( MatroxMavenData *mav, + MatroxDriverData *mdrv ); +void maven_sync( MatroxMavenData *mav, + MatroxDriverData *mdrv ); + +void maven_set_regs( MatroxMavenData *mav, + MatroxDriverData *mdrv, + CoreLayerRegionConfig *config, + DFBColorAdjustment *adj ); + +void maven_set_hue( MatroxMavenData *mav, + MatroxDriverData *mdrv, + u8 hue ); +void maven_set_saturation( MatroxMavenData *mav, + MatroxDriverData *mdrv, + u8 saturation ); +void maven_set_bwlevel( MatroxMavenData *mav, + MatroxDriverData *mdrv, + u8 brightness, + u8 contrast ); + +#endif -- cgit