[xserver-commit] xfree86/drivers/nsc/gfx disp_gu1.c,1.5,1.6 disp_gu2.c,1.5,1.6 durango.c,1.1,1.2 gfx_dcdr.c,1.1,1.2 gfx_disp.c,1.2,1.3 gfx_i2c.c,1.1,1.2 gfx_init.c,1.1,1.2 gfx_msr.c,1.1,1.2 gfx_rndr.c,1.1,1.2 gfx_tv.c,1.1,1.2 gfx_vga.c,1.1,1.2 gfx_vid.c,1.1,1.2 gfx_vip.c,1.1,1.2 i2c_acc.c,1.2,1.3 i2c_gpio.c,1.1,1.2 init_gu1.c,1.1,1.2 init_gu2.c,1.1,1.2 msr_rdcl.c,1.1,1.2 rndr_gu1.c,1.2,1.3 rndr_gu2.c,1.1,1.2 saa7114.c,1.1,1.2 tv_1200.c,1.1,1.2 tv_fs450.c,1.1,1.2 tv_fs451.c,1.2,1.3 tv_geode.c,1.1,1.2 vga_gu1.c,1.1,1.2 vid_1200.c,1.2,1.3 vid_1400.c,1.1,1.2 vid_5530.c,1.2,1.3 vid_rdcl.c,1.4,1.5 vip_1200.c,1.1,1.2 vip_1400.c,1.1,1.2

Keith Packard xserver-commit@pdx.freedesktop.org


Committed by: keithp

Update of /cvs/xserver/xfree86/drivers/nsc/gfx
In directory pdx:/tmp/cvs-serv14744/drivers/nsc/gfx

Modified Files:
	disp_gu1.c disp_gu2.c durango.c gfx_dcdr.c gfx_disp.c 
	gfx_i2c.c gfx_init.c gfx_msr.c gfx_rndr.c gfx_tv.c gfx_vga.c 
	gfx_vid.c gfx_vip.c i2c_acc.c i2c_gpio.c init_gu1.c init_gu2.c 
	msr_rdcl.c rndr_gu1.c rndr_gu2.c saa7114.c tv_1200.c 
	tv_fs450.c tv_fs451.c tv_geode.c vga_gu1.c vid_1200.c 
	vid_1400.c vid_5530.c vid_rdcl.c vip_1200.c vip_1400.c 
Log Message:
	* Makefile.am
	* *.c
	Ok, everyone gets #include <config.h>
	Other than that, I fixed a few extension header paths and
	whacked at the Makefile.am.  Makefile.am is a hacked version
	of xserver/Makefile.am; expect them to diverge until we can
	stick the xfree86 DDX stuff into the standard Makefile.am.


Index: disp_gu1.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/disp_gu1.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- a/disp_gu1.c	27 Jan 2004 17:31:59 -0000	1.5
+++ b/disp_gu1.c	28 Feb 2004 01:27:39 -0000	1.6
@@ -264,6 +264,9 @@
 {
    /* ASSUME 300 MHz, 5 CLOCKS PER READ */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #	define READS_PER_MILLISECOND 60000L
 
    unsigned long loop;

Index: disp_gu2.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/disp_gu2.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- a/disp_gu2.c	3 Nov 2003 05:11:22 -0000	1.5
+++ b/disp_gu2.c	28 Feb 2004 01:27:39 -0000	1.6
@@ -271,6 +271,9 @@
  * only arise if the delay is not long enough.  
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_DISPLAY_DYNAMIC
 void
 gu2_delay_milliseconds(unsigned long milliseconds)

Index: durango.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/durango.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/durango.c	10 Dec 2002 15:12:25 -0000	1.1
+++ b/durango.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -149,6 +149,9 @@
  * of chipsets. 
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define GFX_DISPLAY_DYNAMIC			1	/* runtime selection */
 #define GFX_DISPLAY_GU1				1	/* 1st generation display controller */
 #define GFX_DISPLAY_GU2				1	/* 2nd generation display controller */

Index: gfx_dcdr.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_dcdr.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_dcdr.c	10 Dec 2002 15:12:25 -0000	1.1
+++ b/gfx_dcdr.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -160,6 +160,9 @@
 
 /* INCLUDE SUPPORT FOR PHILIPS SAA7114 DECODER, IF SPECIFIED */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_DECODER_SAA7114
 #include "saa7114.c"
 #endif

Index: gfx_disp.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_disp.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/gfx_disp.c	14 Jan 2003 09:34:34 -0000	1.2
+++ b/gfx_disp.c	28 Feb 2004 01:27:39 -0000	1.3
@@ -464,6 +464,9 @@
 
 /* UPDATE THIS VARIABLE WHENEVER NEW REDCLOUD-SPECIFIC MODES ARE ADDED */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define REDCLOUD_SPECIFIC_MODES 4
 
 #define NUM_RC_DISPLAY_MODES sizeof(DisplayParams) / sizeof(DISPLAYMODE)

Index: gfx_i2c.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_i2c.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_i2c.c	10 Dec 2002 15:12:25 -0000	1.1
+++ b/gfx_i2c.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -131,6 +131,9 @@
 /* INCLUDE ROUTINES FOR ACCESS.BUS, IF SPECIFIED */
 /* This is for SC1200 systems. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_I2C_ACCESS
 #include "i2c_acc.c"
 #endif

Index: gfx_init.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_init.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_init.c	10 Dec 2002 15:12:25 -0000	1.1
+++ b/gfx_init.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -142,6 +142,9 @@
 
 /* CONSTANTS USED BY THE INITIALIZATION CODE */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define PCI_CONFIG_ADDR			         0x0CF8
 #define PCI_CONFIG_DATA			         0x0CFC
 #define PCI_VENDOR_DEVICE_GXM	         0x00011078

Index: gfx_msr.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_msr.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_msr.c	10 Dec 2002 15:12:25 -0000	1.1
+++ b/gfx_msr.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -139,6 +139,9 @@
 
 /* INCLUDE SUPPORT FOR REDCLOUD, IF SPECIFIED */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_MSR_REDCLOUD
 #include "msr_rdcl.c"
 #endif

Index: gfx_rndr.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_rndr.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_rndr.c	10 Dec 2002 15:12:25 -0000	1.1
+++ b/gfx_rndr.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -161,6 +161,9 @@
 
 /* INCLUDE SUPPORT FOR FIRST GENERATION, IF SPECIFIED. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_2DACCEL_GU1
 #include "rndr_gu1.c"
 #endif

Index: gfx_tv.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_tv.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_tv.c	10 Dec 2002 15:12:25 -0000	1.1
+++ b/gfx_tv.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -189,6 +189,9 @@
     }
 };
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define NUM_TV_MODES sizeof(TVTimings)/sizeof(DISPLAYMODE)
 
 /* INCLUDE SUPPORT FOR SC1200 TV ENCODER, IF SPECIFIED */

Index: gfx_vga.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_vga.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_vga.c	10 Dec 2002 15:12:26 -0000	1.1
+++ b/gfx_vga.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -132,6 +132,9 @@
 
 /* INCLUDE SUPPORT FOR FIRST GENERATION, IF SPECIFIED. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_VGA_GU1
 #include "vga_gu1.c"
 #endif

Index: gfx_vid.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_vid.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_vid.c	10 Dec 2002 15:12:26 -0000	1.1
+++ b/gfx_vid.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -243,6 +243,9 @@
 
 /* INCLUDE SUPPORT FOR CS5530, IF SPECIFIED. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_VIDEO_CS5530
 #include "vid_5530.c"
 #endif

Index: gfx_vip.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/gfx_vip.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/gfx_vip.c	10 Dec 2002 15:12:26 -0000	1.1
+++ b/gfx_vip.c	28 Feb 2004 01:27:39 -0000	1.2
@@ -162,6 +162,9 @@
 
 /* INCLUDE SUPPORT FOR SC1200, IF SPECIFIED. */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_VIP_SC1200
 #include "vip_1200.c"
 #endif

Index: i2c_acc.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/i2c_acc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/i2c_acc.c	3 Nov 2003 05:11:23 -0000	1.2
+++ b/i2c_acc.c	28 Feb 2004 01:27:39 -0000	1.3
@@ -131,6 +131,9 @@
 
 /* SUPER IO DEFINITIONS */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define INDEX_1					0x15C	/* base address 1 selected */
 #define DATA_1					0x15D
 #define INDEX_2					0x2E	/* base address 2 selected */

Index: i2c_gpio.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/i2c_gpio.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/i2c_gpio.c	10 Dec 2002 15:12:26 -0000	1.1
+++ b/i2c_gpio.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -136,6 +136,9 @@
 
 static int g_initialized = 0;
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define	I2CWRITE		0x00	/* Write address */
 #define	I2CREAD			0x01	/* Read address */
 

Index: init_gu1.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/init_gu1.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/init_gu1.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/init_gu1.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -170,6 +170,9 @@
  * detected; 0 if not. It assumes that a 33.3 MHz PCI clock is being used. 
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_INIT_DYNAMIC
 unsigned long
 gu1_get_core_freq(void)

Index: init_gu2.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/init_gu2.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/init_gu2.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/init_gu2.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -146,6 +146,9 @@
  * Returns the core clock frequency of a GX2.
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_INIT_DYNAMIC
 unsigned long
 gu2_get_core_freq(void)

Index: msr_rdcl.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/msr_rdcl.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/msr_rdcl.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/msr_rdcl.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -145,6 +145,9 @@
 
 /* REDCLOUD MSR BITMASKS */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define MBD_MSR_CAP			0x2000
 #define MSR_CAP_ID_MASK		0xFF000
 #define MSR_CAP_ID_SHIFT  	12

Index: rndr_gu1.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/rndr_gu1.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/rndr_gu1.c	14 Jan 2003 09:34:34 -0000	1.2
+++ b/rndr_gu1.c	28 Feb 2004 01:27:40 -0000	1.3
@@ -197,6 +197,9 @@
 			unsigned short flags);
 void gu1_wait_until_idle(void);
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_NO_IO_IN_WAIT_MACROS
 #define GFX_WAIT_PENDING while(READ_REG16(GP_BLIT_STATUS) & BS_BLIT_PENDING) { ; }
 #define GFX_WAIT_BUSY while(READ_REG16(GP_BLIT_STATUS) & BS_BLIT_BUSY) { ; }

