[comp.sys.ibm.pc] Identifying a Micro-channel machine?

jmv@sppy00.UUCP (Jim Vickroy) (05/23/89)

HELP!

I need to be able to identify an IBM PS/2 Models 50, 60, 80 (microchannel
machines) from a program. I've looked at the machine ID byte on a 60 and
it looks like an AT (80286) to the program. I need something fairly reliable.

Thanks in advance....

jim
--
==============================================================================
:::: ::: ::  ::   :    :   Jim Vickroy
|OC| ||| ||  ||   |    |   Technical Services Department
|LC| ||| ||  ||   |    |   Online Computer Library Center, Inc.
:::: ::: ::  ::   :    :   Dublin, Ohio
------------------------------------------------------------------------------
UUCP:    {att|pyramid|killer}!osu-cis!sppy00!jmv  
domain:	 jmv@sppy00.uucp
USSNAIL: 6565 Frantz Rd., Dublin, Ohio 43017-0702
------------------------------------------------------------------------------
"Hey, wow man ... pooby shooby"                                            -cm
==============================================================================

jxh@cup.portal.com (Jim - Hickstein) (05/25/89)

> HELP!

> I need to be able to identify an IBM PS/2 Models 50, 60, 80 (microchannel
> machines) from a program. I've looked at the machine ID byte on a 60 and
> it looks like an AT (80286) to the program. I need something fairly reliable.

You need to do an INT 15H, AH=0C0H, the "Get System Environment" call.
The following is Copyright (C) 1988 by Ray Duncan, from the "IBM ROM BIOS
Programmer's Quick Reference" by Microsoft Press.  Hint: buy the book.

Int 15H Function C0H	[AT] [PS/2]
Get System Environment

Returns a pointer to a table containing various information about the system
configuration.

Call with: AH=C0H

Returns: ES:BX = segment:offset of configuration table (see Notes)

Notes:  The format of the system configuration table is as follows:
Byte(s)	Contents
00-01H	length of table in bytes
02H	system model (see following Note)
03H	system submodel (see following Note)
04H	BIOS revision level
05H	configuration flags:
	Bit	Significance (if set)
	7	DMA channel 3 used
	6	slave 8259 present (cascaded IRQ2)
	5	real-time clock available
	4	keyboard intercept (Int 15H Function 4FH) available
	3	Wait for External Event is available
	2	extended BIOS data area allocated
	1	Micro Channel implemented
	0	reserved
06H-09H	reserved

The system model and type bytes are assigned as follows:
Machine	Model	Submodel
PC	FFH
PC/XT	FEH
PC/XT	FBH	00H or 01H
PCjr	FDH
PC/AT	FCH	00H or 01H
PC/XT-286 FCH	02H
PC Convertible F9H
PS/2-30	FAH	00H
PS/2-50	FCH	04H
PS/2-60	FCH	05H
PS/2-80	F8H	00H or 01H

*** END OF COPYRIGHTED MATERIAL

That ought to do the trick.  Buy the book.  You want me to get in trouble?

-Jim Hickstein
OS/2 PMSDK Masochists Group :-)
VSAT Systems, Inc.
San Jose, CA
jxh@cup.portal.com
...!sun!portal!cup.portal.com!jxh