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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [linux/] [isdn_ppp.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _LINUX_ISDN_PPP_H
2
#define _LINUX_ISDN_PPP_H
3
 
4
extern int isdn_ppp_dial_slave(char *);
5
extern int isdn_ppp_hangup_slave(char *);
6
 
7
#define CALLTYPE_INCOMING 0x1
8
#define CALLTYPE_OUTGOING 0x2
9
#define CALLTYPE_CALLBACK 0x4
10
 
11
#define IPPP_VERSION    "2.2.0"
12
 
13
struct pppcallinfo
14
{
15
        int calltype;
16
        unsigned char local_num[64];
17
        unsigned char remote_num[64];
18
        int charge_units;
19
};
20
 
21
#define PPPIOCGCALLINFO _IOWR('t',128,struct pppcallinfo)
22
#define PPPIOCBUNDLE   _IOW('t',129,int)
23
#define PPPIOCGMPFLAGS _IOR('t',130,int)
24
#define PPPIOCSMPFLAGS _IOW('t',131,int)
25
#define PPPIOCSMPMTU   _IOW('t',132,int)
26
#define PPPIOCSMPMRU   _IOW('t',133,int)
27
#define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long)
28
#define PPPIOCSCOMPRESSOR _IOW('t',135,int)
29
 
30
#define PPP_MP          0x003d
31
#define PPP_LINK_COMP   0x00fb
32
 
33
#define SC_MP_PROT       0x00000200
34
#define SC_REJ_MP_PROT   0x00000400
35
#define SC_OUT_SHORT_SEQ 0x00000800
36
#define SC_IN_SHORT_SEQ  0x00004000
37
 
38
#define MP_END_FRAG    0x40
39
#define MP_BEGIN_FRAG  0x80
40
 
41
#ifdef __KERNEL__
42
/*
43
 * this is an 'old friend' from ppp-comp.h under a new name
44
 * check the original include for more information
45
 */
46
struct isdn_ppp_compressor {
47
        struct isdn_ppp_compressor *next,*prev;
48
        int num; /* CCP compression protocol number */
49
        void *(*comp_alloc) (unsigned char *options, int opt_len);
50
        void (*comp_free) (void *state);
51
        int  (*comp_init) (void *state, unsigned char *options, int opt_len,
52
                 int unit, int opthdr, int debug);
53
        void (*comp_reset) (void *state);
54
        int  (*compress) (void *state,struct sk_buff *in, struct sk_buff *skb_out,
55
                 int proto);
56
        void (*comp_stat) (void *state, struct compstat *stats);
57
        void *(*decomp_alloc) (unsigned char *options, int opt_len);
58
        void (*decomp_free) (void *state);
59
        int  (*decomp_init) (void *state, unsigned char *options,
60
                        int opt_len, int unit, int opthdr, int mru, int debug);
61
        void (*decomp_reset) (void *state);
62
        int  (*decompress) (void *state, unsigned char *ibuf, int isize, unsigned char *obuf, int osize);
63
        void (*incomp) (void *state, unsigned char *ibuf, int icnt);
64
        void (*decomp_stat) (void *state, struct compstat *stats);
65
};
66
 
67
extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *);
68
extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *);
69
 
70
#endif /* __KERNEL__ */
71
 
72
#endif /* _LINUX_ISDN_PPP_H */
73
 

powered by: WebSVN 2.1.0

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