Subject: port-amiga/2199: VGA-only fix
To: None <gnats-bugs@NetBSD.ORG>
From: None <henric@zoom.com>
List: netbsd-bugs
Date: 03/10/1996 12:59:39
>Number:         2199
>Category:       port-amiga
>Synopsis:       a cheapo VGA monitor doesn't work with loadbsd -A
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 10 16:20:01 1996
>Last-Modified:
>Originator:     Henric Jungheim
>Organization:
-------- Henric Jungheim  -------------------  henric@zoom.com --------
>Release:        sup'ed as of March 4 <NetBSD-current source date>
>Environment:
	
System: NetBSD henric-ppp.zoom.com 1.1A NetBSD 1.1A (HENRIC) #55: Sat Mar 9 15:30:35 PST 1996 henric@henric-ppp.zoom.com:/usr/src/sys/arch/amiga/compile/HENRIC amiga

A4000/040 with cheapo VGA monitor

>Description:
	
Booting a standard kernel with the -A option results in a barely
readable display (it looks as if someone has turned the brightness
way up and the contrast way down).  The monitor is not capable of 
sync'ing to this scan rate.

>How-To-Repeat:
	
>Fix:
	
I changed some of the constants in the ntsc AGA monitor config.  All but
one of these changes can be made with binpatch (I think; I have not 
tried).  The resulting display works great on my monitor, but it does not
support displays as wide as the current configuration (I use 648 pixels,
but I'm not sure what the maximum is).  Most of the values are from
peeking at a DBLNTSC/VGAOnly Workbench copper list.


*** /tmp/grfabs_cc.c	Sun Mar 10 12:32:36 1996
--- grfabs_cc.c	Fri Nov 24 21:37:45 1995
***************
*** 1723,1729 ****
  		aga_this_data->bplcon0 = 0x0240 | USE_CON3;	/* color composite
  								 * enable,
  								 * shres. */
! 		aga_this_data->std_start_x = 0x4f /*STANDARD_VIEW_X*/;
  		aga_this_data->std_start_y = 0x2b /*STANDARD_VIEW_Y*/;
  		aga_this_data->vbl_handler = (vbl_handler_func *) cc_mode_vbl_handler;
  		aga_this_data->beamcon0 = SPECIAL_BEAMCON ^ VSYNCTRUE;
--- 1723,1729 ----
  		aga_this_data->bplcon0 = 0x0240 | USE_CON3;	/* color composite
  								 * enable,
  								 * shres. */
! 		aga_this_data->std_start_x = 0x40 /*STANDARD_VIEW_X*/;
  		aga_this_data->std_start_y = 0x2b /*STANDARD_VIEW_Y*/;
  		aga_this_data->vbl_handler = (vbl_handler_func *) cc_mode_vbl_handler;
  		aga_this_data->beamcon0 = SPECIAL_BEAMCON ^ VSYNCTRUE;
***************
*** 1736,1747 ****
  
  /* static, so I can patch and play */
  
! int	AGA_htotal = 0x79;
! int	AGA_hsstrt = 0xe;
! int	AGA_hsstop = 0x1c;
! int	AGA_hbstrt = 0x8;
  int	AGA_hbstop = 0x1e;
! int	AGA_vtotal = 0x1ec;
  int	AGA_vsstrt = 0x3;
  int	AGA_vsstop = 0x6;
  int	AGA_vbstrt = 0x0;
--- 1736,1747 ----
  
  /* static, so I can patch and play */
  
! int     AGA_htotal = 0x71;
! int     AGA_hsstrt = 0xc;
! int     AGA_hsstop = 0x16;
! int     AGA_hbstrt = 0x5;
  int     AGA_hbstop = 0x1e;
! int     AGA_vtotal = 0x1c1;
  int     AGA_vsstrt = 0x3;
  int     AGA_vsstop = 0x6;
  int     AGA_vbstrt = 0x0;
>Audit-Trail:
>Unformatted: