2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @brief \~english This file contains declaration of common enum and structures for resm library
21 /** @addtogroup BaseSystem
24 /** @addtogroup system_service
28 /** @addtogroup resource_manager
29 * @ingroup system_service
32 #ifndef RESOURCE_MANAGER_SERVER_INCLUDE_SYSTEM_SERVICE_RESM_TYPE_H_
33 #define RESOURCE_MANAGER_SERVER_INCLUDE_SYSTEM_SERVICE_RESM_TYPE_H_
35 #include <agl_thread.h>
37 #define NTFY_ResourceMgr_Availability MN_SS_RESOURCEMGR"/Availability"
39 #define RESM_ERR_t int32_t
41 #define RESM_E_PAR (-1)
42 #define RESM_E_NG (-2)
44 // Event flags (bit pattern)
45 #define RESM_EV_t uint32_t
46 #define RESM_EV_NOP (0x00)
47 #define RESM_EV_MEM (0x01)
48 #define RESM_EV_NAND_STATUS (0x02)
50 #define RESM_RSV_t int32_t
53 RESM_NAND_WRITE_ENABLE = 0,
54 RESM_NAND_WRITE_DISABLE = -1
55 } RESM_NAND_WRITE_STATUS_t;
60 uint32_t restMemThresh;
64 #define RESM_INET_IF_MAX 5 /* tentative */
65 #define HWADDR_LEN (6)
72 uint8_t hwaddr[HWADDR_LEN];
73 } ifInfo[RESM_INET_IF_MAX];
78 RESM_NAND_WRITE_STATUS_t nandWriteStatus;
79 RESM_INET_STATUS_t inetStatus;
82 #endif // RESOURCE_MANAGER_SERVER_INCLUDE_SYSTEM_SERVICE_RESM_TYPE_H_