Merge with Linux 2.4.0-test6-pre9.
[linux-2.6/linux-mips.git] / drivers / isdn / isdn_ppp.h
blob20ab41046cb05f03d32ed554008abc37d71b8ae3
1 /* $Id: isdn_ppp.h,v 1.16 2000/05/18 23:14:18 keil Exp $
3 * header for Linux ISDN subsystem, functions for synchronous PPP (linklevel).
5 * Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
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.
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.
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.
23 #include <linux/ppp_defs.h> /* for PPP_PROTOCOL */
24 #include <linux/isdn_ppp.h> /* for isdn_ppp info */
25 extern int isdn_ppp_read(int, struct file *, char *, int);
26 extern int isdn_ppp_write(int, struct file *, const char *, int);
27 extern int isdn_ppp_open(int, struct file *);
28 extern int isdn_ppp_init(void);
29 extern void isdn_ppp_cleanup(void);
30 extern int isdn_ppp_free(isdn_net_local *);
31 extern int isdn_ppp_bind(isdn_net_local *);
32 extern int isdn_ppp_xmit(struct sk_buff *, struct net_device *);
33 extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *);
34 extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int);
35 extern unsigned int isdn_ppp_poll(struct file *, struct poll_table_struct *);
36 extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long);
37 extern void isdn_ppp_release(int, struct file *);
38 extern int isdn_ppp_dial_slave(char *);
39 extern void isdn_ppp_wakeup_daemon(isdn_net_local *);
41 extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *ipc);
42 extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *ipc);
44 #define IPPP_OPEN 0x01
45 #define IPPP_CONNECT 0x02
46 #define IPPP_CLOSEWAIT 0x04
47 #define IPPP_NOBLOCK 0x08
48 #define IPPP_ASSIGNED 0x10
50 #define IPPP_MAX_HEADER 10