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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [uclinux/] [uClinux-2.0.x/] [drivers/] [isdn/] [hisax/] [elsa.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

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