From: Helge Deller <deller@gmx.de>
To: linux-fbdev-devel@lists.sourceforge.net
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] Fbdev driver for IBM GXT4500P video cards
Date: Fri, 24 Nov 2006 20:13:08 +0100 [thread overview]
Message-ID: <ek7g84$93g$1@sea.gmane.org> (raw)
In-Reply-To: 17766.24132.505274.631108@cargo.ozlabs.ibm.com
Hi Paul,
Paul Mackerras wrote:
> This is an fbdev driver for the IBM GXT4500P display card found in
> some IBM System P (pSeries) machines. These cards have hardware 2D
> and 3D capabilities, but the driver does not use them; it just exports
> a dumb framebuffer.
You might try to "const"-ify a few static structs and arrays...
Helge
> +/* Indexed by DFA_PIX_* values */
> +static unsigned char watfmt[] = {
> + WAT_FMT_8BIT, WAT_FMT_16BIT_565, WAT_FMT_16BIT_1555, 0,
> +static unsigned char mdivtab[] = {
> +/* 1 */ 0x3f, 0x00, 0x20, 0x10, 0x28, 0x14, 0x2a, 0x15, 0x0a,
> +static unsigned char ndivtab[] = {
> +/* 2 */ 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0x78, 0xbc, 0x5e,
not sure about those:
> +static struct fb_bitfield eightbits = {0, 8};
> +static struct fb_bitfield nobits = {0, 0};
> +static struct fb_ops gxt4500_ops = {
> + .owner = THIS_MODULE,
> +static struct pci_device_id gxt4500_pci_tbl[] = {
> + { PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_GXT4500P,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
maybe this one:
> +static struct pci_driver gxt4500_driver = {
> + .name = "gxt4500",
and maybe more ?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
WARNING: multiple messages have this Message-ID (diff)
From: Helge Deller <deller@gmx.de>
To: linuxppc-dev@ozlabs.org
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: [PATCH] Fbdev driver for IBM GXT4500P video cards
Date: Fri, 24 Nov 2006 20:13:08 +0100 [thread overview]
Message-ID: <ek7g84$93g$1@sea.gmane.org> (raw)
In-Reply-To: 17766.24132.505274.631108@cargo.ozlabs.ibm.com
Hi Paul,
Paul Mackerras wrote:
> This is an fbdev driver for the IBM GXT4500P display card found in
> some IBM System P (pSeries) machines. These cards have hardware 2D
> and 3D capabilities, but the driver does not use them; it just exports
> a dumb framebuffer.
You might try to "const"-ify a few static structs and arrays...
Helge
> +/* Indexed by DFA_PIX_* values */
> +static unsigned char watfmt[] = {
> + WAT_FMT_8BIT, WAT_FMT_16BIT_565, WAT_FMT_16BIT_1555, 0,
> +static unsigned char mdivtab[] = {
> +/* 1 */ 0x3f, 0x00, 0x20, 0x10, 0x28, 0x14, 0x2a, 0x15, 0x0a,
> +static unsigned char ndivtab[] = {
> +/* 2 */ 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0x78, 0xbc, 0x5e,
not sure about those:
> +static struct fb_bitfield eightbits = {0, 8};
> +static struct fb_bitfield nobits = {0, 0};
> +static struct fb_ops gxt4500_ops = {
> + .owner = THIS_MODULE,
> +static struct pci_device_id gxt4500_pci_tbl[] = {
> + { PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_GXT4500P,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
maybe this one:
> +static struct pci_driver gxt4500_driver = {
> + .name = "gxt4500",
and maybe more ?
next prev parent reply other threads:[~2006-11-24 19:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-24 2:51 [PATCH] Fbdev driver for IBM GXT4500P video cards Paul Mackerras
2006-11-24 19:13 ` Helge Deller [this message]
2006-11-24 19:13 ` Helge Deller
2006-12-07 6:12 ` Paul A. Clarke
2006-12-07 6:12 ` [Linux-fbdev-devel] " Paul A. Clarke
2006-12-07 21:50 ` Paul Mackerras
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='ek7g84$93g$1@sea.gmane.org' \
--to=deller@gmx.de \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linuxppc-dev@ozlabs.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.