diff options
Diffstat (limited to 'plat/sun50iw1p1/scp/include/arisc_hwspinlock.h')
-rw-r--r-- | plat/sun50iw1p1/scp/include/arisc_hwspinlock.h | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/plat/sun50iw1p1/scp/include/arisc_hwspinlock.h b/plat/sun50iw1p1/scp/include/arisc_hwspinlock.h deleted file mode 100644 index 2b34276..0000000 --- a/plat/sun50iw1p1/scp/include/arisc_hwspinlock.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * arch/arm/mach-sunxi/arisc/include/arisc_hwspinlock.h - * - * Copyright (c) 2012 Allwinner. - * 2012-10-01 Written by superm (superm@allwinnertech.com). - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#ifndef __ARISC_HW_SPINLOCK_H -#define __ARISC_HW_SPINLOCK_H - -/* the max number of hardware spinlock */ -#define ARISC_HW_SPINLOCK_NUM (32) - -/** - * initialize hwspinlock. - * @para: none. - * - * returns: OK if initialize hwspinlock succeeded, others if failed. - */ -int arisc_hwspinlock_init(void); - -/** - * exit hwspinlock. - * @para: none. - * - * returns: OK if exit hwspinlock succeeded, others if failed. - */ -int arisc_hwspinlock_exit(void); - -/** - * lock an hwspinlock with timeout limit. - * @hwid : an hwspinlock id which we want to lock. - * - * returns: OK if lock hwspinlock succeeded, other if failed. - */ -int arisc_hwspin_lock(int hwid); - -/** - * unlock a specific hwspinlock. - * @hwid : an hwspinlock id which we want to unlock. - * - * returns: OK if unlock hwspinlock succeeded, other if failed. - */ -int arisc_hwspin_unlock(int hwid); - -int arisc_hwspinlock_standby_suspend(void); -int arisc_hwspinlock_standby_resume(void); - -#endif /* __ARISC_HW_SPINLOCK_H */ |