Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sportster.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 SPORTSTER_ISAC   0xC000
 
#define SPORTSTER_HSCXA   0x0000
 
#define SPORTSTER_HSCXB   0x4000
 
#define SPORTSTER_RES_IRQ   0x8000
 
#define SPORTSTER_RESET   0x80
 
#define SPORTSTER_INTE   0x40
 
#define READHSCX(cs, nr, reg)   bytein(calc_off(cs->hw.spt.hscx[nr], reg))
 
#define WRITEHSCX(cs, nr, reg, data)   byteout(calc_off(cs->hw.spt.hscx[nr], reg), data)
 
#define READHSCXFIFO(cs, nr, ptr, cnt)   read_fifo(cs->hw.spt.hscx[nr], ptr, cnt)
 
#define WRITEHSCXFIFO(cs, nr, ptr, cnt)   write_fifo(cs->hw.spt.hscx[nr], ptr, cnt)
 

Functions

int __devinit setup_sportster (struct IsdnCard *card)
 

Macro Definition Documentation

#define bytein (   addr)    inb(addr)

Definition at line 24 of file sportster.c.

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

Definition at line 23 of file sportster.c.

#define READHSCX (   cs,
  nr,
  reg 
)    bytein(calc_off(cs->hw.spt.hscx[nr], reg))

Definition at line 93 of file sportster.c.

#define READHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)    read_fifo(cs->hw.spt.hscx[nr], ptr, cnt)

Definition at line 95 of file sportster.c.

#define SPORTSTER_HSCXA   0x0000

Definition at line 27 of file sportster.c.

#define SPORTSTER_HSCXB   0x4000

Definition at line 28 of file sportster.c.

#define SPORTSTER_INTE   0x40

Definition at line 31 of file sportster.c.

#define SPORTSTER_ISAC   0xC000

Definition at line 26 of file sportster.c.

#define SPORTSTER_RES_IRQ   0x8000

Definition at line 29 of file sportster.c.

#define SPORTSTER_RESET   0x80

Definition at line 30 of file sportster.c.

#define WRITEHSCX (   cs,
  nr,
  reg,
  data 
)    byteout(calc_off(cs->hw.spt.hscx[nr], reg), data)

Definition at line 94 of file sportster.c.

#define WRITEHSCXFIFO (   cs,
  nr,
  ptr,
  cnt 
)    write_fifo(cs->hw.spt.hscx[nr], ptr, cnt)

Definition at line 96 of file sportster.c.

Function Documentation

int __devinit setup_sportster ( struct IsdnCard card)

Definition at line 212 of file sportster.c.