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

Go to the source code of this file.

Macros

#define ZORAN_PO_RQ_PEN   0x02000000
 
#define ZORAN_PO_WR   0x00800000
 
#define ZORAN_PO_GID0   0x00000000
 
#define ZORAN_PO_GID1   0x00100000
 
#define ZORAN_PO_GREG0   0x00000000
 
#define ZORAN_PO_GREG1   0x00010000
 
#define ZORAN_PO_DMASK   0xFF
 
#define WRITE_ADDR_ISAC   (ZORAN_PO_WR | ZORAN_PO_GID0 | ZORAN_PO_GREG0)
 
#define READ_DATA_ISAC   (ZORAN_PO_GID0 | ZORAN_PO_GREG1)
 
#define WRITE_DATA_ISAC   (ZORAN_PO_WR | ZORAN_PO_GID0 | ZORAN_PO_GREG1)
 
#define WRITE_ADDR_HSCX   (ZORAN_PO_WR | ZORAN_PO_GID1 | ZORAN_PO_GREG0)
 
#define READ_DATA_HSCX   (ZORAN_PO_GID1 | ZORAN_PO_GREG1)
 
#define WRITE_DATA_HSCX   (ZORAN_PO_WR | ZORAN_PO_GID1 | ZORAN_PO_GREG1)
 
#define ZORAN_WAIT_NOBUSY
 
#define READHSCX(cs, nr, reg)   readhscx(cs->hw.teles0.membase, nr, reg)
 
#define WRITEHSCX(cs, nr, reg, data)   writehscx(cs->hw.teles0.membase, nr, reg, data)
 
#define READHSCXFIFO(cs, nr, ptr, cnt)   read_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
 
#define WRITEHSCXFIFO(cs, nr, ptr, cnt)   write_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)
 

Functions

int __devinit setup_telespci (struct IsdnCard *card)
 

Macro Definition Documentation

#define READ_DATA_HSCX   (ZORAN_PO_GID1 | ZORAN_PO_GREG1)

Definition at line 36 of file telespci.c.

#define READ_DATA_ISAC   (ZORAN_PO_GID0 | ZORAN_PO_GREG1)

Definition at line 33 of file telespci.c.

#define READHSCX (   cs,
  nr,
  reg 
)    readhscx(cs->hw.teles0.membase, nr, reg)

Definition at line 220 of file telespci.c.

#define READHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)    read_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)

Definition at line 222 of file telespci.c.

#define WRITE_ADDR_HSCX   (ZORAN_PO_WR | ZORAN_PO_GID1 | ZORAN_PO_GREG0)

Definition at line 35 of file telespci.c.

#define WRITE_ADDR_ISAC   (ZORAN_PO_WR | ZORAN_PO_GID0 | ZORAN_PO_GREG0)

Definition at line 32 of file telespci.c.

#define WRITE_DATA_HSCX   (ZORAN_PO_WR | ZORAN_PO_GID1 | ZORAN_PO_GREG1)

Definition at line 37 of file telespci.c.

#define WRITE_DATA_ISAC   (ZORAN_PO_WR | ZORAN_PO_GID0 | ZORAN_PO_GREG1)

Definition at line 34 of file telespci.c.

#define WRITEHSCX (   cs,
  nr,
  reg,
  data 
)    writehscx(cs->hw.teles0.membase, nr, reg, data)

Definition at line 221 of file telespci.c.

#define WRITEHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)    write_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt)

Definition at line 223 of file telespci.c.

#define ZORAN_PO_DMASK   0xFF

Definition at line 30 of file telespci.c.

#define ZORAN_PO_GID0   0x00000000

Definition at line 26 of file telespci.c.

#define ZORAN_PO_GID1   0x00100000

Definition at line 27 of file telespci.c.

#define ZORAN_PO_GREG0   0x00000000

Definition at line 28 of file telespci.c.

#define ZORAN_PO_GREG1   0x00010000

Definition at line 29 of file telespci.c.

#define ZORAN_PO_RQ_PEN   0x02000000

Definition at line 24 of file telespci.c.

#define ZORAN_PO_WR   0x00800000

Definition at line 25 of file telespci.c.

#define ZORAN_WAIT_NOBUSY
Value:
do { \
portdata = readl(adr + 0x200); \
} while (portdata & ZORAN_PO_RQ_PEN)

Definition at line 39 of file telespci.c.

Function Documentation

int __devinit setup_telespci ( struct IsdnCard card)

Definition at line 289 of file telespci.c.