This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
eCos cyg/io/devtab.h typos?
- To: "'eCos'" <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] eCos cyg/io/devtab.h typos?
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Tue, 12 Jun 2001 10:22:15 -0600
- Organization: Extreme Engineering
I'm looking at the code below from the devtab.h file starting around
line 113. Shouldn't the cyg_devio_bwrite and cyg_devio_bread be
switched between the two macros? I mean doesn't cyg_devio_bwrite and
cyg_devio_bread stand for block write/read respectively, and not
character write/read respectively? If so, what are the block read/write
doing in a char table and visaversa in the block table?
#define
CHAR_DEVIO_TABLE(_l,_write,_read,_select,_get_config,_set_config) \
cyg_devio_table_t _l = { \
_write, \
_read, \
cyg_devio_bwrite, \
cyg_devio_bread, \
_select, \
_get_config, \
_set_config, \
};
#define
BLOCK_DEVIO_TABLE(_l,_bwrite,_bread,_select,_get_config,_set_config)
\
cyg_devio_table_t _l = { \
cyg_devio_cwrite, \
cyg_devio_cread, \
_bwrite, \
_bread, \
_select, \
_get_config, \
_set_config, \
};