Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
avm_a1p.c File Reference
#include <linux/init.h>
#include "hisax.h"
#include "isac.h"
#include "hscx.h"
#include "isdnl1.h"
#include "hscx_irq.c"

Go to the source code of this file.

Macros

#define ADDRREG_OFFSET   0x02
 
#define DATAREG_OFFSET   0x03
 
#define ASL0_OFFSET   0x04
 
#define ASL1_OFFSET   0x05
 
#define MODREG_OFFSET   0x06
 
#define VERREG_OFFSET   0x07
 
#define ISAC_FIFO_OFFSET   0x00
 
#define ISAC_REG_OFFSET   0x20
 
#define HSCX_CH_DIFF   0x40
 
#define HSCX_FIFO_OFFSET   0x80
 
#define HSCX_REG_OFFSET   0xa0
 
#define ASL0_R_TIMER   0x10 /* active low */
 
#define ASL0_R_ISAC   0x20 /* active low */
 
#define ASL0_R_HSCX   0x40 /* active low */
 
#define ASL0_R_TESTBIT   0x80
 
#define ASL0_R_IRQPENDING   (ASL0_R_ISAC | ASL0_R_HSCX | ASL0_R_TIMER)
 
#define ASL0_W_RESET   0x01
 
#define ASL0_W_TDISABLE   0x02
 
#define ASL0_W_TRESET   0x04
 
#define ASL0_W_IRQENABLE   0x08
 
#define ASL0_W_TESTBIT   0x80
 
#define ASL1_W_LED0   0x10
 
#define ASL1_W_LED1   0x20
 
#define ASL1_W_ENABLE_S0   0xC0
 
#define byteout(addr, val)   outb(val, addr)
 
#define bytein(addr)   inb(addr)
 
#define READHSCX(cs, nr, reg)   ReadHSCX(cs, nr, reg)
 
#define WRITEHSCX(cs, nr, reg, data)   WriteHSCX(cs, nr, reg, data)
 
#define READHSCXFIFO(cs, nr, ptr, cnt)   ReadHSCXfifo(cs, nr, ptr, cnt)
 
#define WRITEHSCXFIFO(cs, nr, ptr, cnt)   WriteHSCXfifo(cs, nr, ptr, cnt)
 

Functions

int __devinit setup_avm_a1_pcmcia (struct IsdnCard *card)
 

Macro Definition Documentation

#define ADDRREG_OFFSET   0x02

Definition at line 23 of file avm_a1p.c.

#define ASL0_OFFSET   0x04

Definition at line 25 of file avm_a1p.c.

#define ASL0_R_HSCX   0x40 /* active low */

Definition at line 40 of file avm_a1p.c.

#define ASL0_R_IRQPENDING   (ASL0_R_ISAC | ASL0_R_HSCX | ASL0_R_TIMER)

Definition at line 42 of file avm_a1p.c.

#define ASL0_R_ISAC   0x20 /* active low */

Definition at line 39 of file avm_a1p.c.

#define ASL0_R_TESTBIT   0x80

Definition at line 41 of file avm_a1p.c.

#define ASL0_R_TIMER   0x10 /* active low */

Definition at line 38 of file avm_a1p.c.

#define ASL0_W_IRQENABLE   0x08

Definition at line 48 of file avm_a1p.c.

#define ASL0_W_RESET   0x01

Definition at line 45 of file avm_a1p.c.

#define ASL0_W_TDISABLE   0x02

Definition at line 46 of file avm_a1p.c.

#define ASL0_W_TESTBIT   0x80

Definition at line 49 of file avm_a1p.c.

#define ASL0_W_TRESET   0x04

Definition at line 47 of file avm_a1p.c.

#define ASL1_OFFSET   0x05

Definition at line 26 of file avm_a1p.c.

#define ASL1_W_ENABLE_S0   0xC0

Definition at line 54 of file avm_a1p.c.

#define ASL1_W_LED0   0x10

Definition at line 52 of file avm_a1p.c.

#define ASL1_W_LED1   0x20

Definition at line 53 of file avm_a1p.c.

#define bytein (   addr)    inb(addr)

Definition at line 57 of file avm_a1p.c.

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

Definition at line 56 of file avm_a1p.c.

#define DATAREG_OFFSET   0x03

Definition at line 24 of file avm_a1p.c.

#define HSCX_CH_DIFF   0x40

Definition at line 33 of file avm_a1p.c.

#define HSCX_FIFO_OFFSET   0x80

Definition at line 34 of file avm_a1p.c.

#define HSCX_REG_OFFSET   0xa0

Definition at line 35 of file avm_a1p.c.

#define ISAC_FIFO_OFFSET   0x00

Definition at line 31 of file avm_a1p.c.

#define ISAC_REG_OFFSET   0x20

Definition at line 32 of file avm_a1p.c.

#define MODREG_OFFSET   0x06

Definition at line 27 of file avm_a1p.c.

#define READHSCX (   cs,
  nr,
  reg 
)    ReadHSCX(cs, nr, reg)

Definition at line 135 of file avm_a1p.c.

#define READHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)    ReadHSCXfifo(cs, nr, ptr, cnt)

Definition at line 137 of file avm_a1p.c.

#define VERREG_OFFSET   0x07

Definition at line 28 of file avm_a1p.c.

#define WRITEHSCX (   cs,
  nr,
  reg,
  data 
)    WriteHSCX(cs, nr, reg, data)

Definition at line 136 of file avm_a1p.c.

#define WRITEHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)    WriteHSCXfifo(cs, nr, ptr, cnt)

Definition at line 138 of file avm_a1p.c.

Function Documentation

int __devinit setup_avm_a1_pcmcia ( struct IsdnCard card)

Definition at line 216 of file avm_a1p.c.