[ECOS] Redboot driver vs eCos driver

Jonathan Larmour jlarmour@redhat.com
Fri Oct 12 04:56:00 GMT 2001


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



More information about the Ecos-discuss mailing list