2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2000-2005 Silicon Graphics, Inc. All rights reserved.
8 * This file contains macros used to access MMR registers via
9 * uncached physical addresses.
10 * pio_phys_read_mmr - read an MMR
11 * pio_phys_write_mmr - write an MMR
12 * pio_atomic_phys_write_mmrs - atomically write 1 or 2 MMRs with psr.ic=0
13 * Second MMR will be skipped if address is NULL
15 * Addresses passed to these routines should be uncached physical addresses
21 #include <asm/asmmacro.h>
24 GLOBAL_ENTRY(pio_phys_read_mmr)
37 END(pio_phys_read_mmr)
39 GLOBAL_ENTRY(pio_phys_write_mmr)
52 END(pio_phys_write_mmr)
54 GLOBAL_ENTRY(pio_atomic_phys_write_mmrs)
60 rsm psr.i | psr.dt | psr.ic
64 (p9) st8.rel [r34]=r35
69 END(pio_atomic_phys_write_mmrs)