Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / docs / mmi / mmi_memaccess.html
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>MMI memory access functions</title>
</head>
<body bgcolor="#FFFFFF" LANG="en-US">
<h2> mmi_memread,mmi_memwrite</h2>
<h4>NAME</h4>
<ul>mmi_memread - Read arbitrary number of bytes from memory</ul>
<ul>mmi_memwrite - Write arbitrary number of bytes to memory</ul>
<h4>SYNOPSIS</h4>
<ul><font color="#0000FF">#include "mmi.h"</font>
<p>void mmi_memread(uint64_t paddr, uint8_t * data, uint64_t size)
<p>void mmi_memwrite(uint64_t paddr, const uint8_t * data, uint64_t size)</ul>
<h4>DESCRIPTION</h4>
<ul>These functions read/write an arbitrary number of bytes from/to SAM memory.
There are no size or alignment restrictions. <br>The read/write is guaranteed to
be atomic.
<p>
The device model needs to ensure that the data buffer is of the correct size.
</ul>
</body>
</html>