GNU Linux-libre 4.14.290-gnu1
[releases.git] / arch / m32r / include / asm / spinlock_types.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_M32R_SPINLOCK_TYPES_H
3 #define _ASM_M32R_SPINLOCK_TYPES_H
4
5 #ifndef __LINUX_SPINLOCK_TYPES_H
6 # error "please don't include this file directly"
7 #endif
8
9 typedef struct {
10         volatile int slock;
11 } arch_spinlock_t;
12
13 #define __ARCH_SPIN_LOCK_UNLOCKED       { 1 }
14
15 typedef struct {
16         volatile int lock;
17 } arch_rwlock_t;
18
19 #define RW_LOCK_BIAS                    0x01000000
20 #define RW_LOCK_BIAS_STR                "0x01000000"
21
22 #define __ARCH_RW_LOCK_UNLOCKED         { RW_LOCK_BIAS }
23
24 #endif /* _ASM_M32R_SPINLOCK_TYPES_H */