From: Andreas Oberritter <obi@saftware.de>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] recognize ATI M3 & M4 video bios on Dell notebooks
Date: 23 Nov 2002 09:05:29 +0100 [thread overview]
Message-ID: <1038038729.13725.6.camel@shiva> (raw)
Hi,
This patch makes aty128fb find the video bios on a Latitude C600 (M3)
and Inspiron 8000 (M4).
If you reply, then please CC to me. I am not subscribed to the lkml.
Regards,
Andreas
diff -u -r1.26 aty128fb.c
--- drivers/video/aty128fb.c 2002/11/04 18:51:29 1.26
+++ drivers/video/aty128fb.c 2002/11/23 07:46:58
@@ -2134,9 +2134,12 @@
char *rom_base;
char *rom;
int stage;
- int i;
+ int i,j;
char aty_rom_sig[] = "761295520"; /* ATI ROM Signature */
- char R128_sig[] = "R128"; /* Rage128 ROM identifier */
+ char *R128_sig[] = {
+ "R128", /* Rage128 ROM identifier */
+ "128b"
+ };
for (segstart=0x000c0000; segstart<0x000f0000; segstart+=0x00001000) {
stage = 1;
@@ -2167,10 +2170,14 @@
/* ATI signature found. Let's see if it's a Rage128 */
for (i = 0; (i < 512) && (stage != 4); i++) {
- if (R128_sig[0] == *rom)
- if (strncmp(R128_sig, rom,
- strlen(R128_sig)) == 0)
- stage = 4;
+ for(j = 0;j < sizeof(R128_sig)/sizeof(char *);j++) {
+ if (R128_sig[j][0] == *rom)
+ if (strncmp(R128_sig[j], rom,
+ strlen(R128_sig[j])) == 0) {
+ stage = 4;
+ break;
+ }
+ }
rom++;
}
if (stage != 4) {
next reply other threads:[~2002-11-23 7:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-23 8:05 Andreas Oberritter [this message]
2002-12-04 22:20 ` James Simmons
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=1038038729.13725.6.camel@shiva \
--to=obi@saftware.de \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®