From owner-freebsd-hackers Wed Jul 30 22:02:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA03316 for hackers-outgoing; Wed, 30 Jul 1997 22:02:24 -0700 (PDT) Received: from sendero-ppp.i-connect.net (sendero-ppp.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id WAA03311 for ; Wed, 30 Jul 1997 22:02:21 -0700 (PDT) Received: (qmail 12008 invoked by uid 1000); 31 Jul 1997 05:02:35 -0000 Message-ID: X-Mailer: XFMail 1.2-alpha [p0] on FreeBSD X-PRIORITY: 2 (High) Priority: urgent Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 30 Jul 1997 22:02:35 -0700 (PDT) Organization: Atlas Telecom From: Simon Shapiro To: freebsd-hackers@freebsd.org Subject: (mainly CMOS) - howto? Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi Y'all, I need to have the followinf struct filled up with sane information. Other than inb and outb to the BIOS registers, how do I get this data? typedef struct dpt_sysinfo { u_int8_t drive0CMOS; /* CMOS Drive 0 Type */ u_int8_t drive1CMOS; /* CMOS Drive 1 Type */ u_int8_t numDrives; /* 0040:0075 contents */ u_int8_t processorFamily; /* i386 vs. Alpha, etc. */ u_int8_t processorType; /* {3,4,5,6}86 */ u_int8_t smartROMMajorVersion; /* I know that :-) */ u_int8_t smartROMMinorVersion; /* ... and that... */ u_int8_t smartROMRevision; /* ... and even that */ u_int16_t flags; /* Forget this one */ u_int16_t conventionalMemSize; /* in KB */ u_int32_t extendedMemSize /* in KB */ u_int32_t osType; /* I think I know this one */ u_int8_t osMajorVersion; u_int8_t osMinorVersion; /* The OS version */ u_int8_t osRevision; u_int8_t osSubRevision; u_int8_t busType; /* I can guess this one */ u_int8_t pad[3]; /* This one is easy */ driveParam_T drives[16]; /* Do not worry about these... */ */ } dpt_sysinfo_t; Thanx a million (well, 17, at least :-) Simon