🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3295

Re: Device Drivers

#3295
From: Kenneth A. Kahn
Date: Wed, 06 Jan 1993 09:40
18 lines
1244 bytes
In <13786@icarus> Rick Reitmaier writes:
>    Hi,
>
>    A question about device drivers under OS/2.
>
>    I'm currently trying to program a device driver in
> C (no assembler for me, thanks).  I've been able to figure
> out most things, except for access to the request packet's
> address.  How do I get the pointer to the packet from ES:BX
> (physical device driver reference p3-5) while in my strategy
> routine?
>

Somewhere, you're going to have to code some assembly to access the registers
like ES:BX and the ones for calling Device Help routines.  If you using a C
compiler that supports it, e.g. MS-C V6, you can use inline assembly.
Otherwise you're going to have to code some MASM routines and link them with
your C code.
Technical Details
Message-ID: <19930106.014240.726@almaden.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!PKSMRVM.VNET.IBM.COM
References: <13786@icarus>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!PKSMRVM.VNET.IBM.COM
From: KENKAHN@PKSMRVM.VNET.IBM.COM (Kenneth A. Kahn)
Message-ID: <19930106.014240.726@almaden.ibm.com>
Date: Wed, 6 Jan 93 04:40:39 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: Device Drivers
Organization: Staff of IBM Fellow - IBM Personal/370
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
X-X-From: KENKAHN@PKSMRVM.VNET.IBM.COM (Ken Kahn)
References: <13786@icarus>
Lines: 18