Index: rndr_gu2.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/rndr_gu2.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/rndr_gu2.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/rndr_gu2.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -253,6 +253,9 @@
 void gu22_sync_to_vblank(void);
 void gu2_reset_pitch(unsigned short pitch);
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define GU2_WAIT_PENDING while(READ_GP32(MGP_BLT_STATUS) & MGP_BS_BLT_PENDING)
 #define GU2_WAIT_BUSY while(READ_GP32(MGP_BLT_STATUS) & MGP_BS_BLT_BUSY)
 #define GU2_WAIT_HALF_EMPTY while(!(READ_GP32(MGP_BLT_STATUS) & MGP_BS_HALF_EMPTY))

Index: saa7114.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/saa7114.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/saa7114.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/saa7114.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -190,6 +190,9 @@
    {0xEF, 0x00},
 };
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define GFX_NUM_SAA7114_INIT_VALUES sizeof(gfx_saa7114_init_values)/sizeof(GFX_SAA7114_INIT)
 
 /*-----------------------------------------------------*/

Index: tv_1200.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/tv_1200.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/tv_1200.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/tv_1200.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -190,6 +190,9 @@
  * and resolution.
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_TV_DYNAMIC
 int
 sc1200_set_tv_format(TVStandardType format, GfxOnTVType resolution)

Index: tv_fs450.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/tv_fs450.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/tv_fs450.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/tv_fs450.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -128,6 +128,9 @@
  *
  * END_NSC_LIC_GPL */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define	FS450_DIRECTREG	0
 
 #include "tv_fs450.h"

