X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsis%2Fsis_main.c;h=baaf495a0a6dff7513fd1c054ec8551d59d09910;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=960cdbb5593162fe1b3733feb6d0410739b332a8;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index 960cdbb55..baaf495a0 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c @@ -1,8 +1,10 @@ /* - * 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 + * SiS 300/540/630[S]/730[S], + * SiS 315[E|PRO]/550/[M]65x/[M]66x[F|M|G]X/[M]74x[GX]/330/[M]76x[GX], + * XGI V3XT/V5/V8, Z7 + * frame buffer driver for Linux kernels >= 2.4.14 and >=2.6.3 * - * Copyright (C) 2001-2004 Thomas Winischhofer, Vienna, Austria. + * Copyright (C) 2001-2005 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 @@ -18,11 +20,11 @@ * 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: Thomas Winischhofer * - * Author of code base: - * SiS (www.sis.com.tw) - * Copyright (C) 1999 Silicon Integrated Systems, Inc. + * Author of (practically wiped) code base: + * SiS (www.sis.com) + * Copyright (C) 1999 Silicon Integrated Systems, Inc. * * See http://www.winischhofer.net/ for more information and updates * @@ -31,261 +33,381 @@ * */ -#include #include #include +#include #include +#include +#include #include #include #include + +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17) #include +#else +#include +#endif + #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