/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* $Id: capi.h,v 1.4.6.1 2001/09/23 22:25:05 kai Exp $ * * CAPI 2.0 Interface for Linux * * Copyright 1997 by Carsten Paeth ([email protected]) * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. * */ #ifndef __LINUX_CAPI_H__ #define __LINUX_CAPI_H__ #include <linux/types.h> #include <linux/ioctl.h> #ifndef __KERNEL__ #include <linux/kernelcapi.h> #endif /* * CAPI_REGISTER */ capi_register_params; #define CAPI_REGISTER … /* * CAPI_GET_MANUFACTURER */ #define CAPI_MANUFACTURER_LEN … #define CAPI_GET_MANUFACTURER … /* * CAPI_GET_VERSION */ capi_version; #define CAPI_GET_VERSION … /* * CAPI_GET_SERIAL */ #define CAPI_SERIAL_LEN … #define CAPI_GET_SERIAL … /* * CAPI_GET_PROFILE */ capi_profile; #define CAPI_GET_PROFILE … capi_manufacturer_cmd; /* * CAPI_MANUFACTURER_CMD */ #define CAPI_MANUFACTURER_CMD … /* * CAPI_GET_ERRCODE * capi errcode is set, * if read, write, or ioctl returns EIO, * ioctl returns errcode directly, and in arg, if != 0 */ #define CAPI_GET_ERRCODE … /* * CAPI_INSTALLED */ #define CAPI_INSTALLED … /* * member contr is input for * CAPI_GET_MANUFACTURER, CAPI_GET_VERSION, CAPI_GET_SERIAL * and CAPI_GET_PROFILE */ capi_ioctl_struct; /* * Middleware extension */ #define CAPIFLAG_HIGHJACKING … #define CAPI_GET_FLAGS … #define CAPI_SET_FLAGS … #define CAPI_CLR_FLAGS … #define CAPI_NCCI_OPENCOUNT … #define CAPI_NCCI_GETUNIT … #endif /* __LINUX_CAPI_H__ */