🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #167

HELP: OS/2 Device Driver/ASPI Interface

#167
From: Sundar Kingsley
Date: Thu, 04 Apr 1996 00:00
24 lines
1847 bytes

I have a simple OS/2 device driver and an application that
scans a SCSI adapter for devices on OS/2 warp.
These were taken straight out of the Adaptec software developers' kit
OS/2 section. I do not have any experience writing device drivers
and little experience programming on OS/2. 

The driver(16bit) was compiled using Microsoft 6.0 and the application(32bit) 
was compiled using CSet 2.1 from IBM. The driver loads on boot up and the
adapter INQUIRY and GETDEVICE scsi commands issued through DosDevIOCtl
calls work fine, but the scsi EXECUTE command with an inquiry on the
scsi devices through a DosDevIOCtl call returns with an error 
INVALID PARAMETER (Error No 87). What am I missing here? Any help
or suggestions are welcome.

If the application is compiled using Microsoft 6.0 and the corresponding
DosDevIOCtl call is used, the EXECUTE command works fine. We need our
applications to be 32 bit though.

Email replies to spking@netcom.com is appreciated. Thank you.


Sundar
Technical Details
Message-ID: <spkingDpBIEv.JCy@netcom.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1049cc,f573c597df64d12e,start
X-Google-Attributes: gid1049cc,public
X-Google-Thread: 10ee4f,f573c597df64d12e,start
X-Google-Attributes: gid10ee4f,public
X-Google-Thread: 10cd94,f573c597df64d12e,start
X-Google-Attributes: gid10cd94,public
X-Google-Thread: 11307a,f573c597df64d12e,start
X-Google-Attributes: gid11307a,public
From: spking@netcom.com (Sundar Kingsley)
Subject: HELP: OS/2 Device Driver/ASPI Interface
Date: 1996/04/04
Message-ID: <spkingDpBIEv.JCy@netcom.com>
X-Deja-AN: 145723477
sender: spking@netcom3.netcom.com
organization: NETCOM On-line Communication Services (408 261-4700 guest)
followup-to: poster
keywords: Device, Driver, ASPI
newsgroups: comp.os.os2.programmer.misc,comp.os.os2.programmer.tools,alt.org.team-os2,bit.listserv.os2-l