Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54735
b: refs/heads/master
c: 5823541
h: refs/heads/master
i:
  54733: cfa17b3
  54731: 07320ea
  54727: c15a008
  54719: 45d1248
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed May 8, 2007
1 parent 1c7f782 commit 0877657
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: acd64b737567d88a907bb09d7e982ac5e6ad6a7b
refs/heads/master: 58235413b24d5e5245685b84a4efe1ebc95f7886
16 changes: 8 additions & 8 deletions trunk/Documentation/DocBook/librs.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@
<chapter id="usage">
<title>Usage</title>
<para>
This chapter provides examples how to use the library.
This chapter provides examples of how to use the library.
</para>
<sect1>
<title>Initializing</title>
<para>
The init function init_rs returns a pointer to a
The init function init_rs returns a pointer to an
rs decoder structure, which holds the necessary
information for encoding, decoding and error correction
with the given polynomial. It either uses an existing
Expand All @@ -98,10 +98,10 @@
static struct rs_control *rs_decoder;

/* Symbolsize is 10 (bits)
* Primitve polynomial is x^10+x^3+1
* Primitive polynomial is x^10+x^3+1
* first consecutive root is 0
* primitve element to generate roots = 1
* generator polinomial degree (number of roots) = 6
* primitive element to generate roots = 1
* generator polynomial degree (number of roots) = 6
*/
rs_decoder = init_rs (10, 0x409, 0, 1, 6);
</programlisting>
Expand All @@ -116,12 +116,12 @@ rs_decoder = init_rs (10, 0x409, 0, 1, 6);
</para>
<para>
The expanded data can be inverted on the fly by
providing a non zero inversion mask. The expanded data is
providing a non-zero inversion mask. The expanded data is
XOR'ed with the mask. This is used e.g. for FLASH
ECC, where the all 0xFF is inverted to an all 0x00.
The Reed-Solomon code for all 0x00 is all 0x00. The
code is inverted before storing to FLASH so it is 0xFF
too. This prevent's that reading from an erased FLASH
too. This prevents that reading from an erased FLASH
results in ECC errors.
</para>
<para>
Expand Down Expand Up @@ -273,7 +273,7 @@ free_rs(rs_decoder);
May be used under the terms of the GNU General Public License (GPL)
</programlisting>
<para>
The wrapper functions and interfaces are written by Thomas Gleixner
The wrapper functions and interfaces are written by Thomas Gleixner.
</para>
<para>
Many users have provided bugfixes, improvements and helping hands for testing.
Expand Down

0 comments on commit 0877657

Please sign in to comment.