Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753213Ab1EDUek (ORCPT ); Wed, 4 May 2011 16:34:40 -0400 Received: from mail.savoirfairelinux.com ([209.172.62.77]:56361 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751214Ab1EDUei (ORCPT ); Wed, 4 May 2011 16:34:38 -0400 Content-Type: text/plain; charset=UTF-8 From: Vivien Didelot To: Alan Cox Cc: linux-kernel , Jonas Fonseca , platform-driver-x86 , linux-serial , lm-sensors Subject: Re: [RFC 1/5] platform-drivers-x86: add support for Technologic Systems TS-5xxx detection In-reply-to: <20110504162954.7ecf5b5e@lxorguk.ukuu.org.uk> References: <1304115712-5299-1-git-send-email-vivien.didelot@savoirfairelinux.com> <1304115712-5299-2-git-send-email-vivien.didelot@savoirfairelinux.com> <20110430110705.5ca3376b@lxorguk.ukuu.org.uk> <1304520382-sup-3361@sfl> <20110504162954.7ecf5b5e@lxorguk.ukuu.org.uk> Date: Wed, 04 May 2011 16:34:33 -0400 Message-Id: <1304537667-sup-2171@sfl> User-Agent: Sup/git Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 29 Excerpts from Alan Cox's message of 2011-05-04 11:29:54 -0400: > > It is possible to make a BIOS call (Int 15h / Function B000h) to get > > board information, like the manufacturer ("TS"). It should be a safer > > way to check if we are on a Technologic Systems board. a intcall(0x15, > > &ireg, &oreg) should do the trick to check the platform, before checking > > the SBC ID. What do you think? > > And that goes to 'How you do yo know it's safe to call INT 15 0xB000 - > especially as we are in 32bit mode and the BIOS is 16bit so you have to > call it very early meaning its a great way to make something else not > boot. > > Does the board not support anything sane like DMI ? > > Alan I've looked at that, and the board doesn't support DMI. Elements we have are the processor (i.e. AMD ElanSC520), the BIOS, maybe the memory and PCI bus layouts... Have you got another idea how to get information in a safe way? Regards, Vivien. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/