1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct uio_info</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-struct-uio-port.html" title="struct uio_port"><link rel="next" href="parportdev.html" title="Chapter 3. Parallel Port Devices"></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_info</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-uio-port.html">Prev</a> </td><th width="60%" align="center">Userspace IO devices</th><td width="20%" align="right"> <a accesskey="n" href="parportdev.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-uio-info"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct uio_info — 2 UIO device capabilities 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct uio_info { 5 struct uio_device * uio_dev; 6 const char * name; 7 const char * version; 8 struct uio_mem mem[MAX_UIO_MAPS]; 9 struct uio_port port[MAX_UIO_PORT_REGIONS]; 10 long irq; 11 unsigned long irq_flags; 12 void * priv; 13 irqreturn_t (* handler) (int irq, struct uio_info *dev_info); 14 int (* mmap) (struct uio_info *info, struct vm_area_struct *vma); 15 int (* open) (struct uio_info *info, struct inode *inode); 16 int (* release) (struct uio_info *info, struct inode *inode); 17 int (* irqcontrol) (struct uio_info *info, s32 irq_on); 18}; </pre></div><div class="refsect1"><a name="idp1110872052"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">uio_dev</span></dt><dd><p> 19 the UIO device this info belongs to 20 </p></dd><dt><span class="term">name</span></dt><dd><p> 21 device name 22 </p></dd><dt><span class="term">version</span></dt><dd><p> 23 device driver version 24 </p></dd><dt><span class="term">mem[MAX_UIO_MAPS]</span></dt><dd><p> 25 list of mappable memory regions, size==0 for end of list 26 </p></dd><dt><span class="term">port[MAX_UIO_PORT_REGIONS]</span></dt><dd><p> 27 list of port regions, size==0 for end of list 28 </p></dd><dt><span class="term">irq</span></dt><dd><p> 29 interrupt number or UIO_IRQ_CUSTOM 30 </p></dd><dt><span class="term">irq_flags</span></dt><dd><p> 31 flags for <code class="function">request_irq</code> 32 </p></dd><dt><span class="term">priv</span></dt><dd><p> 33 optional private data 34 </p></dd><dt><span class="term">handler</span></dt><dd><p> 35 the device's irq handler 36 </p></dd><dt><span class="term">mmap</span></dt><dd><p> 37 mmap operation for this uio device 38 </p></dd><dt><span class="term">open</span></dt><dd><p> 39 open operation for this uio device 40 </p></dd><dt><span class="term">release</span></dt><dd><p> 41 release operation for this uio device 42 </p></dd><dt><span class="term">irqcontrol</span></dt><dd><p> 43 disable/enable irqs when 0/1 is written to /dev/uioX 44 </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-struct-uio-port.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s07.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="parportdev.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct uio_port</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 3. Parallel Port Devices</td></tr></table></div></body></html> 45