Merge branch 'docs-next' of git://git.lwn.net/linux-2.6
[linux-2.6/next.git] / include / linux / isdn_divertif.h
blob07821ca5955f42872e5b2748272cc7bf73bc2c4c
1 /* $Id: isdn_divertif.h,v 1.4.6.1 2001/09/23 22:25:05 kai Exp $
3 * Header for the diversion supplementary interface for i4l.
5 * Author Werner Cornelius (werner@titro.de)
6 * Copyright by Werner Cornelius (werner@titro.de)
8 * This software may be used and distributed according to the terms
9 * of the GNU General Public License, incorporated herein by reference.
14 /***********************************************************/
15 /* magic value is also used to control version information */
16 /***********************************************************/
17 #define DIVERT_IF_MAGIC 0x25873401
18 #define DIVERT_CMD_REG 0x00 /* register command */
19 #define DIVERT_CMD_REL 0x01 /* release command */
20 #define DIVERT_NO_ERR 0x00 /* return value no error */
21 #define DIVERT_CMD_ERR 0x01 /* invalid cmd */
22 #define DIVERT_VER_ERR 0x02 /* magic/version invalid */
23 #define DIVERT_REG_ERR 0x03 /* module already registered */
24 #define DIVERT_REL_ERR 0x04 /* module not registered */
25 #define DIVERT_REG_NAME isdn_register_divert
27 #ifdef __KERNEL__
28 #include <linux/isdnif.h>
29 #include <linux/types.h>
31 /***************************************************************/
32 /* structure exchanging data between isdn hl and divert module */
33 /***************************************************************/
34 typedef struct
35 { ulong if_magic; /* magic info and version */
36 int cmd; /* command */
37 int (*stat_callback)(isdn_ctrl *); /* supplied by divert module when calling */
38 int (*ll_cmd)(isdn_ctrl *); /* supplied by hl on return */
39 char * (*drv_to_name)(int); /* map a driver id to name, supplied by hl */
40 int (*name_to_drv)(char *); /* map a driver id to name, supplied by hl */
41 } isdn_divert_if;
43 /*********************/
44 /* function register */
45 /*********************/
46 extern int DIVERT_REG_NAME(isdn_divert_if *);
47 #endif