linux/include/linux/lapb.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * These are the public elements of the Linux LAPB module.
 */

#ifndef	LAPB_KERNEL_H
#define LAPB_KERNEL_H

#include <linux/skbuff.h>
#include <linux/timer.h>

struct net_device;

#define LAPB_OK
#define LAPB_BADTOKEN
#define LAPB_INVALUE
#define LAPB_CONNECTED
#define LAPB_NOTCONNECTED
#define LAPB_REFUSED
#define LAPB_TIMEDOUT
#define LAPB_NOMEM

#define LAPB_STANDARD
#define LAPB_EXTENDED

#define LAPB_SLP
#define LAPB_MLP

#define LAPB_DTE
#define LAPB_DCE

struct lapb_register_struct {};

struct lapb_parms_struct {};

extern int lapb_register(struct net_device *dev,
			 const struct lapb_register_struct *callbacks);
extern int lapb_unregister(struct net_device *dev);
extern int lapb_getparms(struct net_device *dev, struct lapb_parms_struct *parms);
extern int lapb_setparms(struct net_device *dev, struct lapb_parms_struct *parms);
extern int lapb_connect_request(struct net_device *dev);
extern int lapb_disconnect_request(struct net_device *dev);
extern int lapb_data_request(struct net_device *dev, struct sk_buff *skb);
extern int lapb_data_received(struct net_device *dev, struct sk_buff *skb);

#endif