Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sedlbauer.c File Reference
#include <linux/init.h>
#include "hisax.h"
#include "isac.h"
#include "ipac.h"
#include "hscx.h"
#include "isar.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 PCI_SUBVENDOR_SPEEDFAX_PYRAMID   0x51
 
#define PCI_SUBVENDOR_HST_SAPHIR3   0x52
 
#define PCI_SUBVENDOR_SEDLBAUER_PCI   0x53
 
#define PCI_SUBVENDOR_SPEEDFAX_PCI   0x54
 
#define PCI_SUB_ID_SEDLBAUER   0x01
 
#define SEDL_SPEED_CARD_WIN   1
 
#define SEDL_SPEED_STAR   2
 
#define SEDL_SPEED_FAX   3
 
#define SEDL_SPEED_WIN2_PC104   4
 
#define SEDL_SPEED_STAR2   5
 
#define SEDL_SPEED_PCI   6
 
#define SEDL_SPEEDFAX_PYRAMID   7
 
#define SEDL_SPEEDFAX_PCI   8
 
#define HST_SAPHIR3   9
 
#define SEDL_CHIP_TEST   0
 
#define SEDL_CHIP_ISAC_HSCX   1
 
#define SEDL_CHIP_ISAC_ISAR   2
 
#define SEDL_CHIP_IPAC   3
 
#define SEDL_BUS_ISA   1
 
#define SEDL_BUS_PCI   2
 
#define SEDL_BUS_PCMCIA   3
 
#define byteout(addr, val)   outb(val, addr)
 
#define bytein(addr)   inb(addr)
 
#define SEDL_HSCX_ISA_RESET_ON   0
 
#define SEDL_HSCX_ISA_RESET_OFF   1
 
#define SEDL_HSCX_ISA_ISAC   2
 
#define SEDL_HSCX_ISA_HSCX   3
 
#define SEDL_HSCX_ISA_ADR   4
 
#define SEDL_HSCX_PCMCIA_RESET   0
 
#define SEDL_HSCX_PCMCIA_ISAC   1
 
#define SEDL_HSCX_PCMCIA_HSCX   2
 
#define SEDL_HSCX_PCMCIA_ADR   4
 
#define SEDL_ISAR_ISA_ISAC   4
 
#define SEDL_ISAR_ISA_ISAR   6
 
#define SEDL_ISAR_ISA_ADR   8
 
#define SEDL_ISAR_ISA_ISAR_RESET_ON   10
 
#define SEDL_ISAR_ISA_ISAR_RESET_OFF   12
 
#define SEDL_IPAC_ANY_ADR   0
 
#define SEDL_IPAC_ANY_IPAC   2
 
#define SEDL_IPAC_PCI_BASE   0
 
#define SEDL_IPAC_PCI_ADR   0xc0
 
#define SEDL_IPAC_PCI_IPAC   0xc8
 
#define SEDL_ISAR_PCI_ADR   0xc8
 
#define SEDL_ISAR_PCI_ISAC   0xd0
 
#define SEDL_ISAR_PCI_ISAR   0xe0
 
#define SEDL_ISAR_PCI_ISAR_RESET_ON   0x01
 
#define SEDL_ISAR_PCI_ISAR_RESET_OFF   0x18
 
#define SEDL_ISAR_PCI_LED1   0x08
 
#define SEDL_ISAR_PCI_LED2   0x10
 
#define SEDL_RESET   0x3 /* same as DOS driver */
 
#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_sedlbauer (struct IsdnCard *card)
 

Macro Definition Documentation

#define bytein (   addr)    inb(addr)

Definition at line 84 of file sedlbauer.c.

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

Definition at line 83 of file sedlbauer.c.

#define HST_SAPHIR3   9

Definition at line 72 of file sedlbauer.c.

#define PCI_SUB_ID_SEDLBAUER   0x01

Definition at line 62 of file sedlbauer.c.

#define PCI_SUBVENDOR_HST_SAPHIR3   0x52

Definition at line 59 of file sedlbauer.c.

#define PCI_SUBVENDOR_SEDLBAUER_PCI   0x53

Definition at line 60 of file sedlbauer.c.

#define PCI_SUBVENDOR_SPEEDFAX_PCI   0x54

Definition at line 61 of file sedlbauer.c.

#define PCI_SUBVENDOR_SPEEDFAX_PYRAMID   0x51

Definition at line 58 of file sedlbauer.c.

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

Definition at line 247 of file sedlbauer.c.

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

Definition at line 252 of file sedlbauer.c.

#define SEDL_BUS_ISA   1

Definition at line 79 of file sedlbauer.c.

#define SEDL_BUS_PCI   2

Definition at line 80 of file sedlbauer.c.

