Subject: CVS commit: syssrc/sys
To: None <>
From: Roland Dowdeswell <>
List: source-changes
Date: 07/16/2001 03:55:18
Module Name:	syssrc
Committed By:	elric
Date:		Mon Jul 16 00:55:18 UTC 2001

Modified Files:
	syssrc/sys/arch/alpha/pci: pci_machdep.c
	syssrc/sys/dev/pci: tga.c tgavar.h

Log Message:
So, the PowerStorm 4d20 a.k.a. 32bit TGA2 w/ IBM RGB561 RAMDAC was causing
the kernel to panic since it is recognised as a TGA and the TGA driver
doesn't [yet] know what to do with it.

This patch fixes that by:
	o  making tgamatch() try to actually figure out what kind
	   of TGA card is there, rather than simply relying on the
	   vendor/product ids.
	o  creating a tga_cnmatch() so that the console code in
	   arch/alpha/pci/pci_machdep.c can cause the same to occur.
	o  breaking up some of tga_getdevconfig() into a few different
	   functions to re-use code that would have been duplicated.
	o  changed arch/alpha/pci/pci_machdep.c so that it calls out
	   to tga_cnmatch() if DEVICE_IS_TGA() matches before it decides
	   to attach the console as a TGA.

Addresses PR: port-alpha/12923

To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 syssrc/sys/arch/alpha/pci/pci_machdep.c
cvs rdiff -r1.33 -r1.34 syssrc/sys/dev/pci/tga.c
cvs rdiff -r1.9 -r1.10 syssrc/sys/dev/pci/tgavar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.