[ECOS] load data from floppy - floppy driver

David N. Welton davidw@dedasys.com
Thu Aug 21 12:36:00 GMT 2003


Nick Garnett <nickg@ecoscentric.com> writes:

[ Please keep me in CC's, as I'm not subscribed to -devel. ]

> > Idle thought: I wonder if it would be possible to put a
> > sectors->bytes / bytes->sectors conversion layer into a small
> > library, or if it's too specific / would be too wasteful (require
> > copying and replicating lots of memory).

> That might be the way to go. Another thought is to put it into a
> second driver layer, or into a "filesystem" that just presents raw
> access to some underlying block device. It is certainly a good idea
> to separate the low-level driver, which should work in sectors, from
> any higher level semantics we might want to layer on top of it.

I am going to go out on a limb and send you guys the floppy code that
I have created by reworking the minix floppy.c with some eCos
functionality.

It's a long ways from perfect, but my impetus to hack on it is much
less, as it does what I need.  Maybe I could beat it into better shape
with some guidance.  The big things missing are a write function, as
well as config functions if they are needed for anything.  There are
probably numerous other defects (I suspect I got some of the timing
functions wrong).  It's probably worth comparing with the original
minix driver, which is quite solid and apparently works for many
people.

That said, it does read floppies, which might be useful to someone out
there.

In any case, thanks for all the help you've given me,
-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: floppy.c
Type: text/x-csrc
Size: 50667 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-devel/attachments/20030821/ed77424b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: byte2sec.c
Type: text/x-csrc
Size: 1685 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-devel/attachments/20030821/ed77424b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: byte2sec.h
Type: text/x-chdr
Size: 245 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-devel/attachments/20030821/ed77424b/attachment-0002.bin>


More information about the Ecos-devel mailing list