'\" t .\" Title: pci_iomap_wc_range .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Public Functions Provided .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PCI_IOMAP_WC_RANGE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Public Functions Provided" .\" ----------------------------------------------------------------- .\" * 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" pci_iomap_wc_range \- create a virtual WC mapping cookie for a PCI BAR .SH "SYNOPSIS" .HP \w'void\ __iomem\ *\ pci_iomap_wc_range('u .BI "void __iomem * pci_iomap_wc_range(struct\ pci_dev\ *\ " "dev" ", int\ " "bar" ", unsigned\ long\ " "offset" ", unsigned\ long\ " "maxlen" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 PCI device that owns the BAR .RE .PP \fIbar\fR .RS 4 BAR number .RE .PP \fIoffset\fR .RS 4 map memory at the given offset in BAR .RE .PP \fImaxlen\fR .RS 4 max length of the memory to map .RE .SH "DESCRIPTION" .PP Using this function you will get a __iomem address to your device BAR\&. You can access it using ioread*() and iowrite*()\&. These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way\&. When possible write combining is used\&. .PP \fImaxlen\fR specifies the maximum length to map\&. If you want to get access to the complete BAR from offset to the end, pass \fB0\fR here\&. .SH "AUTHORS" .PP \fBMatthew Wilcox\fR <\&matthew@wil.cx\&> .RS 4 Author. .RE .PP \fBAlan Cox\fR <\&alan@lxorguk.ukuu.org.uk\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br