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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [isdn/] [hisax/] [isar.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* $Id: isar.h,v 1.1.1.1 2001-09-10 07:44:18 simons Exp $
2
 * isar.h   ISAR (Siemens PSB 7110) specific defines
3
 *
4
 * Author Karsten Keil (keil@isdn4linux.de)
5
 *
6
 *
7
 * $Log: not supported by cvs2svn $
8
 * Revision 1.1.1.1  2001/07/02 17:58:32  simons
9
 * Initial revision
10
 *
11
 * Revision 1.1.2.3  1998/10/04 23:05:01  keil
12
 * ISAR works now
13
 *
14
 * Revision 1.1.2.2  1998/09/30 22:28:09  keil
15
 * more work for isar support
16
 *
17
 * Revision 1.1.2.1  1998/09/27 13:01:44  keil
18
 * Start support for ISAR based cards
19
 *
20
 * Revision 1.1  1998/08/13 23:33:48  keil
21
 * First version, only init
22
 *
23
 *
24
 */
25
 
26
#define ISAR_IRQMSK     0x04
27
#define ISAR_IRQSTA     0x04
28
#define ISAR_IRQBIT     0x75
29
#define ISAR_CTRL_H     0x61
30
#define ISAR_CTRL_L     0x60
31
#define ISAR_IIS        0x58
32
#define ISAR_IIA        0x58
33
#define ISAR_HIS        0x50
34
#define ISAR_HIA        0x50
35
#define ISAR_MBOX       0x4c
36
#define ISAR_WADR       0x4a
37
#define ISAR_RADR       0x48 
38
 
39
#define ISAR_HIS_VNR    0x14
40
#define ISAR_HIS_DKEY   0x02
41
#define ISAR_HIS_FIRM   0x1e
42
#define ISAR_HIS_STDSP  0x08
43
#define ISAR_HIS_DIAG   0x05
44
#define ISAR_HIS_P0CFG  0x3c
45
#define ISAR_HIS_P12CFG 0x24
46
#define ISAR_HIS_SARTCFG        0x25    
47
#define ISAR_HIS_PUMPCFG        0x26    
48
#define ISAR_HIS_IOM2CFG        0x27
49
#define ISAR_HIS_IOM2REQ        0x07
50
#define ISAR_HIS_BSTREQ 0x0c
51
#define ISAR_HIS_PSTREQ 0x0e
52
#define ISAR_HIS_SDATA  0x20
53
#define ISAR_HIS_DPS1   0x40
54
#define ISAR_HIS_DPS2   0x80
55
#define SET_DPS(x)      ((x<<6) & 0xc0)
56
 
57
#define ISAR_IIS_MSCMSD 0x3f
58
#define ISAR_IIS_VNR    0x15
59
#define ISAR_IIS_DKEY   0x03
60
#define ISAR_IIS_FIRM   0x1f
61
#define ISAR_IIS_STDSP  0x09
62
#define ISAR_IIS_DIAG   0x25
63
#define ISAR_IIS_GSTEV  0x0
64
#define ISAR_IIS_BSTEV  0x28
65
#define ISAR_IIS_BSTRSP 0x2c
66
#define ISAR_IIS_PSTRSP 0x2e
67
#define ISAR_IIS_PSTEV  0x2a
68
#define ISAR_IIS_IOM2RSP        0x27
69
 
70
#define ISAR_IIS_RDATA  0x20
71
#define ISAR_CTRL_SWVER 0x10
72
#define ISAR_CTRL_STST  0x40
73
 
74
#define ISAR_MSG_HWVER  {0x20, 0, 1}
75
 
76
#define ISAR_DP1_USE    1
77
#define ISAR_DP2_USE    2
78
 
79
#define PMOD_BYPASS     7
80
 
81
#define SMODE_DISABLE   0
82
#define SMODE_HDLC      3
83
#define SMODE_BINARY    4
84
 
85
#define HDLC_FED        0x40
86
#define HDLC_FSD        0x20
87
#define HDLC_FST        0x20
88
#define HDLC_ERROR      0x1c
89
 
90
#define BSTAT_RDM0      0x1
91
#define BSTAT_RDM1      0x2
92
#define BSTAT_RDM2      0x4
93
#define BSTAT_RDM3      0x8
94
 
95
 
96
extern int ISARVersion(struct IsdnCardState *cs, char *s);
97
extern int isar_load_firmware(struct IsdnCardState *cs, u_char *buf);
98
extern void isar_int_main(struct IsdnCardState *cs);
99
extern void initisar(struct IsdnCardState *cs);
100
extern void isar_fill_fifo(struct BCState *bcs);

powered by: WebSVN 2.1.0

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