summaryrefslogtreecommitdiffstats
path: root/src/lib/syscall_mmio.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-05-25 17:11:33 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-06-02 15:13:56 -0500
commitf0e44bc60ca80d5bf875f0836a119e361d84dd44 (patch)
treed1b7d267a6e292e8c6d10363e7c1df6f7067cb9c /src/lib/syscall_mmio.C
parent83e18669b6c2322c8eb5f8632ac823877d765e0d (diff)
downloadtalos-hostboot-f0e44bc60ca80d5bf875f0836a119e361d84dd44.tar.gz
talos-hostboot-f0e44bc60ca80d5bf875f0836a119e361d84dd44.zip
Add HMER access syscalls (as fastpath).
Change-Id: Icc7494986d19950a18cc9ee53fd5125c86096a72 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/105 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'src/lib/syscall_mmio.C')
-rw-r--r--src/lib/syscall_mmio.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/syscall_mmio.C b/src/lib/syscall_mmio.C
index f2dc8ccf8..30ec5bd37 100644
--- a/src/lib/syscall_mmio.C
+++ b/src/lib/syscall_mmio.C
@@ -12,3 +12,13 @@ int mmio_unmap(void* ea, size_t pages)
{
return (int64_t) _syscall2(MMIO_UNMAP, ea, (void*)pages);
}
+
+uint64_t mmio_hmer_read()
+{
+ return (uint64_t) _syscall0(MMIO_HMER_READ);
+}
+
+int mmio_hmer_write(uint64_t value)
+{
+ return (int)(int64_t)_syscall1(MMIO_HMER_WRITE, (void*)value);
+}
OpenPOWER on IntegriCloud