'\" t .\" Title: struct uio_info .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "STRUCT UIO_INFO" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_uio_info \- UIO device capabilities .SH "SYNOPSIS" .sp .nf struct uio_info { struct uio_device * uio_dev; const char * name; const char * version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void * priv; irqreturn_t (* handler) (int irq, struct uio_info *dev_info); int (* mmap) (struct uio_info *info, struct vm_area_struct *vma); int (* open) (struct uio_info *info, struct inode *inode); int (* release) (struct uio_info *info, struct inode *inode); int (* irqcontrol) (struct uio_info *info, s32 irq_on); }; .fi .SH "MEMBERS" .PP uio_dev .RS 4 the UIO device this info belongs to .RE .PP name .RS 4 device name .RE .PP version .RS 4 device driver version .RE .PP mem[MAX_UIO_MAPS] .RS 4 list of mappable memory regions, size==0 for end of list .RE .PP port[MAX_UIO_PORT_REGIONS] .RS 4 list of port regions, size==0 for end of list .RE .PP irq .RS 4 interrupt number or UIO_IRQ_CUSTOM .RE .PP irq_flags .RS 4 flags for \fBrequest_irq\fR .RE .PP priv .RS 4 optional private data .RE .PP handler .RS 4 the device\*(Aqs irq handler .RE .PP mmap .RS 4 mmap operation for this uio device .RE .PP open .RS 4 open operation for this uio device .RE .PP release .RS 4 release operation for this uio device .RE .PP irqcontrol .RS 4 disable/enable irqs when 0/1 is written to /dev/uioX .RE .SH "COPYRIGHT" .br