Date: Wed, 30 Jul 1997 22:02:35 -0700 (PDT) From: Simon Shapiro <Shimon@i-Connect.Net> To: freebsd-hackers@freebsd.org Subject: (mainly CMOS) - howto? Message-ID: <XFMail.970730220235.Shimon@i-Connect.Net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970730220235.Shimon>
