1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 
17 #pragma once
18 
19 /* Expected limits: should be in sync with kernel settings */
20 #define USER_BASE_HANDLE 1000  /* first user handle id */
21 #define MAX_USER_HANDLES IPC_MAX_HANDLES
22 #define MAX_PORT_PATH_LEN 64   /* max length of port path name   */
23 #define MAX_PORT_BUF_NUM 32    /* max number of per port buffers */
24 #define MAX_PORT_BUF_SIZE 4096 /* max size of per port buffer    */
25 
26 #define FIRST_FREE_HANDLE (3)
27 
28 #define MSEC 1000000ULL
29 #define SRV_PATH_BASE "com.android.ipc-unittest"
30 
31 #include <trusty_log.h>
32