OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [linux/] [isdn_lzscomp.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/* $Id: isdn_lzscomp.h,v 1.1.1.1 2004-04-15 02:36:33 phoenix Exp $
2
 *
3
 * Header for isdn_lzscomp.c
4
 * Concentrated here to not mess up half a dozen kernel headers with code
5
 * snippets
6
 *
7
 * This software may be used and distributed according to the terms
8
 * of the GNU General Public License, incorporated herein by reference.
9
 *
10
 */
11
 
12
#define CI_LZS_COMPRESS         17
13
#define CILEN_LZS_COMPRESS      5
14
 
15
#define LZS_CMODE_NONE          0
16
#define LZS_CMODE_LCB           1
17
#define LZS_CMODE_CRC           2
18
#define LZS_CMODE_SEQNO         3       /* MUST be implemented (default) */
19
#define LZS_CMODE_EXT           4       /* Seems to be what Win0.95 uses */
20
 
21
#define LZS_COMP_MAX_HISTS      1       /* Don't waste peers ressources */
22
#define LZS_COMP_DEF_HISTS      1       /* Most likely to negotiate */
23
#define LZS_DECOMP_MAX_HISTS    32      /* More is really nonsense */
24
#define LZS_DECOMP_DEF_HISTS    8       /* If we get it, this may be optimal */
25
 
26
#define LZS_HIST_BYTE1(word)    (word>>8)       /* Just for better reading */
27
#define LZS_HIST_BYTE2(word)    (word&0xff)     /* of this big endian stuff */
28
#define LZS_HIST_WORD(b1,b2)    ((b1<<8)|b2)    /* (network byte order rulez) */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.