~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/linux/b1lli.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * $Id: b1lli.h,v 1.8 1999/07/01 15:26:54 calle Exp $
  3  *
  4  * ISDN lowlevel-module for AVM B1-card.
  5  *
  6  * Copyright 1996 by Carsten Paeth (calle@calle.in-berlin.de)
  7  *
  8  * $Log: b1lli.h,v $
  9  * Revision 1.8  1999/07/01 15:26:54  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.
 24  *
 25  * Revision 1.7  1999/06/21 15:24:25  calle
 26  * extend information in /proc.
 27  *
 28  * Revision 1.6  1999/04/15 19:49:36  calle
 29  * fix fuer die B1-PCI. Jetzt geht z.B. auch IRQ 17 ...
 30  *
 31  * Revision 1.5  1998/10/25 14:50:28  fritz
 32  * Backported from MIPS (Cobalt).
 33  *
 34  * Revision 1.4  1998/03/29 16:05:02  calle
 35  * changes from 2.0 tree merged.
 36  *
 37  * Revision 1.1.2.9  1998/03/20 14:30:02  calle
 38  * added cardnr to detect if you try to add same T1 to different io address.
 39  * change number of nccis depending on number of channels.
 40  *
 41  * Revision 1.1.2.8  1998/03/04 17:32:33  calle
 42  * Changes for T1.
 43  *
 44  * Revision 1.1.2.7  1998/02/27 15:38:29  calle
 45  * T1 running with slow link.
 46  *
 47  * Revision 1.1.2.6  1998/02/24 17:57:36  calle
 48  * changes for T1.
 49  *
 50  * Revision 1.3  1998/01/31 10:54:37  calle
 51  * include changes for PCMCIA cards from 2.0 version
 52  *
 53  * Revision 1.2  1997/12/10 19:38:42  calle
 54  * get changes from 2.0 tree
 55  *
 56  * Revision 1.1.2.2  1997/11/26 16:57:26  calle
 57  * more changes for B1/M1/T1.
 58  *
 59  * Revision 1.1.2.1  1997/11/26 10:47:01  calle
 60  * prepared for M1 (Mobile) and T1 (PMX) cards.
 61  * prepared to set configuration after load to support other D-channel
 62  * protocols, point-to-point and leased lines.
 63  *
 64  * Revision 1.1  1997/03/04 21:27:32  calle
 65  * First version in isdn4linux
 66  *
 67  * Revision 2.2  1997/02/12 09:31:39  calle
 68  * new version
 69  *
 70  * Revision 1.1  1997/01/31 10:32:20  calle
 71  * Initial revision
 72  *
 73  */
 74 
 75 #ifndef _B1LLI_H_
 76 #define _B1LLI_H_
 77 /*
 78  * struct for loading t4 file 
 79  */
 80 typedef struct avmb1_t4file {
 81         int len;
 82         unsigned char *data;
 83 } avmb1_t4file;
 84 
 85 typedef struct avmb1_loaddef {
 86         int contr;
 87         avmb1_t4file t4file;
 88 } avmb1_loaddef;
 89 
 90 typedef struct avmb1_loadandconfigdef {
 91         int contr;
 92         avmb1_t4file t4file;
 93         avmb1_t4file t4config; 
 94 } avmb1_loadandconfigdef;
 95 
 96 typedef struct avmb1_resetdef {
 97         int contr;
 98 } avmb1_resetdef;
 99 
100 typedef struct avmb1_getdef {
101         int contr;
102         int cardtype;
103         int cardstate;
104 } avmb1_getdef;
105 
106 /*
107  * struct for adding new cards 
108  */
109 typedef struct avmb1_carddef {
110         int port;
111         int irq;
112 } avmb1_carddef;
113 
114 #define AVM_CARDTYPE_B1         0
115 #define AVM_CARDTYPE_T1         1
116 #define AVM_CARDTYPE_M1         2
117 #define AVM_CARDTYPE_M2         3
118 
119 typedef struct avmb1_extcarddef {
120         int port;
121         int irq;
122         int cardtype;
123         int cardnr;  /* for HEMA/T1 */
124 } avmb1_extcarddef;
125 
126 #define AVMB1_LOAD              0       /* load image to card */
127 #define AVMB1_ADDCARD           1       /* add a new card */
128 #define AVMB1_RESETCARD         2       /* reset a card */
129 #define AVMB1_LOAD_AND_CONFIG   3       /* load image and config to card */
130 #define AVMB1_ADDCARD_WITH_TYPE 4       /* add a new card, with cardtype */
131 #define AVMB1_GET_CARDINFO      5       /* get cardtype */
132 #define AVMB1_REMOVECARD        6       /* remove a card (usefull for T1) */
133 
134 #define AVMB1_REGISTERCARD_IS_OBSOLETE
135 
136 #endif                          /* _B1LLI_H_ */
137 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.