* add p cc
[mascara-docs.git] / i386 / linux / linux-2.3.21 / drivers / isdn / avmb1 / capidev.h
blobc66554a2979ed101f3a5666d8d09ef22bec552f2
1 /*
2 * $Id: capidev.h,v 1.4 1999/07/01 15:26:32 calle Exp $
4 * CAPI 2.0 Interface for Linux
6 * (c) Copyright 1996 by Carsten Paeth (calle@calle.in-berlin.de)
8 * $Log: capidev.h,v $
9 * Revision 1.4 1999/07/01 15:26:32 calle
10 * complete new version (I love it):
11 * + new hardware independed "capi_driver" interface that will make it easy to:
12 * - support other controllers with CAPI-2.0 (i.e. USB Controller)
13 * - write a CAPI-2.0 for the passive cards
14 * - support serial link CAPI-2.0 boxes.
15 * + wrote "capi_driver" for all supported cards.
16 * + "capi_driver" (supported cards) now have to be configured with
17 * make menuconfig, in the past all supported cards where included
18 * at once.
19 * + new and better informations in /proc/capi/
20 * + new ioctl to switch trace of capi messages per controller
21 * using "avmcapictrl trace [contr] on|off|...."
22 * + complete testcircle with all supported cards and also the
23 * PCMCIA cards (now patch for pcmcia-cs-3.0.13 needed) done.
25 * Revision 1.3 1999/07/01 08:22:58 keil
26 * compatibility macros now in <linux/isdn_compat.h>
28 * Revision 1.2 1999/06/21 15:24:13 calle
29 * extend information in /proc.
31 * Revision 1.1 1997/03/04 21:50:30 calle
32 * Frirst version in isdn4linux
34 * Revision 2.2 1997/02/12 09:31:39 calle
35 * new version
37 * Revision 1.1 1997/01/31 10:32:20 calle
38 * Initial revision
42 struct capidev {
43 int is_open;
44 int is_registered;
45 __u16 applid;
46 struct sk_buff_head recv_queue;
47 #ifdef COMPAT_HAS_NEW_WAITQ
48 wait_queue_head_t recv_wait;
49 #else
50 struct wait_queue *recv_wait;
51 #endif
52 __u16 errcode;
53 /* Statistic */
54 unsigned long nopen;
55 unsigned long nrecvctlpkt;
56 unsigned long nrecvdatapkt;
57 unsigned long nsentctlpkt;
58 unsigned long nsentdatapkt;
61 #define CAPI_MAXMINOR CAPI_MAXAPPL