🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

OS/2 device drivers

#2522
From: Antti Kirmanen
Date: Tue, 09 Apr 1991 15:19
18 lines
1104 bytes
I'm currently trying to write a device driver for OS/2.
My problem is, that I should use inp and outp functions to
communicate with a port. OS/2 programmers reference manual
says, that I should use DosPortAccess() function call but then ...
Program crashes allways in the first outp() or inp() call.
I'm using Microsoft C 6.0 with OS/2 1.1

Can anyone help me. A simple example would be great.
Thanks in advance....

Please e-mail: cale@kannel.lut.fi

-- 
       __________________________________________________
       : Antti Kirmanen    internet: cale@kannel.lut.fi :
       : Laserkatu  2 E 7  53850 LPR      tel 953-20079 : 
       --------------------------------------------------
Technical Details
Message-ID: <1991Apr09.151935.19325@lut.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!news.funet.fi!kannel!cale

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!news.funet.fi!kannel!cale
From: cale@lut.fi (Antti Kirmanen)
Newsgroups: comp.os.os2.programmer
Subject: OS/2 device drivers
Message-ID: <1991Apr09.151935.19325@lut.fi>
Date: 9 Apr 91 15:19:35 GMT
Organization: Lappeenranta University of Technology, Finland
Lines: 18