linux/drivers/isdn/mISDN/l1oip.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * see notice in l1oip.c
 */

/* debugging */
#define DEBUG_L1OIP_INIT
#define DEBUG_L1OIP_SOCKET
#define DEBUG_L1OIP_MGR
#define DEBUG_L1OIP_MSG

/* enable to disorder received bchannels by sequence 2143658798... */
/*
  #define REORDER_DEBUG
*/

/* frames */
#define L1OIP_MAX_LEN
#define L1OIP_MAX_PERFRAME


/* timers */
#define L1OIP_KEEPALIVE
#define L1OIP_TIMEOUT


/* socket */
#define L1OIP_DEFAULTPORT


/* channel structure */
struct l1oip_chan {};


/* card structure */
struct l1oip {};

extern int l1oip_law_to_4bit(u8 *data, int len, u8 *result, u32 *state);
extern int l1oip_4bit_to_law(u8 *data, int len, u8 *result);
extern int l1oip_alaw_to_ulaw(u8 *data, int len, u8 *result);
extern int l1oip_ulaw_to_alaw(u8 *data, int len, u8 *result);
extern void l1oip_4bit_free(void);
extern int l1oip_4bit_alloc(int ulaw);