Merge with Linux 2.4.0-test6-pre9.
[linux-2.6/linux-mips.git] / drivers / isdn / hisax / hfc_2bs0.h
blobdd978e781aa0373c23a5b892a9e462f2cf118f4b
1 /* $Id: hfc_2bs0.h,v 1.3 2000/06/26 08:59:13 keil Exp $
3 * specific defines for CCD's HFC 2BS0
5 * Author Karsten Keil (keil@isdn4linux.de)
7 * This file is (c) under GNU PUBLIC LICENSE
9 */
11 #define HFC_CTMT 0xe0
12 #define HFC_CIRM 0xc0
13 #define HFC_CIP 0x80
14 #define HFC_Z1 0x00
15 #define HFC_Z2 0x08
16 #define HFC_Z_LOW 0x00
17 #define HFC_Z_HIGH 0x04
18 #define HFC_F1_INC 0x28
19 #define HFC_FIFO_IN 0x2c
20 #define HFC_F1 0x30
21 #define HFC_F2 0x34
22 #define HFC_F2_INC 0x38
23 #define HFC_FIFO_OUT 0x3c
24 #define HFC_B1 0x00
25 #define HFC_B2 0x02
26 #define HFC_REC 0x01
27 #define HFC_SEND 0x00
28 #define HFC_CHANNEL(ch) (ch ? HFC_B2 : HFC_B1)
30 #define HFC_STATUS 0
31 #define HFC_DATA 1
32 #define HFC_DATA_NODEB 2
34 /* Status (READ) */
35 #define HFC_BUSY 0x01
36 #define HFC_TIMINT 0x02
37 #define HFC_EXTINT 0x04
39 /* CTMT (Write) */
40 #define HFC_CLTIMER 0x10
41 #define HFC_TIM50MS 0x08
42 #define HFC_TIMIRQE 0x04
43 #define HFC_TRANSB2 0x02
44 #define HFC_TRANSB1 0x01
46 /* CIRM (Write) */
47 #define HFC_RESET 0x08
48 #define HFC_MEM8K 0x10
49 #define HFC_INTA 0x01
50 #define HFC_INTB 0x02
51 #define HFC_INTC 0x03
52 #define HFC_INTD 0x04
53 #define HFC_INTE 0x05
54 #define HFC_INTF 0x06
56 extern void main_irq_hfc(struct BCState *bcs);
57 extern void inithfc(struct IsdnCardState *cs);
58 extern void releasehfc(struct IsdnCardState *cs);