diff options
| author | Matthew Barth <msbarth@us.ibm.com> | 2011-07-22 09:38:14 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2011-08-08 14:21:57 -0500 |
| commit | 6a8d93daac2c006c06aa1d0d9e963e651b9c64b2 (patch) | |
| tree | fb7eeb89d0b7b80e64334896973649aab90a2d83 /src/lib | |
| parent | 0709fbac11be8a30710a34dad5af5f37449d7255 (diff) | |
| download | talos-hostboot-6a8d93daac2c006c06aa1d0d9e963e651b9c64b2.tar.gz talos-hostboot-6a8d93daac2c006c06aa1d0d9e963e651b9c64b2.zip | |
Device segment MMIO map & unmap system calls
Change-Id: I233c2677909c0c16536133c189ebbd21e4415e22
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/208
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/syscall_mmio.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/syscall_mmio.C b/src/lib/syscall_mmio.C index 3c21c8902..411dfdb41 100644 --- a/src/lib/syscall_mmio.C +++ b/src/lib/syscall_mmio.C @@ -16,6 +16,16 @@ int mmio_unmap(void* ea, size_t pages) return (int64_t) _syscall2(MMIO_UNMAP, ea, (void*)pages); } +void* mmio_dev_map(void *ra, SEG_DATA_SIZES i_devDataSize) +{ + return _syscall2(DEV_MAP, ra, (void*)i_devDataSize); +} + +int mmio_dev_unmap(void *ea) +{ + return (int64_t) _syscall1(DEV_UNMAP, ea); +} + uint64_t mmio_hmer_read() { return (uint64_t) _syscall0(MMIO_HMER_READ); |

