//==========================================================================
|
//==========================================================================
|
//
|
//
|
// include/machine/endian.h
|
// include/machine/endian.h
|
//
|
//
|
// Architecture/platform specific byte ordering support
|
// Architecture/platform specific byte ordering support
|
//
|
//
|
//==========================================================================
|
//==========================================================================
|
//####BSDCOPYRIGHTBEGIN####
|
//####BSDCOPYRIGHTBEGIN####
|
//
|
//
|
// -------------------------------------------
|
// -------------------------------------------
|
//
|
//
|
// Portions of this software may have been derived from OpenBSD or other sources,
|
// Portions of this software may have been derived from OpenBSD or other sources,
|
// and are covered by the appropriate copyright disclaimers included herein.
|
// and are covered by the appropriate copyright disclaimers included herein.
|
//
|
//
|
// -------------------------------------------
|
// -------------------------------------------
|
//
|
//
|
//####BSDCOPYRIGHTEND####
|
//####BSDCOPYRIGHTEND####
|
//==========================================================================
|
//==========================================================================
|
//#####DESCRIPTIONBEGIN####
|
//#####DESCRIPTIONBEGIN####
|
//
|
//
|
// Author(s): gthomas
|
// Author(s): gthomas
|
// Contributors: gthomas
|
// Contributors: gthomas
|
// Date: 2000-01-10
|
// Date: 2000-01-10
|
// Purpose:
|
// Purpose:
|
// Description:
|
// Description:
|
//
|
//
|
//
|
//
|
//####DESCRIPTIONEND####
|
//####DESCRIPTIONEND####
|
//
|
//
|
//==========================================================================
|
//==========================================================================
|
|
|
|
|
#ifndef _MACHINE_ENDIAN_H_
|
#ifndef _MACHINE_ENDIAN_H_
|
#define _MACHINE_ENDIAN_H_
|
#define _MACHINE_ENDIAN_H_
|
|
|
#include <cyg/hal/basetype.h>
|
#include <cyg/hal/basetype.h>
|
|
|
#if CYG_BYTEORDER == CYG_MSBFIRST
|
#if CYG_BYTEORDER == CYG_MSBFIRST
|
#define BYTE_ORDER BIG_ENDIAN
|
#define BYTE_ORDER BIG_ENDIAN
|
#else
|
#else
|
#define BYTE_ORDER LITTLE_ENDIAN
|
#define BYTE_ORDER LITTLE_ENDIAN
|
#endif
|
#endif
|
#include <sys/endian.h>
|
#include <sys/endian.h>
|
|
|
#endif // _MACHINE_ENDIAN_H_
|
#endif // _MACHINE_ENDIAN_H_
|
|
|
|
|
|
|