2009-07-03 05:26:39 -06:00
|
|
|
#include <linux/compiler.h>
|
2009-07-03 09:28:57 -06:00
|
|
|
#include <linux/module.h>
|
2009-07-03 05:26:39 -06:00
|
|
|
#include <linux/types.h>
|
2009-07-03 09:28:57 -06:00
|
|
|
|
2009-07-03 05:26:39 -06:00
|
|
|
#include <asm/processor.h>
|
|
|
|
#include <asm/cmpxchg.h>
|
|
|
|
#include <asm/atomic.h>
|
|
|
|
|
2010-02-24 02:54:25 -07:00
|
|
|
long long atomic64_read_cx8(long long, const atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_read_cx8);
|
|
|
|
long long atomic64_set_cx8(long long, const atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_set_cx8);
|
|
|
|
long long atomic64_xchg_cx8(long long, unsigned high);
|
|
|
|
EXPORT_SYMBOL(atomic64_xchg_cx8);
|
|
|
|
long long atomic64_add_return_cx8(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_add_return_cx8);
|
|
|
|
long long atomic64_sub_return_cx8(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_sub_return_cx8);
|
|
|
|
long long atomic64_inc_return_cx8(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_inc_return_cx8);
|
|
|
|
long long atomic64_dec_return_cx8(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_dec_return_cx8);
|
|
|
|
long long atomic64_dec_if_positive_cx8(atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_dec_if_positive_cx8);
|
|
|
|
int atomic64_inc_not_zero_cx8(atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_inc_not_zero_cx8);
|
|
|
|
int atomic64_add_unless_cx8(atomic64_t *v, long long a, long long u);
|
|
|
|
EXPORT_SYMBOL(atomic64_add_unless_cx8);
|
|
|
|
|
|
|
|
#ifndef CONFIG_X86_CMPXCHG64
|
|
|
|
long long atomic64_read_386(long long, const atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_read_386);
|
|
|
|
long long atomic64_set_386(long long, const atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_set_386);
|
|
|
|
long long atomic64_xchg_386(long long, unsigned high);
|
|
|
|
EXPORT_SYMBOL(atomic64_xchg_386);
|
|
|
|
long long atomic64_add_return_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_add_return_386);
|
|
|
|
long long atomic64_sub_return_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_sub_return_386);
|
|
|
|
long long atomic64_inc_return_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_inc_return_386);
|
|
|
|
long long atomic64_dec_return_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_dec_return_386);
|
|
|
|
long long atomic64_add_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_add_386);
|
|
|
|
long long atomic64_sub_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_sub_386);
|
|
|
|
long long atomic64_inc_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_inc_386);
|
|
|
|
long long atomic64_dec_386(long long a, atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_dec_386);
|
|
|
|
long long atomic64_dec_if_positive_386(atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_dec_if_positive_386);
|
|
|
|
int atomic64_inc_not_zero_386(atomic64_t *v);
|
|
|
|
EXPORT_SYMBOL(atomic64_inc_not_zero_386);
|
|
|
|
int atomic64_add_unless_386(atomic64_t *v, long long a, long long u);
|
|
|
|
EXPORT_SYMBOL(atomic64_add_unless_386);
|
|
|
|
#endif
|