Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
asuscom.c File Reference
#include <linux/init.h>
#include <linux/isapnp.h>
#include "hisax.h"
#include "isac.h"
#include "ipac.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 ASUS_ISAC   0
 
#define ASUS_HSCX   1
 
#define ASUS_ADR   2
 
#define ASUS_CTRL_U7   3
 
#define ASUS_CTRL_POTS   5
 
#define ASUS_IPAC_ALE   0
 
#define ASUS_IPAC_DATA   1
 
#define ASUS_ISACHSCX   1
 
#define ASUS_IPAC   2
 
#define ASUS_RESET   0x80 /* Bit 7 Reset-Leitung */
 
#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_asuscom (struct IsdnCard *card)
 

Macro Definition Documentation

#define ASUS_ADR   2

Definition at line 30 of file asuscom.c.

#define ASUS_CTRL_POTS   5

Definition at line 32 of file asuscom.c.

#define ASUS_CTRL_U7   3

Definition at line 31 of file asuscom.c.

#define ASUS_HSCX   1

Definition at line 29 of file asuscom.c.

#define ASUS_IPAC   2

Definition at line 38 of file asuscom.c.

#define ASUS_IPAC_ALE   0

Definition at line 34 of file asuscom.c.

#define ASUS_IPAC_DATA   1

Definition at line 35 of file asuscom.c.

#define ASUS_ISAC   0

Definition at line 28 of file asuscom.c.

#define ASUS_ISACHSCX   1

Definition at line 37 of file asuscom.c.

#define ASUS_RESET   0x80 /* Bit 7 Reset-Leitung */

Definition at line 41 of file asuscom.c.

#define bytein (   addr)    inb(addr)

Definition at line 26 of file asuscom.c.

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

Definition at line 25 of file asuscom.c.

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

Definition at line 143 of file asuscom.c.

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

Definition at line 148 of file asuscom.c.

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

Definition at line 145 of file asuscom.c.

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

Definition at line 151 of file asuscom.c.

Function Documentation

int __devinit setup_asuscom ( struct IsdnCard card)

Definition at line 319 of file asuscom.c.