Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / docs / mmi / mmi_memaccess.html
CommitLineData
920dae64
AT
1<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2<html>
3<head>
4 <title>MMI memory access functions</title>
5</head>
6
7<body bgcolor="#FFFFFF" LANG="en-US">
8<h2> mmi_memread,mmi_memwrite</h2>
9
10<h4>NAME</h4>
11
12<ul>mmi_memread - Read arbitrary number of bytes from memory</ul>
13<ul>mmi_memwrite - Write arbitrary number of bytes to memory</ul>
14
15<h4>SYNOPSIS</h4>
16
17<ul><font color="#0000FF">#include "mmi.h"</font>
18<p>void mmi_memread(uint64_t paddr, uint8_t * data, uint64_t size)
19<p>void mmi_memwrite(uint64_t paddr, const uint8_t * data, uint64_t size)</ul>
20
21<h4>DESCRIPTION</h4>
22
23<ul>These functions read/write an arbitrary number of bytes from/to SAM memory.
24There are no size or alignment restrictions. <br>The read/write is guaranteed to
25be atomic.
26<p>
27The device model needs to ensure that the data buffer is of the correct size.
28</ul>
29
30
31</body>
32</html>