diff options
author | Karsten Keil <keil@b1-systems.de> | 2009-07-23 04:03:05 -0400 |
---|---|---|
committer | Karsten Keil <keil@b1-systems.de> | 2009-07-25 14:22:36 -0400 |
commit | a900845e56617edc005fd8f35bfd5a407aaf96c8 (patch) | |
tree | 2d362ddb8495b142837a792ac1cd638d33da54ff /drivers/isdn/hardware/mISDN/netjet.h | |
parent | 707b2ce6c1f4f1261788f2ff09ad82c35e0e6240 (diff) |
mISDN: Add support for Traverse Technologies NETJet PCI cards
Add support for cards based on the Tiger 300 and Tiger 320
ISDN PCI chip.
Currently only the ISAC ISDN line interface is supported.
Signed-off-by: Karsten Keil <keil@b1-systems.de>
Diffstat (limited to 'drivers/isdn/hardware/mISDN/netjet.h')
-rw-r--r-- | drivers/isdn/hardware/mISDN/netjet.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/drivers/isdn/hardware/mISDN/netjet.h b/drivers/isdn/hardware/mISDN/netjet.h new file mode 100644 index 000000000000..d061ff995607 --- /dev/null +++ b/drivers/isdn/hardware/mISDN/netjet.h | |||
@@ -0,0 +1,58 @@ | |||
1 | /* | ||
2 | * NETjet common header file | ||
3 | * | ||
4 | * Author Karsten Keil | ||
5 | * based on work of Matt Henderson and Daniel Potts, | ||
6 | * Traverse Technologies P/L www.traverse.com.au | ||
7 | * | ||
8 | * Copyright 2009 by Karsten Keil <keil@isdn4linux.de> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
22 | * | ||
23 | */ | ||
24 | |||
25 | #define NJ_CTRL 0x00 | ||
26 | #define NJ_DMACTRL 0x01 | ||
27 | #define NJ_AUXCTRL 0x02 | ||
28 | #define NJ_AUXDATA 0x03 | ||
29 | #define NJ_IRQMASK0 0x04 | ||
30 | #define NJ_IRQMASK1 0x05 | ||
31 | #define NJ_IRQSTAT0 0x06 | ||
32 | #define NJ_IRQSTAT1 0x07 | ||
33 | #define NJ_DMA_READ_START 0x08 | ||
34 | #define NJ_DMA_READ_IRQ 0x0c | ||
35 | #define NJ_DMA_READ_END 0x10 | ||
36 | #define NJ_DMA_READ_ADR 0x14 | ||
37 | #define NJ_DMA_WRITE_START 0x18 | ||
38 | #define NJ_DMA_WRITE_IRQ 0x1c | ||
39 | #define NJ_DMA_WRITE_END 0x20 | ||
40 | #define NJ_DMA_WRITE_ADR 0x24 | ||
41 | #define NJ_PULSE_CNT 0x28 | ||
42 | |||
43 | #define NJ_ISAC_OFF 0xc0 | ||
44 | #define NJ_ISACIRQ 0x10 | ||
45 | |||
46 | #define NJ_IRQM0_RD_MASK 0x03 | ||
47 | #define NJ_IRQM0_RD_IRQ 0x01 | ||
48 | #define NJ_IRQM0_RD_END 0x02 | ||
49 | #define NJ_IRQM0_WR_MASK 0x0c | ||
50 | #define NJ_IRQM0_WR_IRQ 0x04 | ||
51 | #define NJ_IRQM0_WR_END 0x08 | ||
52 | |||
53 | /* one page here is no need to be smaller */ | ||
54 | #define NJ_DMA_SIZE 4096 | ||
55 | /* 2 * 64 byte is a compromise between IRQ count and latency */ | ||
56 | #define NJ_DMA_RXSIZE 128 /* 2 * 64 */ | ||
57 | #define NJ_DMA_TXSIZE 128 /* 2 * 64 */ | ||
58 | |||