*** x386Config.c.V	Sun Mar 22 06:58:44 1992
--- x386Config.c	Wed Feb 17 15:28:24 1993
***************
*** 201,206 ****
--- 201,209 ----
  #define NHSYNC    2
  #define PVSYNC    3
  #define NVSYNC    4
+ /* the following token is for specifying a frequency for a programmable
+    clock generator in a mode specification line  -JPN */
+ #define FREQ      5
  
  static SymTabRec TimingTab[] = {
    { INTERLACE,  "interlace"},
***************
*** 208,213 ****
--- 211,217 ----
    { NHSYNC,     "-hsync"},
    { PVSYNC,     "+vsync"},
    { NVSYNC,     "-vsync"},
+   { FREQ,       "freq"},
    { -1,         "" },
  };
  
***************
*** 719,727 ****
  
  	  pNew->Flags = 0;
  	  pNew->Clock = val.num;
  	  
! 	  if (getToken(NULL) == NUMBER) pNew->HDisplay = val.num;
! 	  else configError("Horizontal display expected");
  	  
  	  if (getToken(NULL) == NUMBER) pNew->HSyncStart = val.num;
  	  else configError("Horizontal sync start expected");
--- 723,744 ----
  
  	  pNew->Flags = 0;
  	  pNew->Clock = val.num;
+ 	  pNew->ProgramClockFreq = 0;
+ 
+           /* If a 'freq' keyword is present followed by an integer (in Hz),
+              then get it as the frequency to use for the programmable clock
+              generator.  Then get the Horizontal display as normal.  */
  	  
! 	  if ((token = getToken(TimingTab)) == FREQ) { /* if freq keyword */
!             if ((token = getToken(NULL)) == NUMBER) { /* then get frequency */
!               pNew->ProgramClockFreq = val.num;
!               if ((token = getToken(NULL)) == NUMBER) { /* ... and then ... */
!                 pNew->HDisplay = val.num;     /* get the Horizontal display */
!               } else configError("Horizontal display expected.  The number after the FREQuency keyword must be an integer (in Hz).");
!             } else configError("Frequency (in Hertz) expected after 'freq' keyword");
!           } else if (token == NUMBER) { /* if no freq keyword */
!             pNew->HDisplay = val.num; /* just get Horizontal display */
!           } else configError("'freq' keyword or Horizontal display expected");
  	  
  	  if (getToken(NULL) == NUMBER) pNew->HSyncStart = val.num;
  	  else configError("Horizontal sync start expected");
***************
*** 830,835 ****
--- 847,853 ----
  	  {
  	    found = TRUE;
  	    target->Clock      = i;
+ 	    target->ProgramClockFreq = p->ProgramClockFreq;
  	    target->HDisplay   = p->HDisplay;
  	    target->HSyncStart = p->HSyncStart;
  	    target->HSyncEnd   = p->HSyncEnd;
