From owner-freebsd-hackers Wed Sep 27 02:38:41 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA24829 for hackers-outgoing; Wed, 27 Sep 1995 02:38:41 -0700 Received: from dawnrazor.campus.luth.se (root@dawnrazor.campus.luth.se [130.240.193.73]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id CAA24820 for ; Wed, 27 Sep 1995 02:38:31 -0700 Received: (from offe@localhost) by dawnrazor.campus.luth.se (8.6.11/8.6.9) id KAA12409; Wed, 27 Sep 1995 10:36:58 +0100 Date: Wed, 27 Sep 1995 10:36:57 +0100 (MET) From: Olof Johansson To: "Amancio Hasty Jr." cc: Joerg Wunsch , hackers@freebsd.org Subject: Re: vgalib for FreeBSD! In-Reply-To: <199509270537.WAA13001@rah.star-gate.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk On Tue, 26 Sep 1995, Amancio Hasty Jr. wrote: > The biggest problem with the svgalib is its lack of support for svga > cards. For instance, the last time that I checked there was no > support for S3 cards . I guess a good starting point will be to > port whatever is available then include a lot of the XFree86 init > and graphic routines. The effort is almost not worth it -- at least > from my point and view . I suggest doing a net search for a better package. Since svgalib is the only graphics package for linux (or any other pc-unix) I've seen I don't have too much to compare it with. I think that a fairly easy-ported, not-too-good packages is better than none though. I have an unsupported S3 card myself. :-( (#9 GXE) These are the supported chipsets (from the README, sorry for the long list): VGA and compatibles 320x200x256, and the series of 16-color and non-standard planar 256 color modes supported by VGAlib, as well as 720x348x2. Cirrus Logic GD542x/3x All the modes, including 256 color, 32K/64K color, 16M color (3 bytes per pixel) and 32-bit pixel 16M color modes (5434). Some bitblt functions are supported. The driver doesn't work with mode dumps, but uses a SVGA abstraction with mode timings like the X drivers. Tseng ET4000/ET4000W32(i/p) Derived from VGAlib; not the same register values. ET4000 register values are not compatible; see et4000/README. Make sure the colors are right in hicolor mode; the vgatest program should draw the same color bars for 256 and hicolor modes (the DAC type is defined in et4000.regs or the dynamic registers file). ET4000/W32 based cards usually have an AT&T or Sierra 15025/6 DAC. With recent W32p based cards, you might have some luck with the AT&T DAC type. If the high resolution modes don't work, you can try dumping the registers in DOS using the program in the et4000 directory and putting them in a file (/etc/vga/libvga.et4000 is parsed at runtime if DYNAMIC is defined in config.h). 640x480x256, 800x600x256, 1024x768x256, 640x480x32K, 800x600x32K, 640x480x16M, etc. Reports of ET4000/W32i/p functionality are welcome. There may be a problem with the way the hicolor DAC register is handled; dumped registers may use one of two timing methods, with the value written to the register for a particular DAC for a hicolor mode (in vgahico.c) being correct for just one of the these methods. As a consequence some dumped resolutions may work while others don't. Trident TVGA 8900C/9000 (and possibly also 8800CS/8900A/B) Derived from tvgalib by Toomas Losin. 640x480x256, 800x600x256, 1024x768x256 (I and NI) Might be useful to add 16-color modes (for those equipped with a 512K TVGA9000). Oak Technologies OTI-037/67/77/87 Driver by Christopher Wiles; includes 32K color modes for OTI-087. See README.oak. ATI Mach32 The alpha driver by Michael Weller supports all BIOS-defined modes. However, non-Type 2 DAC's are untested. Check out README.mach32 (and README.config). Do send feedback. S3 The driver is not complete, but should work on a number of cards/RAMDACs, and 6408x480x256 should be work on most card. The best support is for a 801/805 with AT&T20C490-compatible RAMDAC, and S3-864 + SDAC. Clocks and Ramdac lines in config file supported. Clocks should be the same as in XFree86. Supported ramdac IDs: Sierra32K, SDAC, GenDAC, ATT20C490, ATT20C498 Example: Clocks 25.175 28.3 40 70 50 75 36 44.9 0 118 77 31.5 110 65 72 93.5 Ramdac att20c490 ARK Logic ARK1000PV/2000PV Full support, limited RAMDAC support. Only ARK1000PV tested. Supports Clocks and Ramdac lines in config file.