[ECOS] Problem about writing IO device driver
Jonathan Larmour
jlarmour@redhat.com
Tue Jan 8 07:58:00 GMT 2002
HuangQiang wrote:
>
> Thanks Jifl:
> But one memory mapped IO device driver has many register need to be
> written to or read from? So each time I can call the cyg_io_read() or
> cyg_io_write() to write or read different register in one memory mapped io
> device.
If it isn't a stream (copy a chunk of characters at a time) or a block
(copy a block or blocks of data at a time) device perhaps this interface
isn't the most appropriate. Either that or you maybe just want to use the
get_config/set_config calls instead if read/write don't make sense for
that.
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