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: KS32C5000 ethernet driver endianess


Chris Garry wrote:
As pointed out by Neil Hibberd, the KS32C5000 ethernet driver is writtten
for big-enian mode.  The changes for little-endian mode are simple, but only
needed for targets running in little-endian mode.

Should I update the driver in such a way that the changes are only made when
CYGINT_HAL_ARM_BIGENDIAN is set to 0?
Yes. Or better still, test (CYG_BYTEORDER == CYG_LSBFIRST) which will mean less changes if this ever gets used with a non-ARM core.

Jifl
--
eCosCentric http://www.eCosCentric.com/ <info@eCosCentric.com>
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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