This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Redboot driver vs eCos driver
Nick Garnett wrote:
>
> As for block devices, I added block IO operations to the device driver
> table entries some time ago.
That API is alright for polled I/O, but is likely to be highly inefficient
for asynchronous or DMA'd read/writes. Particularly since you don't know
the alignment constraints for DMA; or the number of words you can read
quickly at once.
Plus we need somewhere we can add a generic buffer cache in future.
I would have assumed a separate API is needed. Compare with
/usr/include/linux/blkdev.h for example.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine