/* * SiS 300/630/730/540/315/550/650/651/M650/661FX/M661FX/740/741/M741/330/760 * frame buffer driver for Linux kernels 2.4.x and 2.5.x * * Copyright (C) 2001-2004 Thomas Winischhofer, Vienna, Austria. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the named License, * or any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA * * Author: Thomas Winischhofer * * Author of code base: * SiS (www.sis.com.tw) * Copyright (C) 1999 Silicon Integrated Systems, Inc. * * See http://www.winischhofer.net/ for more information and updates * * Originally based on the VBE 2.0 compliant graphic boards framebuffer driver, * which is (c) 1998 Gerd Knorr * */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) #include #endif #include #include #include #include #include #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) #include #endif #include "osdef.h" #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) #include