Merge "tools: Support multiple version of DPDK build"
[samplevnf.git] / common / VIL / l2l3_stack / hle.h
1 /*
2 // Copyright (c) 2017 Intel Corporation
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 #define HLE_TRUE 1
18 #define HLE_FALSE 0
19
20 volatile int mutex_val;
21 /*
22  * hle mutex
23  * @param void
24  */
25 void hle_mutex(void);
26 /*
27  * To lock instrution
28  * @param void
29  */
30 int hle_lock(void);
31 /*
32  * To release held lock
33  * @param void
34  */
35 int hle_release(void);
36 /*
37  * To check whether lock is held
38  * @param void
39  */
40 int is_locked(void);