This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem about writing IO device driver
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: HuangQiang <jameshq at liverpool dot ac dot uk>
- Cc: eCos <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 08 Jan 2002 15:58:10 +0000
- Subject: Re: [ECOS] Problem about writing IO device driver
- Organization: Red Hat UK Ltd.
- References: <KIEBICHBADHFCLGCKOPDEEMNCKAA.jameshq@liv.ac.uk>
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