X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Fsource%2Finclude%2Fnr5g_fapi_common_types.h;fp=fapi_5g%2Fsource%2Finclude%2Fnr5g_fapi_common_types.h;h=9b8a279243b7c1f86f02245d2766e822a4b5251e;hp=0000000000000000000000000000000000000000;hb=9d66fca5c45c8b3e0d6eab6d51a90c8e9d2614dc;hpb=2fbf70096f64af622da983e88c5a64e90ad9bdbd diff --git a/fapi_5g/source/include/nr5g_fapi_common_types.h b/fapi_5g/source/include/nr5g_fapi_common_types.h new file mode 100644 index 0000000..9b8a279 --- /dev/null +++ b/fapi_5g/source/include/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_