| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| * Copyright (C) 2000-2005 Silicon Graphics, Inc. All rights reserved. |
| * This file contains macros used to access MMR registers via |
| * uncached physical addresses. |
| * pio_phys_read_mmr - read an MMR |
| * pio_phys_write_mmr - write an MMR |
| * pio_atomic_phys_write_mmrs - atomically write 1 or 2 MMRs with psr.ic=0 |
| * Second MMR will be skipped if address is NULL |
| * Addresses passed to these routines should be uncached physical addresses |
| #include <asm/asmmacro.h> |
| GLOBAL_ENTRY(pio_phys_read_mmr) |
| GLOBAL_ENTRY(pio_phys_write_mmr) |
| GLOBAL_ENTRY(pio_atomic_phys_write_mmrs) |
| rsm psr.i | psr.dt | psr.ic |
| END(pio_atomic_phys_write_mmrs) |