Import 2.3.7pre7
[davej-history.git] / include / linux / isdn_lzscomp.h
blob8f64bfa6720f22ea42500e623d782a21b1a78ab8
1 /*
2 * $Id: isdn_lzscomp.h,v 1.1 1998/07/08 16:52:33 hipp Exp $
4 * Header for isdn_lzscomp.c
5 * Concentrated here to not mess up half a dozen kernel headers with code
6 * snippets
8 */
10 #define CI_LZS_COMPRESS 17
11 #define CILEN_LZS_COMPRESS 5
13 #define LZS_CMODE_NONE 0
14 #define LZS_CMODE_LCB 1
15 #define LZS_CMODE_CRC 2
16 #define LZS_CMODE_SEQNO 3 /* MUST be implemented (default) */
17 #define LZS_CMODE_EXT 4 /* Seems to be what Win0.95 uses */
19 #define LZS_COMP_MAX_HISTS 1 /* Don't waste peers ressources */
20 #define LZS_COMP_DEF_HISTS 1 /* Most likely to negotiate */
21 #define LZS_DECOMP_MAX_HISTS 32 /* More is really nonsense */
22 #define LZS_DECOMP_DEF_HISTS 8 /* If we get it, this may be optimal */
24 #define LZS_HIST_BYTE1(word) (word>>8) /* Just for better reading */
25 #define LZS_HIST_BYTE2(word) (word&0xff) /* of this big endian stuff */
26 #define LZS_HIST_WORD(b1,b2) ((b1<<8)|b2) /* (network byte order rulez) */