temp revert rk change
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-tegra / include / mach / arb_sema.h
1 /*
2  * arch/arm/mach-tegra/include/mach/arb_sema.h
3  *
4  * Hardware arbitration semaphore interface
5  *
6  * Copyright (c) 2010, NVIDIA Corporation.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
16  * more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21  */
22
23 #ifndef __MACH_TEGRA_ARB_SEMA_H
24 #define __MACH_TEGRA_ARB_SEMA_H
25
26 enum tegra_arb_module {
27         TEGRA_ARB_AES = 0,
28 };
29
30 int tegra_arb_mutex_lock_timeout(enum tegra_arb_module lock, int msecs);
31
32 int tegra_arb_mutex_unlock(enum tegra_arb_module lock);
33
34 #endif