From: Stephane Jourdois <stephane@tuxfinder.org>
To: Jeff Garzik <jgarzik@mandrakesoft.com>
Cc: Massimo Dal Zotto <dz@debian.org>, LKLM <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] SMM BIOS on Dell i8100
Date: Mon, 5 Nov 2001 17:35:43 +0100 [thread overview]
Message-ID: <20011105173543.A17203@emeraude.kwisatz.net> (raw)
In-Reply-To: <20011105100346.A1511@emeraude.kwisatz.net> <3BE6B869.D79E93B1@mandrakesoft.com>
In-Reply-To: <3BE6B869.D79E93B1@mandrakesoft.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 2142 bytes --]
On Mon, Nov 05, 2001 at 11:03:53AM -0500, Jeff Garzik wrote:
> Stephane Jourdois wrote:
> > I've got a Dell Inspiron 8100, which seems to differ slightly from
> > i8000. Here is a patch that fixes that. Please do not hesitate to ask me
> > to test some new code or anything on my laptop.
> Has this been tested in I8000? You are changing a lot of magic numbers
> in the code, and noone but you/Massimo know whether that is ok or not...
I presume it works.
Let me explain why while looking at parts of my patch :
-#define I8K_FN_NONE 0x08
-#define I8K_FN_UP 0x09
-#define I8K_FN_DOWN 0x0a
-#define I8K_FN_MUTE 0x0c
+#define I8K_FN_NONE 0x00
+#define I8K_FN_UP 0x01
+#define I8K_FN_DOWN 0x02
+#define I8K_FN_MUTE 0x04
In fact, i8100 returns respectively 1, 2 and 4.
i8100 returns 0x09, 0x0a, and 0x0c (see Massimo's code).
Then we can take the 4 lighter bits, and test them without testing
the 4 greater bits which value are 0x08 on i8000 and 0x00 on i8100.
hence :
- switch ((regs.eax & 0xff00) >> 8) {
+ switch ((regs.eax & 0x0700) >> 8) {
a different version (which I didn't choose), would be to keep Massimo's
defines, and test (((regs.eax | 0x0800 ) & 0xff00) >> 8). But that's
more operations, then not the better solution :-)
As the drivers disks provided by Dell (windows drivers of course) are
the same which works on i8000 and i8100, I suppose that they test only
the 4 lighter bits here
Of course, as Massismo's told me a few hours ago, this is a beta version
of this code, and it supports at least Massimo's i8000 and now my i8100.
We should wait a few days for feed-back from lklm readers, then
Massimo's intents are to implement a more modular code. That's a good
intent, isn't it ? :-)
Anyway, you'll agree with me that 2 laptops is better than one :-)
Thanks for your answer.
Stéphane.
--
/// Stephane Jourdois /"\ ASCII RIBBON CAMPAIGN \\\
((( Ingénieur développement \ / AGAINST HTML MAIL )))
\\\ 6, av. de la Belle Image X ///
\\\ 94440 Marolles en Brie / \ +33 6 8643 3085 ///
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
next prev parent reply other threads:[~2001-11-05 16:41 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-05 9:03 Stephane Jourdois
2001-11-05 16:03 ` Jeff Garzik
2001-11-05 16:35 ` Stephane Jourdois [this message]
2001-11-05 23:17 ` Juri Haberland
2001-11-06 12:24 ` Stephane Jourdois
2001-11-06 16:45 ` Massimo Dal Zotto
2001-11-06 17:09 ` Juri Haberland
2001-11-06 22:46 ` Marcel J.E. Mol
2001-11-07 9:44 ` Stephane Jourdois
2001-11-07 10:01 ` Marcel J.E. Mol
2001-11-07 10:13 ` Stephane Jourdois
2001-11-07 14:21 ` Massimo Dal Zotto
2001-11-07 10:27 ` Massimo Dal Zotto
2001-11-07 10:29 ` David Woodhouse
[not found] ` <20011105130954.A24310@joshua.mesa.nl>
2001-11-05 17:01 ` Stephane Jourdois
2001-11-05 17:20 ` Marcel J.E. Mol
2001-11-05 17:37 ` Stephane Jourdois
2001-11-05 21:52 ` Marcel J.E. Mol
2001-11-05 19:00 ` Georg Nikodym
2001-11-06 13:58 ` Stephane Jourdois
2001-11-08 18:14 Massimo Dal Zotto
2001-11-09 12:34 ` Stephane Jourdois
2001-11-09 14:57 ` Massimo Dal Zotto
[not found] <12948.1005329220@redhat.com>
2001-11-09 18:57 ` Massimo Dal Zotto
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=20011105173543.A17203@emeraude.kwisatz.net \
--to=stephane@tuxfinder.org \
--cc=dz@debian.org \
--cc=jgarzik@mandrakesoft.com \
--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®