17f30491cSTony Luck #ifndef _ASM_IA64_SPINLOCK_TYPES_H 27f30491cSTony Luck #define _ASM_IA64_SPINLOCK_TYPES_H 37f30491cSTony Luck 47f30491cSTony Luck #ifndef __LINUX_SPINLOCK_TYPES_H 57f30491cSTony Luck # error "please don't include this file directly" 67f30491cSTony Luck #endif 77f30491cSTony Luck 87f30491cSTony Luck typedef struct { 99d40ee20STony Luck volatile unsigned int lock; 10445c8951SThomas Gleixner } arch_spinlock_t; 117f30491cSTony Luck 12edc35bd7SThomas Gleixner #define __ARCH_SPIN_LOCK_UNLOCKED { 0 } 137f30491cSTony Luck 147f30491cSTony Luck typedef struct { 157f30491cSTony Luck volatile unsigned int read_counter : 31; 167f30491cSTony Luck volatile unsigned int write_lock : 1; 17fb3a6bbcSThomas Gleixner } arch_rwlock_t; 187f30491cSTony Luck 19fb3a6bbcSThomas Gleixner #define __ARCH_RW_LOCK_UNLOCKED { 0, 0 } 207f30491cSTony Luck 217f30491cSTony Luck #endif 22