linux/drivers/isdn/mISDN/layer2.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Layer 2 defines
 *
 * Copyright 2008  by Karsten Keil <[email protected]>
 */

#include <linux/mISDNif.h>
#include <linux/skbuff.h>
#include "fsm.h"

#define MAX_WINDOW

struct manager {};

struct teimgr {};

struct laddr {};

struct layer2 {};

enum {};

#define L2_STATE_COUNT

extern struct layer2	*create_l2(struct mISDNchannel *, u_int,
				   u_long, int, int);
extern int		tei_l2(struct layer2 *, u_int, u_long arg);


/* from tei.c */
extern int		l2_tei(struct layer2 *, u_int, u_long arg);
extern void		TEIrelease(struct layer2 *);
extern int		TEIInit(u_int *);
extern void		TEIFree(void);

#define MAX_L2HEADER_LEN

#define RR
#define RNR
#define REJ
#define SABME
#define SABM
#define DM
#define UI
#define DISC
#define UA
#define FRMR
#define XID

#define CMD
#define RSP

#define LC_FLUSH_WAIT

#define FLG_LAPB
#define FLG_LAPD
#define FLG_ORIG
#define FLG_MOD128
#define FLG_PEND_REL
#define FLG_L3_INIT
#define FLG_T200_RUN
#define FLG_ACK_PEND
#define FLG_REJEXC
#define FLG_OWN_BUSY
#define FLG_PEER_BUSY
#define FLG_DCHAN_BUSY
#define FLG_L1_ACTIV
#define FLG_ESTAB_PEND
#define FLG_PTP
#define FLG_FIXED_TEI
#define FLG_L2BLOCK
#define FLG_L1_NOTREADY
#define FLG_LAPD_NET