X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fintel_fapi%2Fnr5g_fapi_common_types.h;fp=src%2Fintel_fapi%2Fnr5g_fapi_common_types.h;h=f993c36ff415e64779fb9520015daa5c98bd7924;hb=15cfc9c3834a5c77b0cfbbe8b6cb0c576db140e6;hp=0000000000000000000000000000000000000000;hpb=2bdf69224c9ee6e37195d6000d28271175a8056e;p=o-du%2Fl2.git diff --git a/src/intel_fapi/nr5g_fapi_common_types.h b/src/intel_fapi/nr5g_fapi_common_types.h new file mode 100644 index 000000000..f993c36ff --- /dev/null +++ b/src/intel_fapi/nr5g_fapi_common_types.h @@ -0,0 +1,53 @@ +/****************************************************************************** +* +* Copyright (c) 2019 Intel. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*******************************************************************************/ +#ifndef _NR5G_FAPI_COMMON_TYPES_H_ +#define _NR5G_FAPI_COMMON_TYPES_H_ + +#ifndef TRUE +/** TRUE = 1 */ +#define TRUE 1 +#endif /* #ifndef TRUE */ + +#ifndef FALSE +/** FALSE = 0 */ +#define FALSE 0 +#endif /* #ifndef FALSE */ + +#ifndef SUCCESS +/** SUCCESS = 0 */ +#define SUCCESS 0 +#endif /* #ifndef SUCCESS */ + +#ifndef FAILURE +/** FAILURE = 1 */ +#define FAILURE 1 +#endif /* #ifndef FAILURE */ + +#define RUP512B(x) (((x)+511)&(~511)) +#define RUP256B(x) (((x)+255)&(~255)) +#define RUP128B(x) (((x)+127)&(~127)) +#define RUP64B(x) (((x)+63)&(~63)) +#define RUP32B(x) (((x)+31)&(~31)) +#define RUP16B(x) (((x)+15)&(~15)) +#define RUP8B(x) (((x)+7)&(~7)) +#define RUP4B(x) (((x)+3)&(~3)) +#define RUP2B(x) (((x)+1)&(~1)) + +//#define UNUSED(x) (void)(x) + +#endif // _NR5G_FAPI_COMMON_TYPES_H_