🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7122

24-Bit Color Graphics Board Memory Mapping

#7122
From: Jeff Rodriguez
Date: Thu, 21 Mar 1991 21:31
32 lines
2049 bytes
I would like to bypass SunView and the Pixrect library and write directly
to the CG8 24-bit color graphics board.  I am running SunOS 4.1 on a
SPARCstation 1+ with a CG8 board from RasterOps Corp.  The SunOS 4.1 man
page on "cgeight" provides the following.

    When using the mmap system call to map in the cgeight frame
    buffer, the device looks like:
      DACBASE: 0x200000  Brooktree Ramdac     16 bytes
               0x202000  P4 Register          4 bytes
      OVLBASE: 0x210000  Overlay Plane        1152 x 900 x 1
               0x230000  Overlay Enable Plane 1152 x 900 x 1
               0x250000  24-bit Frame Buffer  1152 x 900 x 32

Chapter 5 of the Sun manual on "Writing Device Drivers" talks about using
mmap to write directly to the frame buffer.  I have tried this
unsuccessfully.

1.  Has anybody tried writing directly to the 24-bit graphics board?
2.  How do you use mmap properly?
3.  Where can I get documentation on the Brooktree Ramdac?
4.  Where can I get documentation on the P4 register?
5.  Where is the storage for the gamma-correction colormap
    and for color1, color2, and color3, which are used by the
    overlay planes?

If you know any of the pieces to this puzzle, please let me know!  Send
e-mail to "rodriguez@ecevax.ece.arizona.edu" or post.

			Thanks,

			Jeff Rodriguez
			rodriguez@ecevax.ece.arizona.edu
Technical Details
Message-ID: <2049@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!mcnc!rti!bnrunix!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!mcnc!rti!bnrunix!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: ut-emx!jjr@emx.utexas.edu (Jeff Rodriguez)
Newsgroups: comp.sys.sun
Subject: 24-Bit Color Graphics Board Memory Mapping
Keywords: Windows
Message-ID: <2049@brchh104.bnr.ca>
Date: 21 Mar 91 21:31:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 32
Approved: Sun-Spots@rice.edu
X-Original-Date: 15 Mar 91 01:15:17 GMT
X-Sun-Spots-Digest: Volume 10, Issue 62, message 1
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu