blackfin: fix copy_from_user()
[linux-2.6-block.git] / arch / blackfin / include / asm / spinlock_types.h
CommitLineData
96f1050d
RG
1/*
2 * Copyright 2008 Analog Devices Inc.
3 *
4 * Licensed under the GPL-2 or later.
5 */
6
6b3087c6
GY
7#ifndef __ASM_SPINLOCK_TYPES_H
8#define __ASM_SPINLOCK_TYPES_H
9
10#ifndef __LINUX_SPINLOCK_TYPES_H
11# error "please don't include this file directly"
12#endif
13
14#include <asm/rwlock.h>
15
16typedef struct {
17 volatile unsigned int lock;
445c8951 18} arch_spinlock_t;
6b3087c6 19
edc35bd7 20#define __ARCH_SPIN_LOCK_UNLOCKED { 0 }
6b3087c6
GY
21
22typedef struct {
23 volatile unsigned int lock;
fb3a6bbc 24} arch_rwlock_t;
6b3087c6 25
fb3a6bbc 26#define __ARCH_RW_LOCK_UNLOCKED { RW_LOCK_BIAS }
6b3087c6
GY
27
28#endif