Re: [RFC][PATCH] LED Class support for Soekris net48xx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
[email protected]
http://www.bootc.net/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux