Hi David,

> I have an old DOS application that I want to run with FreeDOS.  The DOS
> app uses a memory stick for storage and has a custom USB driver.  The

You mean your DOS app also uses USB? Is it possible to put the
thing accessed by the DOS app on another controller than the
USB stick? Then the BIOS can do the USB stick handling... :-)

> driver is due to be retired for a variety of reasons including
> that it doesn't support modern memory sticks.

It probably does - but some modern sticks are formatted to
FAT32 or even NTFS, and most DOS kernels do not support NTFS.

Also, some USB storage drivers may fail to provide a drive
letter for FAT32 partitions on your stick as well.

> I'm aware that USBASPI.sys and DI1000DD.sys work to provide USB

I personally prefer (Adaptec?) ASPIDISK instead of DI1000DD
but actually an even easier way is to let the BIOS do the
lowlevel stuff. Then your stick looks like a normal int13
disk for DOS and it will see all FAT16 and FAT32 partitions.

> support under FreeDOS.  Can someone point me toward documentation
> for these drivers?  I'm looking for information on how to call them
> from C (although asm level docs would be fine).

How about this:

www.google.com/search?q=site%3Afd-doc.sourceforge.net+usbaspi

Nice starting point? I would not recommend using a C / ASM API,
you can use the drive letter :-p The USB driver gives you ASPI
and the second driver then checks the partitions of your stick
(or other USB disk) and gives a DOS FAT  block device  view of
the first partition that looks as if DOS would want to use it.

You can also use the drivers by Georg Potthast, they do support
FAT32 and FAT16 as far as I remember :-). His drivers are split
into one for the main USB stack and one which gives you a DOS
block device, without the ASPI step as far as I remember. The
interface of the USB stack is documented and block devices are
a very classical, documented interface concept in any DOS :-)

Eric



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to