1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct uio_mem</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch02s07.html" title="Userspace IO devices"><link rel="prev" href="API-uio-unregister-device.html" title="uio_unregister_device"><link rel="next" href="API-struct-uio-port.html" title="struct uio_port"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct uio_mem</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-uio-unregister-device.html">Prev</a>&#160;</td><th width="60%" align="center">Userspace IO devices</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-uio-port.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-uio-mem"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct uio_mem &#8212; 
2  description of a UIO memory region
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct uio_mem {
5  const char * name;
6  phys_addr_t addr;
7  resource_size_t size;
8  int memtype;
9  void __iomem * internal_addr;
10  struct uio_map * map;
11};  </pre></div><div class="refsect1"><a name="idp1110854700"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">name</span></dt><dd><p>
12name of the memory region for identification
13      </p></dd><dt><span class="term">addr</span></dt><dd><p>
14address of the device's memory (phys_addr is used since
15addr can be logical, virtual, or physical &amp; phys_addr_t
16should always be large enough to handle any of the
17address types)
18      </p></dd><dt><span class="term">size</span></dt><dd><p>
19size of IO
20      </p></dd><dt><span class="term">memtype</span></dt><dd><p>
21type of memory addr points to
22      </p></dd><dt><span class="term">internal_addr</span></dt><dd><p>
23ioremap-ped version of addr, for driver internal use
24      </p></dd><dt><span class="term">map</span></dt><dd><p>
25for use by the UIO core only.
26      </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-uio-unregister-device.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch02s07.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-uio-port.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">uio_unregister_device</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct uio_port</span></td></tr></table></div></body></html>
27