Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
saphir.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 byteout(addr, val)   outb(val, addr)
 
#define bytein(addr)   inb(addr)
 
#define ISAC_DATA   0
 
#define HSCX_DATA   1
 
#define ADDRESS_REG   2
 
#define IRQ_REG   3
 
#define SPARE_REG   4
 
#define RESET_REG   5
 
#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_saphir (struct IsdnCard *card)
 

Macro Definition Documentation

#define ADDRESS_REG   2

Definition at line 28 of file saphir.c.

#define bytein (   addr)    inb(addr)

Definition at line 24 of file saphir.c.

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

Definition at line 23 of file saphir.c.

#define HSCX_DATA   1

Definition at line 27 of file saphir.c.

#define IRQ_REG   3

Definition at line 29 of file saphir.c.

#define ISAC_DATA   0

Definition at line 26 of file saphir.c.

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

Definition at line 105 of file saphir.c.

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

Definition at line 110 of file saphir.c.

#define RESET_REG   5

Definition at line 31 of file saphir.c.

#define SPARE_REG   4

Definition at line 30 of file saphir.c.

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

Definition at line 107 of file saphir.c.

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

Definition at line 113 of file saphir.c.

Function Documentation

int __devinit setup_saphir ( struct IsdnCard card)

Definition at line 244 of file saphir.c.