Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
diva.c File Reference
#include <linux/init.h>
#include "hisax.h"
#include "isac.h"
#include "hscx.h"
#include "ipac.h"
#include "ipacx.h"
#include "isdnl1.h"
#include <linux/pci.h>
#include <linux/isapnp.h>
#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 DIVA_HSCX_DATA   0
 
#define DIVA_HSCX_ADR   4
 
#define DIVA_ISA_ISAC_DATA   2
 
#define DIVA_ISA_ISAC_ADR   6
 
#define DIVA_ISA_CTRL   7
 
#define DIVA_IPAC_ADR   0
 
#define DIVA_IPAC_DATA   1
 
#define DIVA_PCI_ISAC_DATA   8
 
#define DIVA_PCI_ISAC_ADR   0xc
 
#define DIVA_PCI_CTRL   0x10
 
#define DIVA_ISA   1
 
#define DIVA_PCI   2
 
#define DIVA_IPAC_ISA   3
 
#define DIVA_IPAC_PCI   4
 
#define DIVA_IPACX_PCI   5
 
#define DIVA_IRQ_STAT   0x01
 
#define DIVA_EEPROM_SDA   0x02
 
#define DIVA_IRQ_REQ   0x01
 
#define DIVA_RESET   0x08
 
#define DIVA_EEPROM_CLK   0x40
 
#define DIVA_PCI_LED_A   0x10
 
#define DIVA_PCI_LED_B   0x20
 
#define DIVA_ISA_LED_A   0x20
 
#define DIVA_ISA_LED_B   0x40
 
#define DIVA_IRQ_CLR   0x80
 
#define PITA_MISC_REG   0x1c
 
#define PITA_PARA_SOFTRESET   0x01000000
 
#define PITA_SER_SOFTRESET   0x02000000
 
#define PITA_PARA_MPX_MODE   0x04000000
 
#define PITA_INT0_ENABLE   0x00020000
 
#define PITA_INT0_STATUS   0x02
 
#define READHSCX(cs, nr, reg)
 
#define WRITEHSCX(cs, nr, reg, data)
 
#define READHSCXFIFO(cs, nr, ptr, cnt)
 
#define WRITEHSCXFIFO(cs, nr, ptr, cnt)
 
#define DIVA_ASSIGN   1
 

Functions

int __devinit setup_diva (struct IsdnCard *card)
 

Macro Definition Documentation

#define bytein (   addr)    inb(addr)

Definition at line 31 of file diva.c.

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

Definition at line 30 of file diva.c.

#define DIVA_ASSIGN   1

Definition at line 796 of file diva.c.

#define DIVA_EEPROM_CLK   0x40

Definition at line 59 of file diva.c.

#define DIVA_EEPROM_SDA   0x02

Definition at line 54 of file diva.c.

#define DIVA_HSCX_ADR   4

Definition at line 34 of file diva.c.

#define DIVA_HSCX_DATA   0

Definition at line 33 of file diva.c.

#define DIVA_IPAC_ADR   0

Definition at line 38 of file diva.c.

#define DIVA_IPAC_DATA   1

Definition at line 39 of file diva.c.

#define DIVA_IPAC_ISA   3

Definition at line 48 of file diva.c.

#define DIVA_IPAC_PCI   4

Definition at line 49 of file diva.c.

#define DIVA_IPACX_PCI   5

Definition at line 50 of file diva.c.

#define DIVA_IRQ_CLR   0x80

Definition at line 64 of file diva.c.

#define DIVA_IRQ_REQ   0x01

Definition at line 57 of file diva.c.

#define DIVA_IRQ_STAT   0x01

Definition at line 53 of file diva.c.

#define DIVA_ISA   1

Definition at line 46 of file diva.c.

#define DIVA_ISA_CTRL   7

Definition at line 37 of file diva.c.

#define DIVA_ISA_ISAC_ADR   6

Definition at line 36 of file diva.c.

#define DIVA_ISA_ISAC_DATA   2

Definition at line 35 of file diva.c.

#define DIVA_ISA_LED_A   0x20

Definition at line 62 of file diva.c.

#define DIVA_ISA_LED_B   0x40

Definition at line 63 of file diva.c.

#define DIVA_PCI   2

Definition at line 47 of file diva.c.

#define DIVA_PCI_CTRL   0x10

Definition at line 43 of file diva.c.

#define DIVA_PCI_ISAC_ADR   0xc

Definition at line 42 of file diva.c.

#define DIVA_PCI_ISAC_DATA   8

Definition at line 41 of file diva.c.

#define DIVA_PCI_LED_A   0x10

Definition at line 60 of file diva.c.

#define DIVA_PCI_LED_B   0x20

Definition at line 61 of file diva.c.

#define DIVA_RESET   0x08

Definition at line 58 of file diva.c.

#define PITA_INT0_ENABLE   0x00020000

Definition at line 77 of file diva.c.

#define PITA_INT0_STATUS   0x02

Definition at line 79 of file diva.c.

#define PITA_MISC_REG   0x1c

Definition at line 67 of file diva.c.

#define PITA_PARA_MPX_MODE   0x04000000

Definition at line 76 of file diva.c.

#define PITA_PARA_SOFTRESET   0x01000000

Definition at line 74 of file diva.c.

#define PITA_SER_SOFTRESET   0x02000000

Definition at line 75 of file diva.c.

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

Definition at line 276 of file diva.c.

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

Definition at line 281 of file diva.c.

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

Definition at line 278 of file diva.c.

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

Definition at line 284 of file diva.c.

Function Documentation

int __devinit setup_diva ( struct IsdnCard card)

Definition at line 1242 of file diva.c.