1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>debugfs_print_regs32</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="debugfs.html#debugfs_interface" title="debugfs interface"><link rel="prev" href="API-debugfs-create-u32-array.html" title="debugfs_create_u32_array"><link rel="next" href="API-debugfs-create-regset32.html" title="debugfs_create_regset32"></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">debugfs_print_regs32</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-debugfs-create-u32-array.html">Prev</a>&#160;</td><th width="60%" align="center">debugfs interface</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-debugfs-create-regset32.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-debugfs-print-regs32"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>debugfs_print_regs32 &#8212; 
2     use seq_print to describe a set of registers
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">debugfs_print_regs32 </b>(</code></td><td>struct seq_file * <var class="pdparam">s</var>, </td></tr><tr><td>&#160;</td><td>const struct debugfs_reg32 * <var class="pdparam">regs</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">nregs</var>, </td></tr><tr><td>&#160;</td><td>void __iomem * <var class="pdparam">base</var>, </td></tr><tr><td>&#160;</td><td>char * <var class="pdparam">prefix</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1103556820"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>s</code></em></span></dt><dd><p>
4     the seq_file structure being used to generate output
5    </p></dd><dt><span class="term"><em class="parameter"><code>regs</code></em></span></dt><dd><p>
6     an array if struct debugfs_reg32 structures
7    </p></dd><dt><span class="term"><em class="parameter"><code>nregs</code></em></span></dt><dd><p>
8     the length of the above array
9    </p></dd><dt><span class="term"><em class="parameter"><code>base</code></em></span></dt><dd><p>
10     the base address to be used in reading the registers
11    </p></dd><dt><span class="term"><em class="parameter"><code>prefix</code></em></span></dt><dd><p>
12     a string to be prefixed to every output line
13    </p></dd></dl></div></div><div class="refsect1"><a name="idp1103562636"></a><h2>Description</h2><p>
14   This function outputs a text block describing the current values of
15   some 32-bit hardware registers. It is meant to be used within debugfs
16   files based on seq_file that need to show registers, intermixed with other
17   information. The prefix argument may be used to specify a leading string,
18   because some peripherals have several blocks of identical registers,
19   for example configuration of dma channels
20</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-debugfs-create-u32-array.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="debugfs.html#debugfs_interface">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-debugfs-create-regset32.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">debugfs_create_u32_array</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">debugfs_create_regset32</span></td></tr></table></div></body></html>
21