diff options
Diffstat (limited to 'include/linux/rslib.h')
| -rw-r--r-- | include/linux/rslib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/rslib.h b/include/linux/rslib.h index ace25acfdc97..746580c1939c 100644 --- a/include/linux/rslib.h +++ b/include/linux/rslib.h | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | * @prim: Primitive element, index form | 34 | * @prim: Primitive element, index form |
| 35 | * @iprim: prim-th root of 1, index form | 35 | * @iprim: prim-th root of 1, index form |
| 36 | * @gfpoly: The primitive generator polynominal | 36 | * @gfpoly: The primitive generator polynominal |
| 37 | * @gffunc: Function to generate the field, if non-canonical representation | ||
| 37 | * @users: Users of this structure | 38 | * @users: Users of this structure |
| 38 | * @list: List entry for the rs control list | 39 | * @list: List entry for the rs control list |
| 39 | */ | 40 | */ |
| @@ -48,6 +49,7 @@ struct rs_control { | |||
| 48 | int prim; | 49 | int prim; |
| 49 | int iprim; | 50 | int iprim; |
| 50 | int gfpoly; | 51 | int gfpoly; |
| 52 | int (*gffunc)(int); | ||
| 51 | int users; | 53 | int users; |
| 52 | struct list_head list; | 54 | struct list_head list; |
| 53 | }; | 55 | }; |
| @@ -77,6 +79,8 @@ int decode_rs16(struct rs_control *rs, uint16_t *data, uint16_t *par, int len, | |||
| 77 | /* Create or get a matching rs control structure */ | 79 | /* Create or get a matching rs control structure */ |
| 78 | struct rs_control *init_rs(int symsize, int gfpoly, int fcr, int prim, | 80 | struct rs_control *init_rs(int symsize, int gfpoly, int fcr, int prim, |
| 79 | int nroots); | 81 | int nroots); |
| 82 | struct rs_control *init_rs_non_canonical(int symsize, int (*func)(int), | ||
| 83 | int fcr, int prim, int nroots); | ||
| 80 | 84 | ||
| 81 | /* Release a rs control structure */ | 85 | /* Release a rs control structure */ |
| 82 | void free_rs(struct rs_control *rs); | 86 | void free_rs(struct rs_control *rs); |
