aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/isdn_divertif.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/isdn_divertif.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/isdn_divertif.h')
-rw-r--r--include/linux/isdn_divertif.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/linux/isdn_divertif.h b/include/linux/isdn_divertif.h
new file mode 100644
index 000000000000..0e7e44ce8301
--- /dev/null
+++ b/include/linux/isdn_divertif.h
@@ -0,0 +1,42 @@
1/* $Id: isdn_divertif.h,v 1.4.6.1 2001/09/23 22:25:05 kai Exp $
2 *
3 * Header for the diversion supplementary interface for i4l.
4 *
5 * Author Werner Cornelius (werner@titro.de)
6 * Copyright by Werner Cornelius (werner@titro.de)
7 *
8 * This software may be used and distributed according to the terms
9 * of the GNU General Public License, incorporated herein by reference.
10 *
11 */
12
13
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
26
27/***************************************************************/
28/* structure exchanging data between isdn hl and divert module */
29/***************************************************************/
30typedef struct
31 { ulong if_magic; /* magic info and version */
32 int cmd; /* command */
33 int (*stat_callback)(isdn_ctrl *); /* supplied by divert module when calling */
34 int (*ll_cmd)(isdn_ctrl *); /* supplied by hl on return */
35 char * (*drv_to_name)(int); /* map a driver id to name, supplied by hl */
36 int (*name_to_drv)(char *); /* map a driver id to name, supplied by hl */
37 } isdn_divert_if;
38
39/*********************/
40/* function register */
41/*********************/
42extern int DIVERT_REG_NAME(isdn_divert_if *);