Subversion Repositories Kolibri OS

Rev

Rev 5270 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5270 Rev 6102
1
#ifndef _ASM_X86_SPINLOCK_TYPES_H
1
#ifndef _ASM_X86_SPINLOCK_TYPES_H
2
#define _ASM_X86_SPINLOCK_TYPES_H
2
#define _ASM_X86_SPINLOCK_TYPES_H
-
 
3
 
-
 
4
#include 
3
 
5
 
4
#ifndef __LINUX_SPINLOCK_TYPES_H
6
#ifndef __LINUX_SPINLOCK_TYPES_H
5
# error "please don't include this file directly"
7
# error "please don't include this file directly"
6
#endif
8
#endif
7
 
9
 
8
typedef struct raw_spinlock {
10
typedef struct raw_spinlock {
9
	unsigned int slock;
11
	unsigned int slock;
10
} raw_spinlock_t;
12
} raw_spinlock_t;
11
 
13
 
12
#define __RAW_SPIN_LOCK_UNLOCKED	{ 0 }
14
#define __RAW_SPIN_LOCK_UNLOCKED	{ 0 }
13
 
15
 
14
typedef struct {
16
typedef struct {
15
	unsigned int lock;
17
	unsigned int lock;
16
} raw_rwlock_t;
18
} raw_rwlock_t;
17
 
19
 
18
#define __RAW_RW_LOCK_UNLOCKED		{ RW_LOCK_BIAS }
20
#define __RAW_RW_LOCK_UNLOCKED		{ RW_LOCK_BIAS }
19
 
21
 
20
#endif /* _ASM_X86_SPINLOCK_TYPES_H */
22
#endif /* _ASM_X86_SPINLOCK_TYPES_H */