Subject: Re: Panic: MMU fault :(
To: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
From: Thomas Gerner <thomas@murmel.camelot.de>
List: port-atari
Date: 01/06/1998 14:10:35
Hello Julian,

> I've you could send me the diffs, that would be great.  I'll have a go at
> getting the SVGA server to work with my card.  For the registers, I found :
> 
> 	http://www.heim2.tu-clausthal.de/PROJEKT/PRG/PCGAMES/tseng.html
> 	http://www.neutralzone.org/home/faqsys/docs/tseng.txt
> 	http://ftp.std.com/obi/Standards/VGA/tseng.txt

I buyed the w32 databooks from Tseng and found somewhere a archiv called
vgadoc4b.zip. This archive contains information on many vga cards.

I will send the diffs to you today. The diffs apply to X32servonly.tgz.
You will probably find this on ftp.xfree.org or one of the mirrors.

> As far as I can see, the segment/linear mode register is the same for the
> ET4000 and ET4000w32.  Will I need to get ite/views working first (or
> should I wait and UTSL before asking too many questions? :)?

Yes, it is the same register, but the bits have different meaning depending
on the chip version.

If you will use the card as a second video and not for text mode you need
no ite/view. You don't even need setup the card at the kernel driver because
the X server does this for its needs. The kernel driver must support at least
two ioctl: GRFIOCON/GRFIOCOFF to tell the kernel the device is in use/free
and GRFIOCGINFO to get the register and frame buffer memory. And mmap must
work for this device.

> (The comp.sys.ibm.pc.hardware.video FAQ was also quite interesting reading
> while I was searching for ET4000 docs :
> 
> 	http://dezi.wu-wien.ac.at/~stefan/Video.html
> )
> 
> I notice references (altavista search) to XF68 for NetBSD/x68k and
> Linux/m68k.  I guess these don't share a common root.  The Linux stuff is
> in the R6.3 Imakefile, but that is a 'Frame Buffer Device Server' not a
> card driver, so I guess the R6.3 sources won't have much useful for me
> in them.

The linux/m68k server is part of X32servonly. About NetBSD/x68k I didn't
find anything in this code. Maybe it is part of the newer releases. I will
see it if I deceide to get newer sources. But I am not sure if I should
begin working on 3.3.1 or wait till 3.4 is released. 3.3.1 is some month
old, too.

The new TT/Falcon server based an XFree uses the adjusted code from linux/m68k
and works using view devices like the Xdaniver.

> > There will be no X distribution for 1.3, but I have a new TT/Falcon 
> > X-Server based on XFree which must be tested on a TT (Falcon is tested by
> > myself). If you like to test it you can get a copy, but you must be able
> > to test all video modes.
> 
> I can test all but TT-high if that is any use to you.  Wonder how many days
> it will take to build X on a TT (must try a make in /usr/src too when I
> get some more disk space ;-) ...

Elchy will test TT-high and the other modes if he has installed NetBSD 1.3.
Therefore I will send you no binary, but you can build a frame buffer device
server along with the SVGA server if you have got the diffs.

The build of the server takes about 2 hour at a Hades/040. Maybe it will
take 8 till 10 hour at a TT.

Thomas