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

Subversion Repositories or1k

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

Go to most recent revision | Details | Compare with Previous | View Log

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