From owner-freebsd-hackers Sat Aug 2 02:02:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA11843 for hackers-outgoing; Sat, 2 Aug 1997 02:02:14 -0700 (PDT) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id CAA11838 for ; Sat, 2 Aug 1997 02:02:07 -0700 (PDT) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0wua4Y-000o8fC; Sat, 2 Aug 97 11:02 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Sat, 2 Aug 1997 09:49:51 +0200 (MET DST) (Smail-3.2.0.91 1997-Jan-14 #2 built 1997-Feb-8) Received: by bert.kts.org via sendmail with stdio id for FreeBSD-Hackers@FreeBSD.ORG; Sat, 2 Aug 1997 09:43:12 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: Re: Kernel howto, Second Request In-Reply-To: from Simon Shapiro at "Aug 1, 97 01:00:25 pm" To: Shimon@i-Connect.Net (Simon Shapiro) Date: Sat, 2 Aug 1997 09:43:12 +0200 (CEST) Cc: FreeBSD-Hackers@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Simon Shapiro wrote: > How do I find the following, from a device driver? > > Drive Type in CMOS Drive 0 > > Drive Type in CMOS Drive 1 > > Number of drives (in CMOS location 40:75 This can be found in the bios equipment byte, you can get this by calling rtcin(RTC_EQUIPMENT) and decode the result according to a bios ref manual. hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe There is a difference between an open mind and a hole in the head