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]

eCos cyg/io/devtab.h typos?


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,                                                \
};


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