Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ix1_micro.c File Reference
#include <linux/init.h>
#include <linux/isapnp.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 SPECIAL_PORT_OFFSET   3
 
#define ISAC_COMMAND_OFFSET   2
 
#define ISAC_DATA_OFFSET   0
 
#define HSCX_COMMAND_OFFSET   2
 
#define HSCX_DATA_OFFSET   1
 
#define TIMEOUT   50
 
#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_ix1micro (struct IsdnCard *card)
 

Macro Definition Documentation

#define bytein (   addr)    inb(addr)

Definition at line 30 of file ix1_micro.c.

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

Definition at line 29 of file ix1_micro.c.

#define HSCX_COMMAND_OFFSET   2

Definition at line 36 of file ix1_micro.c.

#define HSCX_DATA_OFFSET   1

Definition at line 37 of file ix1_micro.c.

#define ISAC_COMMAND_OFFSET   2

Definition at line 34 of file ix1_micro.c.

#define ISAC_DATA_OFFSET   0

Definition at line 35 of file ix1_micro.c.

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

Definition at line 113 of file ix1_micro.c.

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

Definition at line 118 of file ix1_micro.c.

#define SPECIAL_PORT_OFFSET   3

Definition at line 32 of file ix1_micro.c.

#define TIMEOUT   50

Definition at line 39 of file ix1_micro.c.

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

Definition at line 115 of file ix1_micro.c.

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

Definition at line 121 of file ix1_micro.c.

Function Documentation

int __devinit setup_ix1micro ( struct IsdnCard card)

Definition at line 228 of file ix1_micro.c.