Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
niccy.c File Reference
#include <linux/init.h>
#include "hisax.h"
#include "isac.h"
#include "hscx.h"
#include "isdnl1.h"
#include <linux/pci.h>
#include <linux/isapnp.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_PCI_DATA   0
 
#define HSCX_PCI_DATA   1
 
#define ISAC_PCI_ADDR   2
 
#define HSCX_PCI_ADDR   3
 
#define ISAC_PNP   0
 
#define HSCX_PNP   1
 
#define NICCY_PNP   1
 
#define NICCY_PCI   2
 
#define PCI_IRQ_CTRL_REG   0x38
 
#define PCI_IRQ_ENABLE   0x1f00
 
#define PCI_IRQ_DISABLE   0xff0000
 
#define PCI_IRQ_ASSERT   0x800000
 
#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_niccy (struct IsdnCard *card)
 

Macro Definition Documentation

#define bytein (   addr)    inb(addr)

Definition at line 27 of file niccy.c.

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

Definition at line 26 of file niccy.c.

#define HSCX_PCI_ADDR   3

Definition at line 32 of file niccy.c.

#define HSCX_PCI_DATA   1

Definition at line 30 of file niccy.c.

#define HSCX_PNP   1

Definition at line 34 of file niccy.c.

#define ISAC_PCI_ADDR   2

Definition at line 31 of file niccy.c.

#define ISAC_PCI_DATA   0

Definition at line 29 of file niccy.c.

#define ISAC_PNP   0

Definition at line 33 of file niccy.c.

#define NICCY_PCI   2

Definition at line 38 of file niccy.c.

#define NICCY_PNP   1

Definition at line 37 of file niccy.c.

#define PCI_IRQ_ASSERT   0x800000

Definition at line 44 of file niccy.c.

#define PCI_IRQ_CTRL_REG   0x38

Definition at line 41 of file niccy.c.

#define PCI_IRQ_DISABLE   0xff0000

Definition at line 43 of file niccy.c.

#define PCI_IRQ_ENABLE   0x1f00

Definition at line 42 of file niccy.c.

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

Definition at line 111 of file niccy.c.

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

Definition at line 116 of file niccy.c.

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

Definition at line 113 of file niccy.c.

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

Definition at line 119 of file niccy.c.

Function Documentation

int __devinit setup_niccy ( struct IsdnCard card)

Definition at line 229 of file niccy.c.