OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [isdn/] [hisax/] [hfc_2bds0.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/* $Id: hfc_2bds0.h,v 1.1 2005-12-20 10:17:01 jcastillo Exp $
2
 
3
 *  specific defines for CCD's HFC 2BDS0
4
 *
5
 * Author       Karsten Keil (keil@temic-ech.spacenet.de)
6
 *
7
 *
8
 * $Log: not supported by cvs2svn $
9
 * Revision 1.1.1.1  2001/09/10 07:44:18  simons
10
 * Initial import
11
 *
12
 * Revision 1.1.1.1  2001/07/02 17:58:32  simons
13
 * Initial revision
14
 *
15
 * Revision 1.1.2.2  1998/01/27 22:41:36  keil
16
 * add set_cs_func()
17
 *
18
 * Revision 1.1.2.1  1998/01/11 22:54:02  keil
19
 * Teles 16.3c (HFC 2BDS0) first version
20
 *
21
 *
22
 */
23
 
24
#define HFCD_CIRM       0x18
25
#define HFCD_CTMT       0x19
26
#define HFCD_INT_M1     0x1A
27
#define HFCD_INT_M2     0x1B
28
#define HFCD_INT_S1     0x1E
29
#define HFCD_STAT       0x1C
30
#define HFCD_STAT_DISB  0x1D
31
#define HFCD_STATES     0x30
32
#define HFCD_SCTRL      0x31
33
#define HFCD_TEST       0x32
34
#define HFCD_SQ         0x34
35
#define HFCD_CLKDEL     0x37
36
#define HFCD_MST_MODE   0x2E
37
#define HFCD_CONN       0x2F
38
 
39
#define HFCD_FIFO       0x80
40
#define HFCD_Z1         0x10
41
#define HFCD_Z2         0x18
42
#define HFCD_Z_LOW      0x00
43
#define HFCD_Z_HIGH     0x04
44
#define HFCD_F1_INC     0x12
45
#define HFCD_FIFO_IN    0x16
46
#define HFCD_F1         0x1a
47
#define HFCD_F2         0x1e
48
#define HFCD_F2_INC     0x22
49
#define HFCD_FIFO_OUT   0x26
50
#define HFCD_REC        0x01
51
#define HFCD_SEND       0x00
52
 
53
#define HFCB_FIFO       0x80
54
#define HFCB_Z1         0x00
55
#define HFCB_Z2         0x08
56
#define HFCB_Z_LOW      0x00
57
#define HFCB_Z_HIGH     0x04
58
#define HFCB_F1_INC     0x28
59
#define HFCB_FIFO_IN    0x2c
60
#define HFCB_F1         0x30
61
#define HFCB_F2         0x34
62
#define HFCB_F2_INC     0x38
63
#define HFCB_FIFO_OUT   0x3c
64
#define HFCB_REC        0x01
65
#define HFCB_SEND       0x00
66
#define HFCB_B1         0x00
67
#define HFCB_B2         0x02
68
#define HFCB_CHANNEL(ch) (ch ? HFCB_B2 : HFCB_B1)
69
 
70
#define HFCD_STATUS     0
71
#define HFCD_DATA       1
72
#define HFCD_DATA_NODEB 2
73
 
74
/* Status (READ) */
75
#define HFCD_BUSY       0x01
76
#define HFCD_BUSY_NBUSY 0x04
77
#define HFCD_TIMER_ELAP 0x10
78
#define HFCD_STATINT    0x20
79
#define HFCD_FRAMEINT   0x40
80
#define HFCD_ANYINT     0x80
81
 
82
/* CTMT (Write) */
83
#define HFCD_CLTIMER 0x80
84
#define HFCD_TIM25  0x00
85
#define HFCD_TIM50  0x08
86
#define HFCD_TIM400 0x10
87
#define HFCD_TIM800 0x18
88
#define HFCD_AUTO_TIMER 0x20
89
#define HFCD_TRANSB2 0x02
90
#define HFCD_TRANSB1 0x01
91
 
92
/* CIRM (Write) */
93
#define HFCD_RESET      0x08
94
#define HFCD_MEM8K      0x10
95
#define HFCD_INTA       0x01
96
#define HFCD_INTB       0x02
97
#define HFCD_INTC       0x03
98
#define HFCD_INTD       0x04
99
#define HFCD_INTE       0x05
100
#define HFCD_INTF       0x06
101
 
102
/* INT_M1;INT_S1 */
103
#define HFCD_INTS_B1TRANS       0x01
104
#define HFCD_INTS_B2TRANS       0x02
105
#define HFCD_INTS_DTRANS        0x04
106
#define HFCD_INTS_B1REC         0x08
107
#define HFCD_INTS_B2REC         0x10
108
#define HFCD_INTS_DREC          0x20
109
#define HFCD_INTS_L1STATE       0x40
110
#define HFCD_INTS_TIMER         0x80
111
 
112
/* INT_M2 */
113
#define HFCD_IRQ_ENABLE         0x08
114
 
115
/* STATES */
116
#define HFCD_LOAD_STATE         0x10
117
#define HFCD_ACTIVATE           0x20
118
#define HFCD_DO_ACTION          0x40
119
 
120
/* HFCD_MST_MODE */
121
#define HFCD_MASTER             0x01
122
 
123
/* HFCD_SCTRL */
124
#define SCTRL_B1_ENA            0x01
125
#define SCTRL_B2_ENA            0x02
126
#define SCTRL_LOW_PRIO          0x08
127
#define SCTRL_SQ_ENA            0x10
128
#define SCTRL_TEST              0x20
129
#define SCTRL_NONE_CAP          0x40
130
#define SCTRL_PWR_DOWN          0x80
131
 
132
/* HFCD_TEST */
133
#define HFCD_AUTO_AWAKE         0x01
134
 
135
extern void main_irq_2bds0(struct BCState *bcs);
136
extern void init2bds0(struct IsdnCardState *cs);
137
extern void release2bds0(struct IsdnCardState *cs);
138
extern void hfc2bds0_interrupt(struct IsdnCardState *cs, u_char val);
139
extern void set_cs_func(struct IsdnCardState *cs);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.