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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [isdn/] [isdn_ppp.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/* $Id: isdn_ppp.h,v 1.1 2005-12-20 10:16:56 jcastillo Exp $
2
 
3
 * header for Linux ISDN subsystem, functions for synchronous PPP (linklevel).
4
 *
5
 * Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
6
 *
7
 * This program is free software; you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License as published by
9
 * the Free Software Foundation; either version 2, or (at your option)
10
 * any later version.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 * GNU General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU General Public License
18
 * along with this program; if not, write to the Free Software
19
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
 *
21
 * $Log: not supported by cvs2svn $
22
 * Revision 1.1.1.1  2001/09/10 07:44:18  simons
23
 * Initial import
24
 *
25
 * Revision 1.1.1.1  2001/07/02 17:58:31  simons
26
 * Initial revision
27
 *
28
 * Revision 1.10  1997/06/17 13:06:00  hipp
29
 * Applied Eric's underflow-patches (slightly modified)
30
 * more compression changes (but disabled at the moment)
31
 * changed one copy_to_user() to run with enabled IRQs
32
 * a few MP changes
33
 * changed 'proto' handling in the isdn_ppp receive code
34
 *
35
 * Revision 1.9  1997/02/11 18:32:59  fritz
36
 * Bugfix in isdn_ppp_free_mpqueue().
37
 *
38
 * Revision 1.8  1997/02/10 10:11:33  fritz
39
 * More changes for Kernel 2.1.X compatibility.
40
 *
41
 * Revision 1.7  1997/02/03 23:18:57  fritz
42
 * Removed isdn_ppp_free_sqqueue prototype
43
 *         and ippp_table (both static in isdn_ppp.c).
44
 *
45
 * Revision 1.6  1996/09/23 01:58:11  fritz
46
 * Fix: With syncPPP encapsulation, discard LCP packets
47
 *      when calculating hangup timeout.
48
 *
49
 * Revision 1.5  1996/09/07 12:51:34  hipp
50
 * *** empty log message ***
51
 *
52
 * Revision 1.4  1996/05/06 11:34:56  hipp
53
 * fixed a few bugs
54
 *
55
 * Revision 1.3  1996/04/30 09:33:10  fritz
56
 * Removed compatibility-macros.
57
 *
58
 * Revision 1.2  1996/04/20 16:35:11  fritz
59
 * Changed isdn_ppp_receive to use sk_buff as parameter.
60
 * Added definition of isdn_ppp_dial_slave and ippp_table.
61
 *
62
 * Revision 1.1  1996/01/10 21:39:10  fritz
63
 * Initial revision
64
 *
65
 */
66
 
67
#include <linux/ppp_defs.h>     /* for PPP_PROTOCOL */
68
extern void isdn_ppp_timer_timeout(void);
69
extern int isdn_ppp_read(int, struct file *, char *, int);
70
extern int isdn_ppp_write(int, struct file *, const char *, int);
71
extern int isdn_ppp_open(int, struct file *);
72
extern int isdn_ppp_init(void);
73
extern void isdn_ppp_cleanup(void);
74
extern int isdn_ppp_free(isdn_net_local *);
75
extern int isdn_ppp_bind(isdn_net_local *);
76
extern int isdn_ppp_xmit(struct sk_buff *, struct device *);
77
extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *);
78
extern int isdn_ppp_dev_ioctl(struct device *, struct ifreq *, int);
79
#if (LINUX_VERSION_CODE < 0x020117)
80
extern int isdn_ppp_select(int, struct file *, int, select_table *);
81
#else
82
extern unsigned int isdn_ppp_poll(struct file *, poll_table *);
83
#endif
84
extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long);
85
extern void isdn_ppp_release(int, struct file *);
86
extern int isdn_ppp_dial_slave(char *);
87
extern void isdn_ppp_wakeup_daemon(isdn_net_local *);
88
 
89
#define IPPP_OPEN       0x01
90
#define IPPP_CONNECT    0x02
91
#define IPPP_CLOSEWAIT  0x04
92
#define IPPP_NOBLOCK    0x08
93
#define IPPP_ASSIGNED   0x10
94
 
95
#define IPPP_MAX_HEADER 10
96
 
97
 

powered by: WebSVN 2.1.0

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