patch-2.2.12 linux/drivers/isdn/avmb1/avmcard.h
Next file: linux/drivers/isdn/avmb1/b1.c
Previous file: linux/drivers/isdn/avmb1/Makefile
Back to the patch index
Back to the overall index
- Lines: 71
- Date:
Wed Aug 25 17:29:47 1999
- Orig file:
v2.2.11/linux/drivers/isdn/avmb1/avmcard.h
- Orig date:
Mon Aug 9 16:05:55 1999
diff -u --recursive --new-file v2.2.11/linux/drivers/isdn/avmb1/avmcard.h linux/drivers/isdn/avmb1/avmcard.h
@@ -1,9 +1,15 @@
/*
- * $Id: avmcard.h,v 1.2 1999/07/05 15:09:45 calle Exp $
+ * $Id: avmcard.h,v 1.4 1999/08/04 10:10:08 calle Exp $
*
* Copyright 1999 by Carsten Paeth (calle@calle.in-berlin.de)
*
* $Log: avmcard.h,v $
+ * Revision 1.4 1999/08/04 10:10:08 calle
+ * Bugfix: corrected /proc functions, added structure for new AVM cards.
+ *
+ * Revision 1.3 1999/07/23 08:41:47 calle
+ * prepared for new AVM cards.
+ *
* Revision 1.2 1999/07/05 15:09:45 calle
* - renamed "appl_release" to "appl_released".
* - version und profile data now cleared on controller reset
@@ -56,13 +62,22 @@
avm_m1,
avm_m2,
avm_t1isa,
- avm_t1pci
+ avm_t1pci,
+ avm_c4
};
+typedef struct avmcard_dmainfo {
+ __u32 recvlen;
+ __u8 recvbuf[128+2048];
+ struct sk_buff_head send_queue;
+ __u8 sendbuf[128+2048];
+} avmcard_dmainfo;
+
typedef struct avmcard {
char name[32];
unsigned int port;
unsigned irq;
+ unsigned long membase;
enum avmcardtype cardtype;
int cardnr; /* for t1isa */
@@ -78,6 +93,10 @@
int interrupt;
+ void *mbase;
+ __u32 csr;
+ avmcard_dmainfo *dma;
+
struct capi_ctr *ctrl;
} avmcard;
@@ -174,6 +193,7 @@
* int32 Length message
*
*/
+#define RECEIVE_POLLDWORD 0x75 /* t1pci in dword mode */
#define WRITE_REGISTER 0x00
#define READ_REGISTER 0x01
@@ -511,6 +531,10 @@
b1outp(base, B1_INSTAT, 0x00);
b1outp(base, B1_RESET, 0xf0);
b1outp(base, B1_INSTAT, 0x02);
+ break;
+ case avm_c4:
+ case avm_t1pci:
+ b1outp(base, B1_RESET, 0xf0);
break;
}
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)