X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsis%2Fsis_main.c;h=baaf495a0a6dff7513fd1c054ec8551d59d09910;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=6982660368193735cc2034c9f68dee1627b028b5;hpb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;p=linux-2.6.git diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index 698266036..baaf495a0 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c @@ -1,9 +1,10 @@ /* - * SiS 300/305/540/630(S)/730(S) - * SiS 315(H/PRO)/55x/(M)65x/(M)661(F/M)X/740/741(GX)/330/(M)760 + * 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 @@ -19,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 (practically wiped) code base: * SiS (www.sis.com) - * Copyright (C) 1999 Silicon Integrated Systems, Inc. + * Copyright (C) 1999 Silicon Integrated Systems, Inc. * * See http://www.winischhofer.net/ for more information and updates * @@ -32,30 +33,29 @@ * */ -#include #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) #include -#endif #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 #include #include -#include #include #include #include @@ -65,102 +65,63 @@ #include #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) -#include