DirectFB-1.4.3.tar.gz


DirectFB-1.4.3.tar.gz DirectFB-1.4.3.tar.gz DirectFB-1.4.3.tar.gz
资源截图
代码片段和文件信息
/*
   (c) Copyright 2001-2009  The world wide DirectFB Open Source Community (directfb.org)
   (c) Copyright 2000-2004  Convergence (integrated media) GmbH

   All rights reserved.

   Written by Denis Oliver Kropp 
              Andreas Hundt 
              Sven Neumann 
              Ville Syrjälä  and
              Claudio Ciccani .

   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.
*/

#include 

#include 

#include 
#include 
#include 

#include 
#include 
#include 

#include 

#include 

#include 

#include 
#include 

#include 
#include 
#include 
#include 

#include 

#include 


DFB_GRAPHICS_DRIVER( ati128 )


#include “regs.h“
#include “mmio.h“
#include “ati128_state.h“
#include “ati128.h“


/* driver capability flags */


#ifndef __powerpc__
#define ATI128_SUPPORTED_DRAWINGFLAGS 
               (DSDRAW_BLEND)
#else
#define ATI128_SUPPORTED_DRAWINGFLAGS 
               (DSDRAW_NOFX)
#endif

#define ATI128_SUPPORTED_DRAWINGFUNCTIONS 
               (DFXL_FILLRECTANGLE | DFXL_DRAWRECTANGLE | DFXL_DRAWLINE)

#define ATI128_SUPPORTED_BLITTINGFLAGS 
               (DSBLIT_SRC_COLORKEY | DSBLIT_BLEND_ALPHACHANNEL)

#define ATI128_SUPPORTED_BLITTINGFUNCTIONS 
               (DFXL_BLIT | DFXL_STRETCHBLIT)


/* macro for S12.0 and S14.0 format */
#define S12(val) (((u16)((s16)(val)))&0x3fff)
#define S14(val) (((u16)((s16)(val)))&0x3fff)

/** CARD FUNCTIONS **/
static bool ati128FillRectangle( void *drv void *dev DFBRectangle *rect );
static bool ati128FillBlendRectangle( void *drv void *dev DFBRectangle *rect );
static bool ati128DrawRectangle( void *drv void *dev DFBRectangle *rect );
static bool ati128DrawBlendRectangle( void *drv void *dev DFBRectangle *rect );

/* required implementations */

static DFBResult ati128EngineSync( void *drv void *dev )
{
     ATI128DriverData *adrv = (ATI128DriverData*) drv;
     ATI128DeviceData *adev = (ATI128DeviceData*) dev;

     ati128_waitidle( adrv adev );

     ret

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)