Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!uunet!dialogic!gerry From: gerry@dialogic.com (Gerry Lachac) Newsgroups: comp.os.os2.misc Subject: Re: MicroChannel Determination in OS/2 Message-ID: <1991Apr11.220447.25438@dialogic.com> Date: 11 Apr 91 22:04:47 GMT References: <6634@gssc.UUCP> Distribution: usa Organization: Dialogic Corporation Lines: 37 In article <6634@gssc.UUCP> timo@gssc.UUCP (Timo Wilson) writes: >I am currently involved in writing a small OS/2 bound application that must >determine if it is running on a MicroChannel or ISA bus. The application >does have one segment that has IOPL privilages. I can determine this under >DOS using INT 15, Ah=0xC0, but can't use it in OS/2. Has anyone else done >anything like this in OS/2? > Good luck :-) Seriously, I had to do this for a project I was working on and I have three possible methods for you: 1 - Use DosDevConfig() and grab the model and sub-model bytes. Then compare these to the IBM published bytes for the PS/2's. Of course when they come out with a new PS/2 you have a problem. 2 - Try using an ABIOS call. If it works, you are on a PS/2, if not, an AT class machine. 3 - If you have a known piece of hardware in the machine, with a known POS ID, you can look at all the PS/2 slots and verify that the board is in the machine. I have personally used methods 1 and 3. Number 2 was suggested to me by someone, but I have never tried it. -gerry -- uunet!dialogic!gerry | "Even a dead plant turns | Dialogic Corporation OR | over a new leaf | 300 Littleton Rd gerry@dialogic.UUCP | when the wind blows." | Parsippany, NJ 07054 | | (201)334-8450