X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsis%2Finit.h;h=59d12844b4dd9f2cffcabeb0b3ac126b08ff3b6c;hb=refs%2Fheads%2Fvserver;hp=bcee3154d635f4422ddefc2d3749a552e68e1fff;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/video/sis/init.h b/drivers/video/sis/init.h index bcee3154d..59d12844b 100644 --- a/drivers/video/sis/init.h +++ b/drivers/video/sis/init.h @@ -1,8 +1,9 @@ /* $XFree86$ */ +/* $XdotOrg$ */ /* * Data and prototypes for init.c * - * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria + * Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria * * If distributed as part of the Linux kernel, the following license terms * apply: @@ -31,10 +32,7 @@ * * 2) Redistributions in binary form must reproduce the above copyright * * notice, this list of conditions and the following disclaimer in the * * documentation and/or other materials provided with the distribution. - * * 3) All advertising materials mentioning features or use of this software - * * must display the following acknowledgement: "This product includes - * * software developed by Thomas Winischhofer, Vienna, Austria." - * * 4) The name of the author may not be used to endorse or promote products + * * 3) The name of the author may not be used to endorse or promote products * * derived from this software without specific prior written permission. * * * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR @@ -52,74 +50,77 @@ * */ -#ifndef _INIT_ -#define _INIT_ +#ifndef _INIT_H_ +#define _INIT_H_ #include "osdef.h" - #include "initdef.h" -#include "vgatypes.h" -#include "vstruct.h" -#ifdef LINUX_XF86 -#include "xf86.h" -#include "xf86Pci.h" -#include "xf86PciInfo.h" -#include "xf86_OSproc.h" +#ifdef SIS_XORG_XF86 #include "sis.h" +#define SIS_NEED_inSISREG +#define SIS_NEED_inSISREGW +#define SIS_NEED_inSISREGL +#define SIS_NEED_outSISREG +#define SIS_NEED_outSISREGW +#define SIS_NEED_outSISREGL #include "sis_regs.h" #endif -#ifdef LINUX_KERNEL +#ifdef SIS_LINUX_KERNEL +#include "vgatypes.h" +#include "vstruct.h" #ifdef SIS_CP #undef SIS_CP #endif -#include #include #include #include #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) -#include -#else +#include "sis.h" #include