delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/28/10:47:44

Message-ID: <5337D585DDD3D111996B0008C728F07DA42C25@pa00fsr01.pa.atitech.com>
From: Nick DiToro <NDiToro AT ati DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: RE: USB support for DOS
Date: Thu, 28 Sep 2000 10:41:10 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Reply-To: djgpp AT delorie DOT com

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0295A.291B98A6
Content-Type: text/plain;
	charset="iso-8859-1"

I haven't actually done this yet, but you would get the base address of the
device registers by querying the PCI bios.  When you query the BIOS, you are
looking for a device with the base class 0xC (Serial Bus Controller) and the
sub class 0x03 (USB).  Then you map the register base address, also gotten
from PCI BIOS, using DPMI.  At that point, you can read and write registers.


If this sounds like gibberish, you need to sit down for a couple of days and
read the PCI BIOS and DPMI specs.  DJ's compiler has DPMI 1.0 support built
in.  

The nice thing about USB is that the registers are standardized, so,
theoretically, you don't have to worry about writing extra code supporting
different companies' parts.  

Does anybody know if DOS "driver" code already exists somewhere for USB?
I'd like to snag some USB code myself.

-----Original Message-----
From: Martin Czamai [mailto:M DOT Czamai AT peak-system DOT com]
Sent: Thursday, September 28, 2000 6:16 AM
To: djgpp AT delorie DOT com
Subject: USB support for DOS

Hello,

is it possible to access a USB-device under DOS? If so, how?
Thanks in advance for any reply

Martin Czamai
M DOT Czamai AT peak-system DOT com


------_=_NextPart_001_01C0295A.291B98A6
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: USB support for DOS</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I haven't actually done this yet, but you would get =
the base address of the device registers by querying the PCI =
bios.&nbsp; When you query the BIOS, you are looking for a device with =
the base class 0xC (Serial Bus Controller) and the sub class 0x03 =
(USB).&nbsp; Then you map the register base address, also gotten from =
PCI BIOS, using DPMI.&nbsp; At that point, you can read and write =
registers.&nbsp; </FONT></P>

<P><FONT SIZE=3D2>If this sounds like gibberish, you need to sit down =
for a couple of days and read the PCI BIOS and DPMI specs.&nbsp; DJ's =
compiler has DPMI 1.0 support built in.&nbsp; </FONT></P>

<P><FONT SIZE=3D2>The nice thing about USB is that the registers are =
standardized, so, theoretically, you don't have to worry about writing =
extra code supporting different companies' parts.&nbsp; </FONT></P>

<P><FONT SIZE=3D2>Does anybody know if DOS &quot;driver&quot; code =
already exists somewhere for USB?&nbsp; I'd like to snag some USB code =
myself.</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Martin Czamai [<A =
HREF=3D"mailto:M DOT Czamai AT peak-system DOT com">mailto:M DOT Czamai AT peak-system DOT com=
</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Thursday, September 28, 2000 6:16 AM</FONT>
<BR><FONT SIZE=3D2>To: djgpp AT delorie DOT com</FONT>
<BR><FONT SIZE=3D2>Subject: USB support for DOS</FONT>
</P>

<P><FONT SIZE=3D2>Hello,</FONT>
</P>

<P><FONT SIZE=3D2>is it possible to access a USB-device under DOS? If =
so, how?</FONT>
<BR><FONT SIZE=3D2>Thanks in advance for any reply</FONT>
</P>

<P><FONT SIZE=3D2>Martin Czamai</FONT>
<BR><FONT SIZE=3D2>M DOT Czamai AT peak-system DOT com</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0295A.291B98A6--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019