Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
elsa.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include "hisax.h"
#include "arcofi.h"
#include "isac.h"
#include "ipac.h"
#include "hscx.h"
#include "isdnl1.h"
#include <linux/pci.h>
#include <linux/isapnp.h>
#include <linux/serial.h>
#include <linux/serial_reg.h>
#include "elsa_ser.c"
#include "hscx_irq.c"

Go to the source code of this file.

Macros

#define byteout(addr, val)   outb(val, addr)
 
#define bytein(addr)   inb(addr)
 
#define ELSA_ISAC   0
 
#define ELSA_ISAC_PCM   1
 
#define ELSA_ITAC   1
 
#define ELSA_HSCX   2
 
#define ELSA_ALE   3
 
#define ELSA_ALE_PCM   4
 
#define ELSA_CONTROL   4
 
#define ELSA_CONFIG   5
 
#define ELSA_START_TIMER   6
 
#define ELSA_TRIG_IRQ   7
 
#define ELSA_PC   1
 
#define ELSA_PCC8   2
 
#define ELSA_PCC16   3
 
#define ELSA_PCF   4
 
#define ELSA_PCFPRO   5
 
#define ELSA_PCMCIA   6
 
#define ELSA_QS1000   7
 
#define ELSA_QS3000   8
 
#define ELSA_QS1000PCI   9
 
#define ELSA_QS3000PCI   10
 
#define ELSA_PCMCIA_IPAC   11
 
#define ELSA_PCI_IRQ_MASK   0x04
 
#define ITAC_SYS   0x34
 
#define ITAC_ISEN   0x48
 
#define ITAC_RFIE   0x4A
 
#define ITAC_XFIE   0x4C
 
#define ITAC_SCIE   0x4E
 
#define ITAC_STIE   0x46
 
#define ELIRQF_TIMER_RUN   0x02 /* Bit 1 des Config-Reg */
 
#define ELIRQF_TIMER_RUN_PCC8   0x01 /* Bit 0 des Config-Reg bei PCC */
 
#define ELSA_IRQ_IDX   0x38 /* Bit 3,4,5 des Config-Reg */
 
#define ELSA_IRQ_IDX_PCC8   0x30 /* Bit 4,5 des Config-Reg */
 
#define ELSA_IRQ_IDX_PC   0x0c /* Bit 2,3 des Config-Reg */
 
#define ELSA_LINE_LED   0x02 /* Bit 1 Gelbe LED */
 
#define ELSA_STAT_LED   0x08 /* Bit 3 Gruene LED */
 
#define ELSA_ISDN_RESET   0x20 /* Bit 5 Reset-Leitung */
 
#define ELSA_ENA_TIMER_INT   0x80 /* Bit 7 Freigabe Timer Interrupt */
 
#define ELSA_HW_RELEASE   0x07 /* Bit 0-2 Hardwarerkennung */
 
#define ELSA_S0_POWER_BAD   0x08 /* Bit 3 S0-Bus Spannung fehlt */
 
#define ELIRQF_TIMER_AKTIV   1
 
#define ELSA_BAD_PWR   2
 
#define ELSA_ASSIGN   4
 
#define RS_ISR_PASS_LIMIT   256
 
#define FLG_MODEM_ACTIVE   1
 
#define ELSA_IPAC_LINE_LED   0x40 /* Bit 6 Gelbe LED */
 
#define ELSA_IPAC_STAT_LED   0x80 /* Bit 7 Gruene LED */
 
#define READHSCX(cs, nr, reg)
 
#define WRITEHSCX(cs, nr, reg, data)
 
#define READHSCXFIFO(cs, nr, ptr, cnt)
 
#define WRITEHSCXFIFO(cs, nr, ptr, cnt)
 

Functions

int __devinit setup_elsa (struct IsdnCard *card)
 

Macro Definition Documentation

#define bytein (   addr)    inb(addr)

Definition at line 45 of file elsa.c.

#define byteout (   addr,
  val 
)    outb(val, addr)

Definition at line 44 of file elsa.c.

#define ELIRQF_TIMER_AKTIV   1

Definition at line 104 of file elsa.c.

#define ELIRQF_TIMER_RUN   0x02 /* Bit 1 des Config-Reg */

Definition at line 87 of file elsa.c.

#define ELIRQF_TIMER_RUN_PCC8   0x01 /* Bit 0 des Config-Reg bei PCC */

Definition at line 88 of file elsa.c.

#define ELSA_ALE   3

Definition at line 51 of file elsa.c.

#define ELSA_ALE_PCM   4

Definition at line 52 of file elsa.c.

#define ELSA_ASSIGN   4

Definition at line 106 of file elsa.c.

#define ELSA_BAD_PWR   2

Definition at line 105 of file elsa.c.

#define ELSA_CONFIG   5

Definition at line 54 of file elsa.c.

#define ELSA_CONTROL   4

