aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/hfc_2bs0.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/isdn/hisax/hfc_2bs0.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/isdn/hisax/hfc_2bs0.h')
-rw-r--r--drivers/isdn/hisax/hfc_2bs0.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/drivers/isdn/hisax/hfc_2bs0.h b/drivers/isdn/hisax/hfc_2bs0.h
new file mode 100644
index 000000000000..1a50d4a5c968
--- /dev/null
+++ b/drivers/isdn/hisax/hfc_2bs0.h
@@ -0,0 +1,60 @@
1/* $Id: hfc_2bs0.h,v 1.5.2.2 2004/01/12 22:52:26 keil Exp $
2 *
3 * specific defines for CCD's HFC 2BS0
4 *
5 * Author Karsten Keil
6 * Copyright by Karsten Keil <keil@isdn4linux.de>
7 *
8 * This software may be used and distributed according to the terms
9 * of the GNU General Public License, incorporated herein by reference.
10 *
11 */
12
13#define HFC_CTMT 0xe0
14#define HFC_CIRM 0xc0
15#define HFC_CIP 0x80
16#define HFC_Z1 0x00
17#define HFC_Z2 0x08
18#define HFC_Z_LOW 0x00
19#define HFC_Z_HIGH 0x04
20#define HFC_F1_INC 0x28
21#define HFC_FIFO_IN 0x2c
22#define HFC_F1 0x30
23#define HFC_F2 0x34
24#define HFC_F2_INC 0x38
25#define HFC_FIFO_OUT 0x3c
26#define HFC_B1 0x00
27#define HFC_B2 0x02
28#define HFC_REC 0x01
29#define HFC_SEND 0x00
30#define HFC_CHANNEL(ch) (ch ? HFC_B2 : HFC_B1)
31
32#define HFC_STATUS 0
33#define HFC_DATA 1
34#define HFC_DATA_NODEB 2
35
36/* Status (READ) */
37#define HFC_BUSY 0x01
38#define HFC_TIMINT 0x02
39#define HFC_EXTINT 0x04
40
41/* CTMT (Write) */
42#define HFC_CLTIMER 0x10
43#define HFC_TIM50MS 0x08
44#define HFC_TIMIRQE 0x04
45#define HFC_TRANSB2 0x02
46#define HFC_TRANSB1 0x01
47
48/* CIRM (Write) */
49#define HFC_RESET 0x08
50#define HFC_MEM8K 0x10
51#define HFC_INTA 0x01
52#define HFC_INTB 0x02
53#define HFC_INTC 0x03
54#define HFC_INTD 0x04
55#define HFC_INTE 0x05
56#define HFC_INTF 0x06
57
58extern void main_irq_hfc(struct BCState *bcs);
59extern void inithfc(struct IsdnCardState *cs);
60extern void releasehfc(struct IsdnCardState *cs);