All of lore.kernel.org
 help / color / mirror / Atom feed
From: Georg Chini <georg.chini@triaton-webhosting.com>
To: sparclinux@vger.kernel.org
Subject: Re: 2.6.10-rc3-wli-1
Date: Fri, 24 Dec 2004 15:30:07 +0000	[thread overview]
Message-ID: <41CC35FF.6060004@triaton-webhosting.com> (raw)
In-Reply-To: <20041223063730.GY771@holomorphy.com>

Hello,

here it is, could not find it in rc3-bk17 as well. It adds
the pan_display function to catch switches from graphic
mode, changes the prom_name from "tcx" to "SUNW,tcx" and
adds the lines suggested by Bob Breuer.

Regards
        Georg Chini

--- linux-2.6.10-rc3/drivers/video/tcx.c        Fri Dec  3 22:52:07 2004
+++ l10rc3/drivers/video/tcx.c  Fri Dec 10 11:54:31 2004
@@ -36,6 +36,7 @@
  static int tcx_mmap(struct fb_info *, struct file *, struct vm_area_struct *);
  static int tcx_ioctl(struct inode *, struct file *, unsigned int,
                      unsigned long, struct fb_info *);
+static int tcx_pan_display(struct fb_var_screeninfo *, struct fb_info *);

  /*
   *  Frame buffer operations
@@ -45,6 +46,7 @@
         .owner                  = THIS_MODULE,
         .fb_setcolreg           = tcx_setcolreg,
         .fb_blank               = tcx_blank,
+       .fb_pan_display         = tcx_pan_display,
         .fb_fillrect            = cfb_fillrect,
         .fb_copyarea            = cfb_copyarea,
         .fb_imageblit           = cfb_imageblit,
@@ -153,6 +155,12 @@
         spin_unlock_irqrestore(&par->lock, flags);
  }

+static int tcx_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
+{
+       tcx_reset(info);
+       return 0;
+}
+
  /**
   *      tcx_setcolreg - Optional function. Sets a color register.
   *      @regno: boolean, 0 copy local, 1 get_user() function
@@ -366,6 +374,9 @@
         all->par.lowdepth = prom_getbool(sdev->prom_node, "tcx-8-bit");

         sbusfb_fill_var(&all->info.var, sdev->prom_node, 8);
+       all->info.var.red.length = 8;
+       all->info.var.green.length = 8;
+       all->info.var.blue.length = 8;

         linebytes = prom_getintdefault(sdev->prom_node, "linebytes",
                                        all->info.var.xres);
@@ -439,6 +450,7 @@
                 return;
         }

+       fb_set_cmap(&all->info.cmap, &all->info);
         tcx_init_fix(&all->info, linebytes);

         if (register_framebuffer(&all->info) < 0) {
@@ -466,7 +478,7 @@
                 return -ENODEV;

         for_all_sbusdev(sdev, sbus) {
-               if (!strcmp(sdev->prom_name, "tcx"))
+               if (!strcmp(sdev->prom_name, "SUNW,tcx"))
                         tcx_init_one(sdev);
         }



      parent reply	other threads:[~2004-12-24 15:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-23  6:37 2.6.10-rc3-wli-1 William Lee Irwin III
2004-12-23  6:37 ` 2.6.10-rc3-wli-1 William Lee Irwin III
2004-12-23 22:19 ` 2.6.10-rc3-wli-1 Georg Chini
2004-12-23 22:42 ` 2.6.10-rc3-wli-1 William Lee Irwin III
2004-12-24 14:35 ` 2.6.10-rc3-wli-1 Georg Chini
2004-12-24 14:37 ` 2.6.10-rc3-wli-1 William Lee Irwin III
2004-12-24 15:30 ` Georg Chini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41CC35FF.6060004@triaton-webhosting.com \
    --to=georg.chini@triaton-webhosting.com \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.