RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / ia64 / include / asm / spinlock_types.h
blobe2b42a52a6d3f266f00355691d43d9d67c6ab5e2
1 #ifndef _ASM_IA64_SPINLOCK_TYPES_H
2 #define _ASM_IA64_SPINLOCK_TYPES_H
4 #ifndef __LINUX_SPINLOCK_TYPES_H
5 # error "please don't include this file directly"
6 #endif
8 typedef struct {
9 volatile unsigned int lock;
10 } arch_spinlock_t;
12 #define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
14 typedef struct {
15 volatile unsigned int read_counter : 31;
16 volatile unsigned int write_lock : 1;
17 } arch_rwlock_t;
19 #define __ARCH_RW_LOCK_UNLOCKED { 0, 0 }
21 #endif