1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Reed-Solomon Library Programming Interface</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Reed-Solomon Library Programming Interface"><link rel="next" href="intro.html" title="Chapter 1. Introduction"></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">Reed-Solomon Library Programming Interface</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="intro.html">Next</a></td></tr></table><hr></div><div class="book"><div class="titlepage"><div><div><h1 class="title"><a name="Reed-Solomon-Library-Guide"></a>Reed-Solomon Library Programming Interface</h1></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Thomas</span> <span class="surname">Gleixner</span></h3><div class="affiliation"><div class="address"><p><br> 2      <code class="email"><<a class="email" href="mailto:tglx@linutronix.de">tglx@linutronix.de</a>></code><br> 3     </p></div></div></div></div></div><div><p class="copyright">Copyright © 2004 Thomas Gleixner</p></div><div><div class="legalnotice"><a name="idp1123133188"></a><p> 4 This documentation is free software; you can redistribute 5 it and/or modify it under the terms of the GNU General Public 6 License version 2 as published by the Free Software Foundation. 7 </p><p> 8 This program is distributed in the hope that it will be 9 useful, but WITHOUT ANY WARRANTY; without even the implied 10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 See the GNU General Public License for more details. 12 </p><p> 13 You should have received a copy of the GNU General Public 14 License along with this program; if not, write to the Free 15 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 16 MA 02111-1307 USA 17 </p><p> 18 For more details see the file COPYING in the source 19 distribution of Linux. 20 </p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="chapter"><a href="intro.html">1. Introduction</a></span></dt><dt><span class="chapter"><a href="bugs.html">2. Known Bugs And Assumptions</a></span></dt><dt><span class="chapter"><a href="usage.html">3. Usage</a></span></dt><dd><dl><dt><span class="sect1"><a href="usage.html#idp1123136676">Initializing</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">Encoding</a></span></dt><dt><span class="sect1"><a href="ch03s03.html">Decoding</a></span></dt><dd><dl><dt><span class="sect2"><a href="ch03s03.html#idp1121072492"> 21 Decoding with syndrome calculation, direct data correction 22 </a></span></dt><dt><span class="sect2"><a href="ch03s03.html#idp1121073572"> 23 Decoding with syndrome given by hardware decoder, direct data correction 24 </a></span></dt><dt><span class="sect2"><a href="ch03s03.html#idp1121074700"> 25 Decoding with syndrome given by hardware decoder, no direct data correction. 26 </a></span></dt></dl></dd><dt><span class="sect1"><a href="ch03s04.html">Cleanup</a></span></dt></dl></dd><dt><span class="chapter"><a href="structs.html">4. Structures</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="API-struct-rs-control.html"><span class="phrase">struct rs_control</span></a></span><span class="refpurpose"> — 27 rs control structure 28 </span></dt></dl></dd><dt><span class="chapter"><a href="pubfunctions.html">5. Public Functions Provided</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="API-free-rs.html"><span class="phrase">free_rs</span></a></span><span class="refpurpose"> — 29 Free the rs control structure, if it is no longer used 30 </span></dt><dt><span class="refentrytitle"><a href="API-init-rs.html"><span class="phrase">init_rs</span></a></span><span class="refpurpose"> — 31 Find a matching or allocate a new rs control structure 32 </span></dt><dt><span class="refentrytitle"><a href="API-init-rs-non-canonical.html"><span class="phrase">init_rs_non_canonical</span></a></span><span class="refpurpose"> — 33 Find a matching or allocate a new rs control structure, for fields with non-canonical representation 34 </span></dt><dt><span class="refentrytitle"><a href="API-encode-rs8.html"><span class="phrase">encode_rs8</span></a></span><span class="refpurpose"> — 35 Calculate the parity for data values (8bit data width) 36 </span></dt><dt><span class="refentrytitle"><a href="API-decode-rs8.html"><span class="phrase">decode_rs8</span></a></span><span class="refpurpose"> — 37 Decode codeword (8bit data width) 38 </span></dt><dt><span class="refentrytitle"><a href="API-encode-rs16.html"><span class="phrase">encode_rs16</span></a></span><span class="refpurpose"> — 39 Calculate the parity for data values (16bit data width) 40 </span></dt><dt><span class="refentrytitle"><a href="API-decode-rs16.html"><span class="phrase">decode_rs16</span></a></span><span class="refpurpose"> — 41 Decode codeword (16bit data width) 42 </span></dt></dl></dd><dt><span class="chapter"><a href="credits.html">6. Credits</a></span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="intro.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"> </td><td width="40%" align="right" valign="top"> Chapter 1. Introduction</td></tr></table></div></body></html> 43