Commit 9307638e authored by David Woodhouse's avatar David Woodhouse

RS library spelling fixes.

Originally from Joe Perches <joe@perches.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent e7883433
...@@ -83,13 +83,13 @@ ...@@ -83,13 +83,13 @@
<title>Initializing</title> <title>Initializing</title>
<para> <para>
The init function init_rs returns a pointer to a The init function init_rs returns a pointer to a
rs decoder structure, which holds the neccecary rs decoder structure, which holds the necessary
information for encoding, decoding and error correction information for encoding, decoding and error correction
with the given polynomial. It either uses an existing with the given polynomial. It either uses an existing
matching decoder or creates a new one. On creation all matching decoder or creates a new one. On creation all
the lookup tables for fast en/decoding are created. the lookup tables for fast en/decoding are created.
The function may take a while, so make sure not to The function may take a while, so make sure not to
call it in critical code pathes. call it in critical code paths.
</para> </para>
<programlisting> <programlisting>
/* the Reed Solomon control structure */ /* the Reed Solomon control structure */
...@@ -123,10 +123,10 @@ rs_decoder = init_rs (10, 0x409, 0, 1, 6); ...@@ -123,10 +123,10 @@ rs_decoder = init_rs (10, 0x409, 0, 1, 6);
results in ECC errors. results in ECC errors.
</para> </para>
<para> <para>
The databytes are expanded to the given symbolsize The databytes are expanded to the given symbol size
on the fly. There is no support for encoding continuos on the fly. There is no support for encoding continuous
bitstreams with a symbolsize != 8 at the moment. If bitstreams with a symbol size != 8 at the moment. If
it is neccecary it should be not a big deal to implement it is necessary it should be not a big deal to implement
such functionality. such functionality.
</para> </para>
<programlisting> <programlisting>
...@@ -155,13 +155,13 @@ encode_rs8 (rs_decoder, data8, 512, par, 0); ...@@ -155,13 +155,13 @@ encode_rs8 (rs_decoder, data8, 512, par, 0);
location buffer to the decoder. The decoder stores the location buffer to the decoder. The decoder stores the
calculated error location and the correction bitmask calculated error location and the correction bitmask
in the given buffers. This is useful for hardware in the given buffers. This is useful for hardware
decoders which use a weird bitordering scheme. decoders which use a weird bit ordering scheme.
</para> </para>
<para> <para>
The databytes are expanded to the given symbolsize The databytes are expanded to the given symbol size
on the fly. There is no support for decoding continuos on the fly. There is no support for decoding continuous
bitstreams with a symbolsize != 8 at the moment. If bitstreams with a symbolsize != 8 at the moment. If
it is neccecary it should be not a big deal to implement it is necessary it should be not a big deal to implement
such functionality. such functionality.
</para> </para>
...@@ -208,7 +208,7 @@ numerr = decode_rs8 (rs_decoder, data8, par, 512, syn, 0, NULL, 0, NULL); ...@@ -208,7 +208,7 @@ numerr = decode_rs8 (rs_decoder, data8, par, 512, syn, 0, NULL, 0, NULL);
Decoding with syndrome given by hardware decoder, no direct data correction. Decoding with syndrome given by hardware decoder, no direct data correction.
</title> </title>
<para> <para>
Note: It's not neccecary to give data and recieved parity to the decoder. Note: It's not necessary to give data and received parity to the decoder.
</para> </para>
<programlisting> <programlisting>
/* Parity buffer. Size = number of roots */ /* Parity buffer. Size = number of roots */
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
* *
* Adaption to the kernel by Thomas Gleixner (tglx@linutronix.de) * Adaption to the kernel by Thomas Gleixner (tglx@linutronix.de)
* *
* $Id: decode_rs.c,v 1.5 2004/10/05 22:07:53 gleixner Exp $ * $Id: decode_rs.c,v 1.6 2004/10/22 15:41:47 gleixner Exp $
* *
*/ */
/* Generic data witdh independend code which is included by the /* Generic data width independent code which is included by the
* wrappers. * wrappers.
*/ */
{ {
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
uint16_t *index_of = rs->index_of; uint16_t *index_of = rs->index_of;
uint16_t u, q, tmp, num1, num2, den, discr_r, syn_error; uint16_t u, q, tmp, num1, num2, den, discr_r, syn_error;
/* Err+Eras Locator poly and syndrome poly The maximum value /* Err+Eras Locator poly and syndrome poly The maximum value
* of nroots is 8. So the neccecary stacksize will be about * of nroots is 8. So the necessary stack size will be about
* 220 bytes max. * 220 bytes max.
*/ */
uint16_t lambda[nroots + 1], syn[nroots]; uint16_t lambda[nroots + 1], syn[nroots];
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
if (pad < 0 || pad >= nn) if (pad < 0 || pad >= nn)
return -ERANGE; return -ERANGE;
/* Deos the caller provide the syndrome ? */ /* Does the caller provide the syndrome ? */
if (s != NULL) if (s != NULL)
goto decode; goto decode;
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
* *
* Adaption to the kernel by Thomas Gleixner (tglx@linutronix.de) * Adaption to the kernel by Thomas Gleixner (tglx@linutronix.de)
* *
* $Id: encode_rs.c,v 1.3 2004/10/05 22:07:53 gleixner Exp $ * $Id: encode_rs.c,v 1.4 2004/10/22 15:41:47 gleixner Exp $
* *
*/ */
/* Generic data witdh independend code which is included by the /* Generic data width independent code which is included by the
* wrappers. * wrappers.
* int encode_rsX (struct rs_control *rs, uintX_t *data, int len, uintY_t *par) * int encode_rsX (struct rs_control *rs, uintX_t *data, int len, uintY_t *par)
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment