~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/lapb.h

Version: ~ [ linux-5.3-rc1 ] ~ [ linux-5.2.2 ] ~ [ linux-5.1.19 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.60 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.134 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.186 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.186 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.70 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-3.9.11 ] ~ [ linux-3.8.13 ] ~ [ linux-3.7.10 ] ~ [ linux-3.6.11 ] ~ [ linux-3.5.7 ] ~ [ linux-3.4.113 ] ~ [ linux-3.3.8 ] ~ [ linux-3.2.102 ] ~ [ linux-3.1.10 ] ~ [ linux-3.0.101 ] ~ [ linux-2.6.39.4 ] ~ [ linux-2.6.38.8 ] ~ [ linux-2.6.37.6 ] ~ [ linux-2.6.36.4 ] ~ [ linux-2.6.35.14 ] ~ [ linux-2.6.34.15 ] ~ [ linux-2.6.33.20 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * These are the public elements of the Linux LAPB module.
  4  */
  5 
  6 #ifndef LAPB_KERNEL_H
  7 #define LAPB_KERNEL_H
  8 
  9 #define LAPB_OK                 0
 10 #define LAPB_BADTOKEN           1
 11 #define LAPB_INVALUE            2
 12 #define LAPB_CONNECTED          3
 13 #define LAPB_NOTCONNECTED       4
 14 #define LAPB_REFUSED            5
 15 #define LAPB_TIMEDOUT           6
 16 #define LAPB_NOMEM              7
 17 
 18 #define LAPB_STANDARD           0x00
 19 #define LAPB_EXTENDED           0x01
 20 
 21 #define LAPB_SLP                0x00
 22 #define LAPB_MLP                0x02
 23 
 24 #define LAPB_DTE                0x00
 25 #define LAPB_DCE                0x04
 26 
 27 struct lapb_register_struct {
 28         void (*connect_confirmation)(struct net_device *dev, int reason);
 29         void (*connect_indication)(struct net_device *dev, int reason);
 30         void (*disconnect_confirmation)(struct net_device *dev, int reason);
 31         void (*disconnect_indication)(struct net_device *dev, int reason);
 32         int  (*data_indication)(struct net_device *dev, struct sk_buff *skb);
 33         void (*data_transmit)(struct net_device *dev, struct sk_buff *skb);
 34 };
 35 
 36 struct lapb_parms_struct {
 37         unsigned int t1;
 38         unsigned int t1timer;
 39         unsigned int t2;
 40         unsigned int t2timer;
 41         unsigned int n2;
 42         unsigned int n2count;
 43         unsigned int window;
 44         unsigned int state;
 45         unsigned int mode;
 46 };
 47 
 48 extern int lapb_register(struct net_device *dev,
 49                          const struct lapb_register_struct *callbacks);
 50 extern int lapb_unregister(struct net_device *dev);
 51 extern int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms);
 52 extern int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms);
 53 extern int lapb_connect_request(struct net_device *dev);
 54 extern int lapb_disconnect_request(struct net_device *dev);
 55 extern int lapb_data_request(struct net_device *dev, struct sk_buff *skb);
 56 extern int lapb_data_received(struct net_device *dev, struct sk_buff *skb);
 57 
 58 #endif
 59 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp