On 14 Dec 1999, Tomas Berndtsson wrote:
> "Petr Vandrovec Ing. VTEI" <[EMAIL PROTECTED]> writes:
> > On 14 Dec 99 at 17:15, Tomas Berndtsson wrote:
> > > The first problem was that cgsix doesn't support changing resolution;
> > > it produced an error, because every ggi-demo seemed to set some
> > > resolution. The cgsix is set to 1152x900x8.
> > That's a problem. So do not run demos ;-) If your display supports
> > only limited functionality, you'll get only limited functionality
> > from libraries.
> 
> Yes, but maybe the library shouldn't exit completely. The cgsix driver
> gives error no matter what resolution you try to set with the ioctl,
> so even if you set 1152x900x8, it will fail. 

It must succeed for the 1152x900x8 you are using. If not, it's a bug in he CG6
driver.

> > > priv->fb_ptr = mmap(NULL, priv->mmap_size, PROT_READ | priv->PROT_WRITE,
> > >                     MAP_SHARED, LIBGGI_FD(vis), 0);
> > > This will not work on the cgsix, because it needs an offset of
> > > 0x70016000 when mmapping the display. Similar, but other values on
> > > other cards. I think cgthree needs offset 0x04000000, although I
> > You are not serious, are you? mmapping on /dev/fb is DEFINED that at
> > offset zero there is framebuffer with length found in fix.smem_len.
> > Immediately after that there is mmio region with length fix.mmio.len.
> > (maybe you should add PAGE_ALIGN() around fix.*_len values; but driver
> > should report PAGE_ALIGNed values to userspace).
> > I see no notice about smem_start, about 0x70016000 and so on in that
> > sentece... You should fix cgsix, I think (are other tools (fbtv) able
> > to find your videomemory?).
> 
> I forward this to the sparclinux list too. :)
> 
> At least I have to use that offset in oFBis to mmap the display on the
> cgsix. I got the values from the XSun X server. I can't try fbtv right
> now.
> 
> Maybe this is a bug in the sparc kernel?

I think they did this to make it compatible with Xsun.

Gr{oetje,eeting}s,
--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- [EMAIL PROTECTED]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds

Reply via email to