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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/* $Id: elsa.h,v 1.1 2005-12-20 10:17:01 jcastillo Exp $
2
 *
3
 * elsa.h   Header for Elsa ISDN cards
4
 *
5
 * Author       Karsten Keil (keil@temic-ech.spacenet.de)
6
 *
7
 * Thanks to    Elsa GmbH for documents and informations
8
 *
9
 *
10
 * $Log: not supported by cvs2svn $
11
 * Revision 1.1.1.1  2001/09/10 07:44:18  simons
12
 * Initial import
13
 *
14
 * Revision 1.1.1.1  2001/07/02 17:58:32  simons
15
 * Initial revision
16
 *
17
 * Revision 1.6  1997/03/23 21:45:48  keil
18
 * Add support for ELSA PCMCIA
19
 *
20
 * Revision 1.5  1997/03/04 15:58:13  keil
21
 * ELSA PC changes, some stuff for new cards
22
 *
23
 * Revision 1.4  1997/01/21 22:21:05  keil
24
 * Elsa Quickstep support
25
 *
26
 * Revision 1.3  1996/12/08 19:47:38  keil
27
 * ARCOFI support
28
 *
29
 * Revision 1.2  1996/11/18 15:33:35  keil
30
 * PCC and PCFPro support
31
 *
32
 * Revision 1.1  1996/10/13 20:03:45  keil
33
 * Initial revision
34
 *
35
 *
36
*/
37
#include <linux/config.h>
38
 
39
#ifdef CONFIG_HISAX_ELSA_PCMCIA
40
#define CARD_ISAC       1
41
#define CARD_HSCX       2
42
#define CARD_ALE        4
43
#else
44
#define CARD_ISAC       0
45
#define CARD_ITAC       1
46
#define CARD_HSCX       2
47
#define CARD_ALE        3
48
#define CARD_CONTROL    4
49
#define CARD_CONFIG     5
50
#define CARD_START_TIMER 6
51
#define CARD_TRIG_IRQ   7
52
#endif
53
 
54
#define ELSA_PC      1
55
#define ELSA_PCC8    2
56
#define ELSA_PCC16   3
57
#define ELSA_PCF     4
58
#define ELSA_PCFPRO  5
59
#define ELSA_PCMCIA  6
60
#define ELSA_QS1000  7
61
#define ELSA_QS3000  8
62
 
63
/* ITAC Registeradressen (only Microlink PC) */
64
#define ITAC_SYS        0x34
65
#define ITAC_ISEN       0x48
66
#define ITAC_RFIE       0x4A
67
#define ITAC_XFIE       0x4C
68
#define ITAC_SCIE       0x4E
69
#define ITAC_STIE       0x46
70
 
71
/***                                                                    ***
72
 ***   Makros als Befehle fuer die Kartenregister                       ***
73
 ***   (mehrere Befehle werden durch Bit-Oderung kombiniert)            ***
74
 ***                                                                    ***/
75
 
76
/* Config-Register (Read) */
77
#define TIMER_RUN       0x02    /* Bit 1 des Config-Reg     */
78
#define TIMER_RUN_PCC8  0x01    /* Bit 0 des Config-Reg  bei PCC */
79
#define IRQ_INDEX       0x38    /* Bit 3,4,5 des Config-Reg */
80
#define IRQ_INDEX_PCC8  0x30    /* Bit 4,5 des Config-Reg */
81
#define IRQ_INDEX_PC    0x0c    /* Bit 2,3 des Config-Reg */
82
 
83
/* Control-Register (Write) */
84
#define LINE_LED        0x02    /* Bit 1 Gelbe LED */
85
#define STAT_LED        0x08    /* Bit 3 Gruene LED */
86
#define ISDN_RESET      0x20    /* Bit 5 Reset-Leitung */
87
#define ENABLE_TIM_INT  0x80    /* Bit 7 Freigabe Timer Interrupt */
88
 
89
/* ALE-Register (Read) */
90
#define HW_RELEASE      0x07    /* Bit 0-2 Hardwarerkennung */
91
#define S0_POWER_BAD    0x08    /* Bit 3 S0-Bus Spannung fehlt */
92
 
93
extern  void elsa_report(struct IsdnCardState *sp);
94
extern  void release_io_elsa(struct IsdnCard *card);
95
extern  int  setup_elsa(struct IsdnCard *card);
96
extern  int  initelsa(struct IsdnCardState *sp);

powered by: WebSVN 2.1.0

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