patch-2.3.34 linux/drivers/net/wan/syncppp.h

Next file: linux/drivers/pci/pci.ids
Previous file: linux/drivers/net/wan/syncppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/drivers/net/wan/syncppp.h linux/drivers/net/wan/syncppp.h
@@ -51,10 +51,13 @@
 
 struct ppp_device
 {	
-	struct net_device dev;	/* Network device */
+	struct net_device *dev;	/* Network device pointer */
 	struct sppp sppp;	/* Synchronous PPP */
 };
 
+#define sppp_of(dev)	\
+	    (&((struct ppp_device *)(*(unsigned long *)((dev)->priv)))->sppp)
+
 #define PP_KEEPALIVE    0x01    /* use keepalive protocol */
 #define PP_CISCO        0x02    /* use Cisco protocol instead of PPP */
 #define PP_TIMO         0x04    /* cp_timeout routine active */
@@ -82,6 +85,7 @@
 int sppp_open (struct net_device *dev);
 int sppp_reopen (struct net_device *dev);
 int sppp_close (struct net_device *dev);
+void sync_ppp_init (void);
 #endif
 
 #define SPPPIOCCISCO	(SIOCDEVPRIVATE)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)