#define SEDL_BUS_PCMCIA   3

Definition at line 81 of file sedlbauer.c.

#define SEDL_CHIP_IPAC   3

Definition at line 77 of file sedlbauer.c.

#define SEDL_CHIP_ISAC_HSCX   1

Definition at line 75 of file sedlbauer.c.

#define SEDL_CHIP_ISAC_ISAR   2

Definition at line 76 of file sedlbauer.c.

#define SEDL_CHIP_TEST   0

Definition at line 74 of file sedlbauer.c.

#define SEDL_HSCX_ISA_ADR   4

Definition at line 90 of file sedlbauer.c.

#define SEDL_HSCX_ISA_HSCX   3

Definition at line 89 of file sedlbauer.c.

#define SEDL_HSCX_ISA_ISAC   2

Definition at line 88 of file sedlbauer.c.

#define SEDL_HSCX_ISA_RESET_OFF   1

Definition at line 87 of file sedlbauer.c.

#define SEDL_HSCX_ISA_RESET_ON   0

Definition at line 86 of file sedlbauer.c.

#define SEDL_HSCX_PCMCIA_ADR   4

Definition at line 95 of file sedlbauer.c.

#define SEDL_HSCX_PCMCIA_HSCX   2

Definition at line 94 of file sedlbauer.c.

#define SEDL_HSCX_PCMCIA_ISAC   1

Definition at line 93 of file sedlbauer.c.

#define SEDL_HSCX_PCMCIA_RESET   0

Definition at line 92 of file sedlbauer.c.

#define SEDL_IPAC_ANY_ADR   0

Definition at line 103 of file sedlbauer.c.

#define SEDL_IPAC_ANY_IPAC   2

Definition at line 104 of file sedlbauer.c.

#define SEDL_IPAC_PCI_ADR   0xc0

Definition at line 107 of file sedlbauer.c.

#define SEDL_IPAC_PCI_BASE   0

Definition at line 106 of file sedlbauer.c.

#define SEDL_IPAC_PCI_IPAC   0xc8

Definition at line 108 of file sedlbauer.c.

#define SEDL_ISAR_ISA_ADR   8

Definition at line 99 of file sedlbauer.c.

#define SEDL_ISAR_ISA_ISAC   4

Definition at line 97 of file sedlbauer.c.

#define SEDL_ISAR_ISA_ISAR   6

Definition at line 98 of file sedlbauer.c.

#define SEDL_ISAR_ISA_ISAR_RESET_OFF   12

Definition at line 101 of file sedlbauer.c.

#define SEDL_ISAR_ISA_ISAR_RESET_ON   10

Definition at line 100 of file sedlbauer.c.

#define SEDL_ISAR_PCI_ADR   0xc8

Definition at line 109 of file sedlbauer.c.

#define SEDL_ISAR_PCI_ISAC   0xd0

Definition at line 110 of file sedlbauer.c.

#define SEDL_ISAR_PCI_ISAR   0xe0

Definition at line 111 of file sedlbauer.c.

#define SEDL_ISAR_PCI_ISAR_RESET_OFF   0x18

Definition at line 113 of file sedlbauer.c.

#define SEDL_ISAR_PCI_ISAR_RESET_ON   0x01

Definition at line 112 of file sedlbauer.c.

#define SEDL_ISAR_PCI_LED1   0x08

Definition at line 114 of file sedlbauer.c.

#define SEDL_ISAR_PCI_LED2   0x10

Definition at line 115 of file sedlbauer.c.

#define SEDL_RESET   0x3 /* same as DOS driver */

Definition at line 117 of file sedlbauer.c.

#define SEDL_SPEED_CARD_WIN   1

Definition at line 64 of file sedlbauer.c.

#define SEDL_SPEED_FAX   3

Definition at line 66 of file sedlbauer.c.

#define SEDL_SPEED_PCI   6

Definition at line 69 of file sedlbauer.c.

#define SEDL_SPEED_STAR   2

Definition at line 65 of file sedlbauer.c.

#define SEDL_SPEED_STAR2   5

Definition at line 68 of file sedlbauer.c.

#define SEDL_SPEED_WIN2_PC104   4

Definition at line 67 of file sedlbauer.c.

#define SEDL_SPEEDFAX_PCI   8

Definition at line 71 of file sedlbauer.c.

#define SEDL_SPEEDFAX_PYRAMID   7

Definition at line 70 of file sedlbauer.c.

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

Definition at line 249 of file sedlbauer.c.

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

Definition at line 255 of file sedlbauer.c.

Function Documentation

int __devinit setup_sedlbauer ( struct IsdnCard card)

Definition at line 679 of file sedlbauer.c.