home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / netbsd / docs / mailinglist-archive / 1993-12 / text0191.txt < prev    next >
Encoding:
Text File  |  1993-06-25  |  3.6 KB  |  84 lines

  1.  
  2. >>>>> Ty == tsarna@endicor.com (Ty Sarna) wrote:
  3.  
  4.     Ty> In article <9312072225.AA03312@paxnet.com.au>
  5.     Ty> Abeech@splat.paxnet.com.au writes:
  6. >     1. Is the internal DFx: drives supported?  If
  7. >        they are then what /dev/... are they?
  8.  
  9.     Ty> Not in the current version, and I don't know of any
  10.     Ty> drivers in development. I would hope that anyone writing
  11.     Ty> a floppy driver (or anything else) would write a message
  12.     Ty> to the list so that someone else doesn't waste time
  13.     Ty> duplicating the same work. Also, my personal wishes for a
  14.     Ty> floppy driver:
  15.  
  16. I translated floppy hardware driver code to 'C' and sent it to
  17. Markus W. a long time ago.  These drivers read/write amiga trackdisk
  18. format - you can use the disk in AmigaOS, but only with 
  19. trackdisk.device (no amigados filesystem is on the disk).  This
  20. means you can use DiskCopy to make duplicates of it....  When inserted
  21. in the drive with AmigaDOS running, you get a disk icon on the
  22. screen and the INFO command shows the disk 100% full (OS won't
  23. damage it by writing to it).  The blitter is used to decode
  24. and encode MFM, but since there is no "QBlit()" functionality in
  25. netbsd kernel, it busy waits (fix it anyhow you choose).
  26.  
  27. If anyone wishes to volunteer to make a device in the kernel from
  28. these routines, e-mail to Markus (mw@eunet.ch) and ask for the
  29. sources.
  30.  
  31.     Ty> - Work in either Amiga or PC mode so that PC disks can
  32.     Ty> also be used, with msdosfs (once its fixed to run on
  33.     Ty> bigendian machines). PC mode should be selected by a
  34.     Ty> different set of minor device numbers (0-3 Amiga, 4-7
  35.     Ty> PC).
  36.  
  37. They don't support msdos (my drivers) but I do have some msdos drivers
  38. somewhere (in assembly).  The way my routines work is as follows:
  39. You would have /dev/fd0 through /dev/fd9.  When you mount one of
  40. those devices (or simply access, actually) the drivers search in
  41. the physical drives for a floppy disk formatted with the ID 0, 1, .. 9.
  42. This scheme lets you move the floppy to any drive and the routines
  43. will find the disk.  Indeed, the routines are smart enough to
  44. allow you to move the floppy disk WHILE it is writing to it even 
  45. (no guarantee this won't damage the disk :-)  While reading, you
  46. will get 100% error free reads even if you eject/insert/eject/insert
  47. the floppy many times during the read operation.  Not so scary as
  48. AmigaDOS? :-)
  49.  
  50. The benefit of this system is that you can mount up to 10 floppies
  51. in one floppy drive.  The only issue is that when the disk is not
  52. found in the drives, you would probably want a requester like
  53. AmigaDOS has: "Please insert fd6 in any drive"...
  54.  
  55. As for MSDOS, there is mtools which reads/writes msdos under linux
  56. or netbsd for PC and also on Suns (and probably MANY other unix
  57. computers). 
  58.  
  59.     Ty> - Support HD floppies (now that I actually have one :->)
  60.     Ty> HD support should not require differnet minor numbers,
  61.     Ty> but be automatic with detection of the HD hole. (are the
  62.     Ty> low-level programming details of HD floppy drives
  63.     Ty> documented anywhere? I don't think the Hardware RKM
  64.     Ty> covers them).
  65.  
  66. I don't suspect there's much difference for the HD floppies to the
  67. software.  Perhaps only #sectors/track is the only difference :-)
  68. Also a switch in cia register (or whatever) to make the drive go
  69. half speed.
  70.  
  71. >     2. Which /dev block files represents the internal
  72. >        serial and parallel ports?
  73.  
  74.     Ty> There are no block devices for the serial and parallel
  75.     Ty> ports, only character devices (since serial and parallel
  76.     Ty> ports are naturally character-at-a-time devices).
  77.  
  78.     Ty> --
  79.     Ty> Ty Sarna "Oh, I don't know *everything*. I don't
  80.     Ty> tsarna@endicor.com even know how fish work." -- Joel,
  81.     Ty> MST3K
  82.  
  83.  
  84.