diff options
author | Tony Luck <tony.luck@intel.com> | 2005-10-28 20:15:08 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-10-28 20:15:08 +0200 |
commit | 0d9136fdbcdbddcd4eb5ac94c248c039193d4795 (patch) | |
tree | 2e914c8afe019302199b5d807114e5b15835dc90 /include/asm-ia64/sn/io.h | |
parent | Pull altix-fpga-reset into release branch (diff) | |
parent | [IA64] Need to include <asm/sn/io.h> in a few more places. (diff) | |
download | linux-0d9136fdbcdbddcd4eb5ac94c248c039193d4795.tar.xz linux-0d9136fdbcdbddcd4eb5ac94c248c039193d4795.zip |
Pull altix-mmr into release branch
Diffstat (limited to 'include/asm-ia64/sn/io.h')
-rw-r--r-- | include/asm-ia64/sn/io.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-ia64/sn/io.h b/include/asm-ia64/sn/io.h index 42209733f6b1..7597a52b426c 100644 --- a/include/asm-ia64/sn/io.h +++ b/include/asm-ia64/sn/io.h @@ -36,6 +36,15 @@ extern void sn_dma_flush(unsigned long); #define __sn_readq_relaxed ___sn_readq_relaxed /* + * Convenience macros for setting/clearing bits using the above accessors + */ + +#define __sn_setq_relaxed(addr, val) \ + writeq((__sn_readq_relaxed(addr) | (val)), (addr)) +#define __sn_clrq_relaxed(addr, val) \ + writeq((__sn_readq_relaxed(addr) & ~(val)), (addr)) + +/* * The following routines are SN Platform specific, called when * a reference is made to inX/outX set macros. SN Platform * inX set of macros ensures that Posted DMA writes on the |