diff options
Diffstat (limited to 'plat/sun50iw1p1/scp/hwspinlock/hwspinlock_i.h')
-rw-r--r-- | plat/sun50iw1p1/scp/hwspinlock/hwspinlock_i.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/plat/sun50iw1p1/scp/hwspinlock/hwspinlock_i.h b/plat/sun50iw1p1/scp/hwspinlock/hwspinlock_i.h deleted file mode 100644 index 231d7ee..0000000 --- a/plat/sun50iw1p1/scp/hwspinlock/hwspinlock_i.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * arch/arm/mach-sunxi/arisc/hwspinlock/hwspinlock-i.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 __HW_SPINLOCK_I_H -#define __HW_SPINLOCK_I_H - -#include "../include/arisc_includes.h" - -/* the used state of spinlock */ -#define SPINLOCK_FREE (0) -#define SPINLOCK_USED (1) - -//the taken ot not state of spinlock -#define AW_SPINLOCK_NOTTAKEN (0) -#define AW_SPINLOCK_TAKEN (1) - -//hardware spinlock register list -#define AW_SPINLOCK_SYS_STATUS_REG (0x0000) -#define AW_SPINLOCK_STATUS_REG (0x0010) -#define AW_SPINLOCK_IRQ_EN_REG (0x0020) -#define AW_SPINLOCK_IRQ_PEND_REG (0x0040) -#define AW_SPINLOCK_LOCK_REG(id) (0x0100 + id * 4) - -typedef struct arisc_hwspinlock -{ - unsigned long flags; - spinlock_t lock; -} arisc_hwspinlock_t; - -#endif /* __HW_SPINLOCK_I_H */ |