Path: utzoo!attcan!uunet!ginosko!aplcen!haven!ames!sun-barr!newstop!sun!david@sun.com From: david@sun.com (the Great Satan) Newsgroups: comp.windows.x Subject: Re: X11 R3 on Sun SPARCstation 1 with CG3 color board? Message-ID: <118398@sun.Eng.Sun.COM> Date: 28 Jul 89 18:05:01 GMT References: <8907280804.AA08978@poseur.jpl.nasa.gov> Sender: david@sun.Eng.Sun.COM Lines: 31 In article <8907280804.AA08978@poseur.jpl.nasa.gov> earle@POSEUR.JPL.NASA.GOV (Greg Earle - Sun JPL on-site Software Support) writes: >>Has anyone gotten X11 R3 to run on the Sun SPARCstation 1 with a CG3 color >>board ? Are there patches available to do this? > >I suspect that if you examine server/ddx/sun/sunCG3C.c, you will find that >the vast majority of the code assumes that it is running only on a Sun386i. > >If you change all the instances of `#ifdef sun386' to >`#if defined(sun386) || defined(sun4c)' then you might get lucky, >it might work just like that without any other code changes. > >Note that this depends on `sun4c' being unique to the SPARCStation-1 >C preprocessor; I'm not sure if this is a pre-defined symbol or not. >If it isn't, you might have to fall back on using `defined(sun4)' instead. 1. As has been pointed out, you don't need to do this because the 4/60 cg3 driver emulates a cg4 (color planes only). 2. No, you will not "get lucky" because the mmap offset is different for the Sun-386i cg3 and the 4/60 cg3 (sorry, this was necessary in order to implement the cg4 emulation). For details refer to the 4.0.3c . 3. No, sun4c is not a predefined cpp symbol in 4.0.3c. However, sun4 is sufficient for this purpose (or you could just un-ifdef the code completely). -- David DiGiacomo, Sun Microsystems, Mt. View, CA sun!david david@eng.sun.com