From: Chris Boot <bootc@bootc.net>
To: Eric Lammerts <eric@lammerts.org>
Cc: kernel list <linux-kernel@vger.kernel.org>,
soekris-tech@lists.soekris.com
Subject: Re: [RFC][PATCH] LED Class support for Soekris net48xx
Date: Sun, 23 Jul 2006 14:46:55 +0100 [thread overview]
Message-ID: <44C37DCF.2080205@bootc.net> (raw)
In-Reply-To: <44C2EB45.1050302@lammerts.org>
Eric Lammerts wrote:
> Chris Boot wrote:
>> I'd love to find a way of detecting a Soekris net48xx device
> > but there is no DMI or any Soekris-specific PCI devices.
>
> You could do ugly things like this:
>
> int i;
> char *bios = __va(0xf0000);
>
> for(i = 0; i < 0x10000 - 19; i++) {
> if(memcmp(bios + i, "Soekris Engineering", 19) == 0) {
> printk("soekris string found at 0x%x\n", i);
> }
> }
>
> The string "net4801" is also in there (although I'm using a 4826).
>
> If anyone knows a better way, I'd like to know it too.
Hmm, very ugly indeed! Where did you dig those offsets up from? Are they likely
to work properly in non-Soekris devices? I think just relying on people not
loading the module when not in the correct hardware is probably the best option
at the moment...
Chris
--
Chris Boot
bootc@bootc.net
http://www.bootc.net/
next prev parent reply other threads:[~2006-07-23 13:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-08 9:29 [RFC][PATCH] LED Class support for Soekris net48xx Chris Boot
2006-07-08 15:10 ` [Soekris] " Jim Cromie
2006-07-08 15:48 ` Chris Boot
2006-07-09 10:21 ` Chris Boot
2006-07-23 3:21 ` Eric Lammerts
2006-07-23 13:46 ` Chris Boot [this message]
2006-07-26 1:34 ` Eric Lammerts
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=44C37DCF.2080205@bootc.net \
--to=bootc@bootc.net \
--cc=eric@lammerts.org \
--cc=linux-kernel@vger.kernel.org \
--cc=soekris-tech@lists.soekris.com \
/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.