Message-ID: <5337D585DDD3D111996B0008C728F07DA42C25@pa00fsr01.pa.atitech.com> From: Nick DiToro To: "'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) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0295A.291B98A6" 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 RE: USB support for DOS

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--