diff options
Diffstat (limited to 'Documentation/DocBook')
-rw-r--r-- | Documentation/DocBook/uio-howto.tmpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/DocBook/uio-howto.tmpl b/Documentation/DocBook/uio-howto.tmpl index 9561815..88451f7 100644 --- a/Documentation/DocBook/uio-howto.tmpl +++ b/Documentation/DocBook/uio-howto.tmpl @@ -510,6 +510,18 @@ interrupts from userspace by writing to <filename>/dev/uioX</filename>, you can implement this function. The parameter <varname>irq_on</varname> will be 0 to disable interrupts and 1 to enable them. </para></listitem> + +<listitem><para> +<varname>pgprot_t (*set_pgprot)(struct uio_info *info, unsigned int mem_idx, +pgprot_t prot)</varname>: Optional. If special flags are required when mapping +certain hardware regions, then this callback can be used to specify those flags. +The default flags are given by the host architecture's definition of +<function>pgprot_noncached()</function> and are passed to the callback as the +<varname>prot</varname> parameter, but the return value is what is used for the +resulting mapping. Note that this callback is only used by the built in mapping +logic (when the <function>mmap()</function> callback has not been set), and then +only for UIO_MEM_PHYS regions. +</para></listitem> </itemizedlist> <para> |