Subject: SVGA...
Date: Tue, 7 Jan 92 19:23:33 +0100
From: d88-man@nada.kth.se
To: Linux-activists@joker.cs.hut.fi

Hi again, 

I'm getting more and more confused about this, trying out the code on a 
computer at the place I work it detected a Paradise as a Genoa ! And if one
looks at the code for Genoa this is mighty impressive how it could !
Anyway here are two more versions of the Tseng detection, since I guess
most people have Tseng or Trident those might be most interesting to have.
Just change the old Tseng part to one of these and try. Please let me know if
you get either of them working.
/Mats Andersson (d88-man@nada.kth.se)
-------------------------------------------------------------------------------
Attempt #1:

notrid:	mov	dx,#0x3cd		! Check Tseng 'clues'
	in	al,dx			! Could things be this simple ! :-)
	mov	bl,al
	mov	al#0x55
	out	dx,al
	in	al,dx
	mov	ah,al
	mov	al,bl
	out	dx,al
	cmp	ah,#0x55
 	jne	notsen
	lea	si,dsctseng
	lea	di,motseng
	lea	cx,selmod
	jmp	cx

Attempt #2:

notrid:	mov	dx,#0x3bf		! Check Tseng 'clues' Acoording to 
	mov	al,#0x03		! Ferrano
	out	dx,al
	mov	dx,#0x3cc		
	in	al,dx
	mov	dx,#0x3b8	
	and	al,#0x01	
	jz	even
	mov	dx,#0x3d8
even:	mov	al,0xa0
	out	dx,al
	call	setATC
	inc	dx
	in	al,dx
	mov	bl,al
	call	setATC
	mov	al,bl
	xor	al,#0x10
	mov	bh,al
	out	dx,al
	call	setATC
	inc	dx
	in	al,dx
	mov	ah,al
	call	setATC
	mov	al,bl
	out	dx,al
	cmp	ah,bh
 	jne	notsen
	lea	si,dsctseng
	lea	di,motseng
	lea	cx,selmod
	jmp	cx
setATC:	mov	dx,#0x3da
	in	al,dx
	mov	dx,#0x3c0
	mov	al,#0x16
	out	dx,al
	ret

Subject: SVGA (again...)
Date: Wed, 8 Jan 92 10:26:11 +0100
From: d88-man@nada.kth.se
To: Linux-activists@joker.cs.hut.fi


Linus has tested a new aproach to detecting Tseng which works. I have also
looked closer at the code for Genoa, I had screwed things up a bit so to say.
I think that's why it detected a Paradise as a Genoa :-)
Anyway I have uploaded a file called newsvga.tar.Z to tsx-11 and nic which
include the new Tseng and the corrected (hopefully :-) Genoa. It is a new
diff which should be applied to the original setup.s not the patched one.
I cross my fingers that this one works :-)
/Mats Andersson (d88-man@nada.kth.se)