Index: tv_fs451.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/tv_fs451.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/tv_fs451.c	3 Nov 2003 05:11:23 -0000	1.2
+++ b/tv_fs451.c	28 Feb 2004 01:27:40 -0000	1.3
@@ -137,6 +137,9 @@
  * Currently only NTSC 640x480 is supported.
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_TV_DYNAMIC
 int
 fs451_set_tv_format(TVStandardType format, GfxOnTVType resolution)

Index: tv_geode.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/tv_geode.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/tv_geode.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/tv_geode.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -22,6 +22,9 @@
  * the specified format.  Currently only NTSC is supported.
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_TV_DYNAMIC
 int
 geode_set_tv_defaults(int format)

Index: vga_gu1.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/vga_gu1.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/vga_gu1.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/vga_gu1.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -132,6 +132,9 @@
 
 /* SoftVGA Extended CRTC register indices and bit definitions */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define CRTC_EXTENDED_REGISTER_LOCK		0x30
 #define CRTC_MODE_SWITCH_CONTROL		0x3F
 

Index: vid_1200.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/vid_1200.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/vid_1200.c	14 Jan 2003 09:34:34 -0000	1.2
+++ b/vid_1200.c	28 Feb 2004 01:27:40 -0000	1.3
@@ -197,6 +197,9 @@
    {0x00870000, 0x000D0000},		/* 135.0000 */
 };
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define NUM_SC1200_FREQUENCIES sizeof(gfx_sc1200_clock_table)/sizeof(SC1200PLL)
 
 int sc1200_set_video_enable(int enable);

Index: vid_1400.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/vid_1400.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/vid_1400.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/vid_1400.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -64,6 +64,9 @@
    {0x00E80000, 0x00102A04},		/* 232.0000 */
 };
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define NUM_SC1400_FREQUENCIES sizeof(gfx_sc1400_clock_table)/sizeof(SC1400PLL)
 
 /*---------------------------------------------------------------------------

Index: vid_5530.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/vid_5530.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- a/vid_5530.c	21 Feb 2003 16:51:10 -0000	1.2
+++ b/vid_5530.c	28 Feb 2004 01:27:40 -0000	1.3
@@ -179,6 +179,9 @@
    {0x00E80000, 0x2FB1B802,},		/* 232.0000 */
 };
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define NUM_CS5530_FREQUENCIES sizeof(CS5530_PLLtable)/sizeof(CS5530PLLENTRY)
 
 int cs5530_set_video_enable(int enable);

Index: vid_rdcl.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/vid_rdcl.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- a/vid_rdcl.c	3 Nov 2003 05:11:23 -0000	1.4
+++ b/vid_rdcl.c	28 Feb 2004 01:27:40 -0000	1.5
@@ -220,6 +220,9 @@
    {0x00E58000, 0, 0, 0, 0x0000057D},	/* 229.5000 */
 };
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #define NUM_RCDF_FREQUENCIES sizeof(RCDF_PLLtable14MHz)/sizeof(RCDFPLLENTRY)
 
 int redcloud_set_video_enable(int enable);

Index: vip_1200.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/vip_1200.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/vip_1200.c	10 Dec 2002 15:12:27 -0000	1.1
+++ b/vip_1200.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -166,6 +166,9 @@
  * This routine enables or disables the writes to memory from the video port.  
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_VIP_DYNAMIC
 int
 sc1200_set_vip_enable(int enable)

Index: vip_1400.c
===================================================================
RCS file: /cvs/xserver/xfree86/drivers/nsc/gfx/vip_1400.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/vip_1400.c	10 Dec 2002 15:12:28 -0000	1.1
+++ b/vip_1400.c	28 Feb 2004 01:27:40 -0000	1.2
@@ -19,6 +19,9 @@
  * This routine enables or disables the writes to memory from the video port.  
  *-----------------------------------------------------------------------------
  */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 #if GFX_VIDEO_DYNAMIC
 int
 sc1400_set_vip_enable(int enable)