This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem about writing IO device driver


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]