Message ID | 1471621143-7992-1-git-send-email-christophe.milard@linaro.org |
---|---|
State | Superseded |
Headers | show |
This patch is an incorrect transcription of my earlier fix patch http://patches.opendataplane.org/patch/6543/ On Fri, Aug 19, 2016 at 10:39 AM, Christophe Milard < christophe.milard@linaro.org> wrote: > mostly to keep the symmetry with the API side > > Signed-off-by: Christophe Milard <christophe.milard@linaro.org> > --- > include/odp/drv/spec/byteorder.h | 3 +++ > platform/linux-generic/include/odp/drv/plat/byteorder_types.h | 6 +++++- > 2 files changed, 8 insertions(+), 1 deletion(-) > > diff --git a/include/odp/drv/spec/byteorder.h b/include/odp/drv/spec/ > byteorder.h > index d3f5d7e..bf363f5 100644 > --- a/include/odp/drv/spec/byteorder.h > +++ b/include/odp/drv/spec/byteorder.h > @@ -38,6 +38,9 @@ extern "C" { > * > * @def ODPDRV_BYTE_ORDER > * Selected byte order > + * > + * @def ODPDRV_BITFIELD_ORDER > + * Selected bitfield order > */ > > /** > diff --git a/platform/linux-generic/include/odp/drv/plat/byteorder_types.h > b/platform/linux-generic/include/odp/drv/plat/byteorder_types.h > index cb7aec2..9785d04 100644 > --- a/platform/linux-generic/include/odp/drv/plat/byteorder_types.h > +++ b/platform/linux-generic/include/odp/drv/plat/byteorder_types.h > @@ -50,11 +50,15 @@ extern "C" { > #define ODPDRV_BIG_ENDIAN 0 > #define ODPDRV_BYTE_ORDER ODPDRV_LITTLE_ENDIAN > #define ODPDRV_LITTLE_ENDIAN_BITFIELD > Should be #define ODPDRV_LITTLE_ENDIAN_BITFIELD 1 here > + #define ODPDRV_BIG_ENDIAN_BITFIELD 0 > + #define ODPDRV_BITFIELD_ORDER > ODPDRV_LITTLE_ENDIAN_BITFIELD > #else > #define ODPDRV_LITTLE_ENDIAN 0 > #define ODPDRV_BIG_ENDIAN 1 > - #define ODPDRV_BYTE_ORDER ODP_BIG_ENDIAN > + #define ODPDRV_BYTE_ORDER ODPDRV_BIG_ENDIAN > #define ODPDRV_BIG_ENDIAN_BITFIELD > Should be #define ODPDRV_LITTLE_ENDIAN_BITFIELD 0 here > + #define ODPDRV_BIG_ENDIAN_BITFIELD 1 > + #define ODPDRV_BITFIELD_ORDER ODPDRV_BIG_ENDIAN_BITFIELD > #endif > > typedef uint16_t __odpdrv_bitwise odpdrv_u16le_t; > -- > 2.7.4 > >
diff --git a/include/odp/drv/spec/byteorder.h b/include/odp/drv/spec/byteorder.h index d3f5d7e..bf363f5 100644 --- a/include/odp/drv/spec/byteorder.h +++ b/include/odp/drv/spec/byteorder.h @@ -38,6 +38,9 @@ extern "C" { * * @def ODPDRV_BYTE_ORDER * Selected byte order + * + * @def ODPDRV_BITFIELD_ORDER + * Selected bitfield order */ /** diff --git a/platform/linux-generic/include/odp/drv/plat/byteorder_types.h b/platform/linux-generic/include/odp/drv/plat/byteorder_types.h index cb7aec2..9785d04 100644 --- a/platform/linux-generic/include/odp/drv/plat/byteorder_types.h +++ b/platform/linux-generic/include/odp/drv/plat/byteorder_types.h @@ -50,11 +50,15 @@ extern "C" { #define ODPDRV_BIG_ENDIAN 0 #define ODPDRV_BYTE_ORDER ODPDRV_LITTLE_ENDIAN #define ODPDRV_LITTLE_ENDIAN_BITFIELD + #define ODPDRV_BIG_ENDIAN_BITFIELD 0 + #define ODPDRV_BITFIELD_ORDER ODPDRV_LITTLE_ENDIAN_BITFIELD #else #define ODPDRV_LITTLE_ENDIAN 0 #define ODPDRV_BIG_ENDIAN 1 - #define ODPDRV_BYTE_ORDER ODP_BIG_ENDIAN + #define ODPDRV_BYTE_ORDER ODPDRV_BIG_ENDIAN #define ODPDRV_BIG_ENDIAN_BITFIELD + #define ODPDRV_BIG_ENDIAN_BITFIELD 1 + #define ODPDRV_BITFIELD_ORDER ODPDRV_BIG_ENDIAN_BITFIELD #endif typedef uint16_t __odpdrv_bitwise odpdrv_u16le_t;
mostly to keep the symmetry with the API side Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- include/odp/drv/spec/byteorder.h | 3 +++ platform/linux-generic/include/odp/drv/plat/byteorder_types.h | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) -- 2.7.4