Definition at line 53 of file elsa.c.

#define ELSA_ENA_TIMER_INT   0x80 /* Bit 7 Freigabe Timer Interrupt */

Definition at line 97 of file elsa.c.

#define ELSA_HSCX   2

Definition at line 50 of file elsa.c.

#define ELSA_HW_RELEASE   0x07 /* Bit 0-2 Hardwarerkennung */

Definition at line 100 of file elsa.c.

#define ELSA_IPAC_LINE_LED   0x40 /* Bit 6 Gelbe LED */

Definition at line 111 of file elsa.c.

#define ELSA_IPAC_STAT_LED   0x80 /* Bit 7 Gruene LED */

Definition at line 112 of file elsa.c.

#define ELSA_IRQ_IDX   0x38 /* Bit 3,4,5 des Config-Reg */

Definition at line 89 of file elsa.c.

#define ELSA_IRQ_IDX_PC   0x0c /* Bit 2,3 des Config-Reg */

Definition at line 91 of file elsa.c.

#define ELSA_IRQ_IDX_PCC8   0x30 /* Bit 4,5 des Config-Reg */

Definition at line 90 of file elsa.c.

#define ELSA_ISAC   0

Definition at line 47 of file elsa.c.

#define ELSA_ISAC_PCM   1

Definition at line 48 of file elsa.c.

#define ELSA_ISDN_RESET   0x20 /* Bit 5 Reset-Leitung */

Definition at line 96 of file elsa.c.

#define ELSA_ITAC   1

Definition at line 49 of file elsa.c.

#define ELSA_LINE_LED   0x02 /* Bit 1 Gelbe LED */

Definition at line 94 of file elsa.c.

#define ELSA_PC   1

Definition at line 58 of file elsa.c.

#define ELSA_PCC16   3

Definition at line 60 of file elsa.c.

#define ELSA_PCC8   2

Definition at line 59 of file elsa.c.

#define ELSA_PCF   4

Definition at line 61 of file elsa.c.

#define ELSA_PCFPRO   5

Definition at line 62 of file elsa.c.

#define ELSA_PCI_IRQ_MASK   0x04

Definition at line 71 of file elsa.c.

#define ELSA_PCMCIA   6

Definition at line 63 of file elsa.c.

#define ELSA_PCMCIA_IPAC   11

Definition at line 68 of file elsa.c.

#define ELSA_QS1000   7

Definition at line 64 of file elsa.c.

#define ELSA_QS1000PCI   9

Definition at line 66 of file elsa.c.

#define ELSA_QS3000   8

Definition at line 65 of file elsa.c.

#define ELSA_QS3000PCI   10

Definition at line 67 of file elsa.c.

#define ELSA_S0_POWER_BAD   0x08 /* Bit 3 S0-Bus Spannung fehlt */

Definition at line 101 of file elsa.c.

#define ELSA_START_TIMER   6

Definition at line 55 of file elsa.c.

#define ELSA_STAT_LED   0x08 /* Bit 3 Gruene LED */

Definition at line 95 of file elsa.c.

#define ELSA_TRIG_IRQ   7

Definition at line 56 of file elsa.c.

#define FLG_MODEM_ACTIVE   1

Definition at line 109 of file elsa.c.

#define ITAC_ISEN   0x48

Definition at line 75 of file elsa.c.

#define ITAC_RFIE   0x4A

Definition at line 76 of file elsa.c.

#define ITAC_SCIE   0x4E

Definition at line 78 of file elsa.c.

#define ITAC_STIE   0x46

Definition at line 79 of file elsa.c.

#define ITAC_SYS   0x34

Definition at line 74 of file elsa.c.

#define ITAC_XFIE   0x4C

Definition at line 77 of file elsa.c.

#define READHSCX (   cs,
  nr,
  reg 
)
Value:
readreg(cs->hw.elsa.ale, \
cs->hw.elsa.hscx, reg + (nr ? 0x40 : 0))

Definition at line 270 of file elsa.c.

#define READHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)
Value:
readfifo(cs->hw.elsa.ale, \
cs->hw.elsa.hscx, (nr ? 0x40 : 0), ptr, cnt)

Definition at line 275 of file elsa.c.

#define RS_ISR_PASS_LIMIT   256

Definition at line 108 of file elsa.c.

#define WRITEHSCX (   cs,
  nr,
  reg,
  data 
)
Value:
writereg(cs->hw.elsa.ale, \
cs->hw.elsa.hscx, reg + (nr ? 0x40 : 0), data)

Definition at line 272 of file elsa.c.

#define WRITEHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)
Value:
writefifo(cs->hw.elsa.ale, \
cs->hw.elsa.hscx, (nr ? 0x40 : 0), ptr, cnt)

Definition at line 278 of file elsa.c.

Function Documentation

int __devinit setup_elsa ( struct IsdnCard card)

Definition at line 1216 of file elsa.c.