## this file is kinda upside-down. The "Screen" sections are the 
## 	"top" in terms of overall reference linking, but must therefor
##	be interpreted (and thus positioned) last in the file.
##	(A multi-pass parser for this would be nice. pass-per-section-type)
##	Well, this is one "tree" where the root IS at the bottom.

# There is a manpage/seedoc for this file. 

Section "Files"
    	RGBPath 	"/suite/X/configure/rgb"
	## 	                 	      ^^ filename minus suffix. 
	##					What jerks.
    	FontPath	"/suite/X/graphic/font/bitmap/misc/"
    	FontPath	"/suite/X/graphic/font/scaled/Type1/"
    	FontPath	"/suite/X/graphic/font/scaled/Speedo/"

EndSection


Section "ServerFlags"
EndSection


Section "Keyboard"
    	Protocol	"Standard"
    	AutoRepeat	500 5
EndSection


Section "Pointer"
    	Protocol	"PS/2"
    	Device	"/dev/mouse"
	#    Emulate3Buttons
EndSection


Section "Monitor"
	#
	# Description of the IBM 9515 15" monitor. It's a FIXED mode monitor, only 2
	# values for Horizontal scanning frequency is allowed as shown here. At present
	# I can only make the 640x480 mode work with the accelerated AGX-server.
	#
    	Identifier	"9517"
    	VendorName	"IBM"
    	HorizSync	30-61.1 
	# above and below ranges are wider than actual, dual-sync monitor
    	VertRefresh 60-75.8
    	Modeline "640x480" 31.50 640 664 776 800 480 486 489 525 -HSync 
			# -VSync
    	Modeline "1024x768" 44.8 1024 1056 1248 1280 768 800 968 1000	
	# 		Mode "v_g_a" needs hsync freq of 31.47 kHz
	#		Mode "v_g_a" needs vert refresh rate of 59.94 Hz
    	ModeLine "v_g_a" 25.175 640 664 760 800 480 491 493 525 # -HSync -VSync

    Mode    "9517.1024"
             DotClock      80.00
             HTimings       1024      1048      1352      1377
             VTimings        768       783       792       807
  EndMode



EndSection


Section "Monitor"
    	Identifier	"8515"
    	VendorName	"IBM"
    	HorizSync	30-61.1
    	VertRefresh 40-75.8
	# 		Mode "v_g_a" needs hsync freq of 31.47 kHz
	#		Mode "v_g_a" needs vert refresh rate of 59.94 Hz
    	ModeLine "v_g_a" 25.175 640 664 760 800 480 491 493 525 -HSync -VSync


EndSection


#
# Description of the XGA-2 graphics board.
#
# The values for "Instance", "IObase", "COPBase", "MEMbase", "BIOSbase",
# "VGAbase", and "POSbase" depends on the values in the XGA-2 POS registers
# (see Martins readme file and README.agx). On my machine the POS registers
#  have the values: da 8f 0d 6e fd d0 00 00 as reported by Martin's SCSI driver.
#
#
# cLIeNUX 0
#Slot 4: db 8f 0d 6c fd c0 00 00
# Edmund's multihead xgapos.c   cLIeNUX0, XGA in slot 4, XGA-2 in 5
# How bout a "slot" line Eddie?
#$a.out
#:;xgapos
# slot5
#    CHIPSET    "XGA-2"
#    Instance    6
#    IObase      0x2160
#    COPbase     0xc9f00
#    MEMbase     0xfd800000
#    BIOSbase    0xc8000


## don't fool with the addresses and such below if you can't afford
##   a sudden reboot. A munged text screen might respond to "setfont".


Section "Device"
	# this is slot 7, ATI GUP Graphics Ultra Pro  on cLIeNUX0
  	Identifier "slot7"
	Chipset "ati"
	#  Videoram 1024
	# 	probe here says 256k, liveable at 4bit
  	Instance 6
  	POSbase 0
EndSection



Section "Device" 
	# this is slot 5 XGA-2 on cLIeNUX0 
	## no "Clocks". XGA-2 clock is Programmable
	Identifier "slot5"
  	VendorName "IBM"
  	BoardName "Unknown"
  	Chipset "xga-2"
  	Ramdac "xga"
  	Videoram 1024
  	DACspeed 90
    Instance    6
    IObase      0x2160
    COPbase     0xc9f00
    MEMbase     0xfd800000
    BIOSbase    0xc8000
	#  VGAbase 0xA0000
  	POSbase 0
EndSection



#   ScreenNo scrnum
#          This optional entry overrides the default screen numbering in a
#          multi-headed configuration. The default numbering is determined
#          by the ordering of the Screen sections in the XF86Config file.
#          To override this, all relevant Screen sections must have this
#          entry specified.


Section "Screen"
	# ScreenNo 0
	## 	the fields in here are references to the everything else.
	##	One Screen section per server type; Accel mono VGA2 VGA16
	##	Note that the (VGA16) server has an -XF86Config switch.
 
    	Driver	"Accel"	# this field determines which Screen section,
			# i.e. one per server. 

			## this is the XF86_AGX one, etc. 
			##	"Driver" must be the first field. 
    	Device	"slot5"
	## above names a Device/Identifier field, specifying a Device (card)

    	Monitor	"9517"
    	Subsection  "Display"
		#	one such subsection per instance of this server.
## 8 or 16, not both

# 		Depth 8        	
#		Modes	    "9517.1024"  
#		Virtual		1024 1000

        	Depth		16
        	Modes		"640x480"  "v_g_a" "1024x768"
        	ViewPort	0 0
		Virtual		640 600
		## I find a long-in-Y Virtual to be non-annoying.


    	EndSubsection

EndSection


Section "Screen"
	# ScreenNo 1
    	Driver	"VGA16"
	#	server, actually
    	Device	"slot5"
	#	card
    	Monitor	"9517"


    	Subsection  "Display"
        	Depth	    4
        	Modes	    "v_g_a" 
        	ViewPort    0 0
			#  start at 0,0 = 0,0 real-to-virtual
		Virtual     640 640
#		Visual StaticGray
		## I find a long-in-Y Virtual to be non-annoying, 
		##	compared to big x AND y.
    	EndSubsection
EndSection
