linux/include/uapi/linux/hdlcdrv.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * hdlcdrv.h  -- HDLC packet radio network driver.
 * The Linux soundcard driver for 1200 baud and 9600 baud packet radio
 * (C) 1996-1998 by Thomas Sailer, HB9JNX/AE4WA
 */

#ifndef _UAPI_HDLCDRV_H
#define _UAPI_HDLCDRV_H

/* -------------------------------------------------------------------- */
/*
 * structs for the IOCTL commands
 */

struct hdlcdrv_params {};	

struct hdlcdrv_channel_params {};	

struct hdlcdrv_old_channel_state {};

struct hdlcdrv_channel_state {};

struct hdlcdrv_ioctl {};

/* -------------------------------------------------------------------- */

/*
 * ioctl values
 */
#define HDLCDRVCTL_GETMODEMPAR
#define HDLCDRVCTL_SETMODEMPAR
#define HDLCDRVCTL_MODEMPARMASK
#define HDLCDRVCTL_GETCHANNELPAR
#define HDLCDRVCTL_SETCHANNELPAR
#define HDLCDRVCTL_OLDGETSTAT
#define HDLCDRVCTL_CALIBRATE
#define HDLCDRVCTL_GETSTAT

/*
 * these are mainly for debugging purposes
 */
#define HDLCDRVCTL_GETSAMPLES
#define HDLCDRVCTL_GETBITS

/*
 * not handled by hdlcdrv, but by its depending drivers
 */
#define HDLCDRVCTL_GETMODE
#define HDLCDRVCTL_SETMODE
#define HDLCDRVCTL_MODELIST
#define HDLCDRVCTL_DRIVERNAME

/*
 * mask of needed modem parameters, returned by HDLCDRVCTL_MODEMPARMASK
 */
#define HDLCDRV_PARMASK_IOBASE
#define HDLCDRV_PARMASK_IRQ
#define HDLCDRV_PARMASK_DMA
#define HDLCDRV_PARMASK_DMA2
#define HDLCDRV_PARMASK_SERIOBASE
#define HDLCDRV_PARMASK_PARIOBASE
#define HDLCDRV_PARMASK_MIDIIOBASE

/* -------------------------------------------------------------------- */


/* -------------------------------------------------------------------- */

#endif /* _UAPI_HDLCDRV_H */

/* -------------------------------------------------------------------- */