2 * arch/arm/mach-tegra/include/mach/arb_sema.h
4 * Hardware arbitration semaphore interface
6 * Copyright (c) 2010, NVIDIA Corporation.
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.
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
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.
23 #ifndef __MACH_TEGRA_ARB_SEMA_H
24 #define __MACH_TEGRA_ARB_SEMA_H
26 enum tegra_arb_module {
30 int tegra_arb_mutex_lock_timeout(enum tegra_arb_module lock, int msecs);
32 int tegra_arb_mutex_unlock(enum tegra_arb_module lock);