public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Setting processor endianess for USB modules
@ 2008-04-29 17:37 Christian Eggers
  2008-04-30  8:34 ` Markus Klotzbücher
  0 siblings, 1 reply; 4+ messages in thread
From: Christian Eggers @ 2008-04-29 17:37 UTC (permalink / raw)
  To: u-boot

Hello,

I've recognized that a lot of USB code in U-Boot uses the macros
swap_16() and swap_32() which are defined in usb.h. The behaviour
of the macros is controlled by the define LITTLEENDIAN.

Is there a good reason NOT to use the macros provided in
asm/byteorder.h (as in the appropriate code in Linux-2.4 )? 

I think that switching to these functions might be useful in order
to eliminate the need to use the LITTLEENDIAN define for
specifying the byteorder. It seems that LITTLEENDIAN is not
used outside the USB code.

regards

Christian Eggers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-21 19:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29 17:37 [U-Boot-Users] Setting processor endianess for USB modules Christian Eggers
2008-04-30  8:34 ` Markus Klotzbücher
2008-05-21 18:58   ` Christian Eggers
2008-05-21 19:23     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox