patch-2.3.14 linux/include/linux/b1lli.h

Next file: linux/include/linux/b1pcmcia.h
Previous file: linux/include/linux/atalk.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.13/linux/include/linux/b1lli.h linux/include/linux/b1lli.h
@@ -1,11 +1,30 @@
 /*
- * $Id: b1lli.h,v 1.6 1999/04/15 19:49:36 calle Exp $
+ * $Id: b1lli.h,v 1.8 1999/07/01 15:26:54 calle Exp $
  *
  * ISDN lowlevel-module for AVM B1-card.
  *
  * Copyright 1996 by Carsten Paeth (calle@calle.in-berlin.de)
  *
  * $Log: b1lli.h,v $
+ * Revision 1.8  1999/07/01 15:26:54  calle
+ * complete new version (I love it):
+ * + new hardware independed "capi_driver" interface that will make it easy to:
+ *   - support other controllers with CAPI-2.0 (i.e. USB Controller)
+ *   - write a CAPI-2.0 for the passive cards
+ *   - support serial link CAPI-2.0 boxes.
+ * + wrote "capi_driver" for all supported cards.
+ * + "capi_driver" (supported cards) now have to be configured with
+ *   make menuconfig, in the past all supported cards where included
+ *   at once.
+ * + new and better informations in /proc/capi/
+ * + new ioctl to switch trace of capi messages per controller
+ *   using "avmcapictrl trace [contr] on|off|...."
+ * + complete testcircle with all supported cards and also the
+ *   PCMCIA cards (now patch for pcmcia-cs-3.0.13 needed) done.
+ *
+ * Revision 1.7  1999/06/21 15:24:25  calle
+ * extend information in /proc.
+ *
  * Revision 1.6  1999/04/15 19:49:36  calle
  * fix fuer die B1-PCI. Jetzt geht z.B. auch IRQ 17 ...
  *
@@ -96,7 +115,6 @@
 #define AVM_CARDTYPE_T1		1
 #define AVM_CARDTYPE_M1		2
 #define AVM_CARDTYPE_M2		3
-#define AVM_CARDTYPE_B1PCI	4
 
 typedef struct avmb1_extcarddef {
 	int port;
@@ -113,107 +131,6 @@
 #define AVMB1_GET_CARDINFO	5	/* get cardtype */
 #define AVMB1_REMOVECARD	6	/* remove a card (usefull for T1) */
 
-
-
-/*
- * card states for startup
- */
-
-#define CARD_FREE	0
-#define CARD_DETECTED	1
-#define CARD_LOADING	2
-#define CARD_INITSTATE	4
-#define CARD_RUNNING	5
-#define CARD_ACTIVE	6
-
-#ifdef __KERNEL__
-
-#define	AVMB1_PORTLEN		0x1f
-
-#define AVM_MAXVERSION		8
-
-#define AVM_NAPPS		30
-#define AVM_NNCCI_PER_CHANNEL	4
-
-/*
- * Main driver data
- */
-
-typedef struct avmb1_card {
-	struct avmb1_card *next;
-	int cnr;
-	unsigned int port;
-	unsigned irq;
-	int cardtype;
-	int cardnr; /* for T1-HEMA */
-	volatile unsigned short cardstate;
-	int interrupt;
-	int blocked;
-	int versionlen;
-	char versionbuf[1024];
-	char *version[AVM_MAXVERSION];
-	char msgbuf[128];	/* capimsg msg part */
-	char databuf[2048];	/* capimsg data part */
-	capi_version cversion;
-	char name[10];
-} avmb1_card;
-
-/*
- * Versions
- */
-
-#define	VER_DRIVER	0
-#define	VER_CARDTYPE	1
-#define	VER_HWID	2
-#define	VER_SERIAL	3
-#define	VER_OPTION	4
-#define	VER_PROTO	5
-#define	VER_PROFILE	6
-#define	VER_CAPI	7
-
-
-/* b1lli.c */
-int B1_detect(unsigned int base, int cardtype);
-int T1_detectandinit(unsigned int base, unsigned irq, int cardnr);
-void B1_reset(unsigned int base);
-void T1_reset(unsigned int base);
-int B1_load_t4file(unsigned int base, avmb1_t4file * t4file);
-int B1_load_config(unsigned int base, avmb1_t4file * config);
-int B1_loaded(unsigned int base);
-void B1_setinterrupt(unsigned int base, unsigned irq, int cardtype);
-unsigned char B1_disable_irq(unsigned int base);
-void T1_disable_irq(unsigned int base);
-int B1_valid_irq(unsigned irq, int cardtype);
-int B1_valid_port(unsigned port, int cardtype);
-void B1_handle_interrupt(avmb1_card * card);
-void B1_send_init(unsigned int port,
-	    unsigned int napps, unsigned int nncci, unsigned int cardnr);
-void B1_send_register(unsigned int port,
-		      __u16 appid, __u32 nmsg,
-		      __u32 nb3conn, __u32 nb3blocks, __u32 b3bsize);
-void B1_send_release(unsigned int port, __u16 appid);
-void B1_send_message(unsigned int port, struct sk_buff *skb);
-
-/* b1capi.c */
-void avmb1_handle_new_ncci(avmb1_card * card,
-			   __u16 appl, __u32 ncci, __u32 winsize);
-void avmb1_handle_free_ncci(avmb1_card * card,
-			    __u16 appl, __u32 ncci);
-void avmb1_handle_capimsg(avmb1_card * card, __u16 appl, struct sk_buff *skb);
-void avmb1_card_ready(avmb1_card * card);
-
-/* standard calls, with check and allocation of resources */
-int avmb1_addcard(int port, int irq, int cardtype);
-int avmb1_probecard(int port, int irq, int cardtype);
-
-
-int avmb1_resetcard(int cardnr);
-
-/* calls for pcmcia driver */
-int avmb1_detectcard(int port, int irq, int cardtype);
-int avmb1_registercard(int port, int irq, int cardtype, int allocio);
-int avmb1_unregistercard(int cnr, int freeio);
-
-#endif				/* __KERNEL__ */
+#define	AVMB1_REGISTERCARD_IS_OBSOLETE
 
 #endif				/* _B1LLI_H_ */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)