Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
avm_pci.c File Reference
#include <linux/init.h>
#include "hisax.h"
#include "isac.h"
#include "isdnl1.h"
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/isapnp.h>
#include <linux/interrupt.h>

Go to the source code of this file.

Macros

#define AVM_FRITZ_PCI   1
 
#define AVM_FRITZ_PNP   2
 
#define HDLC_FIFO   0x0
 
#define HDLC_STATUS   0x4
 
#define AVM_HDLC_1   0x00
 
#define AVM_HDLC_2   0x01
 
#define AVM_ISAC_FIFO   0x02
 
#define AVM_ISAC_REG_LOW   0x04
 
#define AVM_ISAC_REG_HIGH   0x06
 
#define AVM_STATUS0_IRQ_ISAC   0x01
 
#define AVM_STATUS0_IRQ_HDLC   0x02
 
#define AVM_STATUS0_IRQ_TIMER   0x04
 
#define AVM_STATUS0_IRQ_MASK   0x07
 
#define AVM_STATUS0_RESET   0x01
 
#define AVM_STATUS0_DIS_TIMER   0x02
 
#define AVM_STATUS0_RES_TIMER   0x04
 
#define AVM_STATUS0_ENA_IRQ   0x08
 
#define AVM_STATUS0_TESTBIT   0x10
 
#define AVM_STATUS1_INT_SEL   0x0f
 
#define AVM_STATUS1_ENA_IOM   0x80
 
#define HDLC_MODE_ITF_FLG   0x01
 
#define HDLC_MODE_TRANS   0x02
 
#define HDLC_MODE_CCR_7   0x04
 
#define HDLC_MODE_CCR_16   0x08
 
#define HDLC_MODE_TESTLOOP   0x80
 
#define HDLC_INT_XPR   0x80
 
#define HDLC_INT_XDU   0x40
 
#define HDLC_INT_RPR   0x20
 
#define HDLC_INT_MASK   0xE0
 
#define HDLC_STAT_RME   0x01
 
#define HDLC_STAT_RDO   0x10
 
#define HDLC_STAT_CRCVFRRAB   0x0E
 
#define HDLC_STAT_CRCVFR   0x06
 
#define HDLC_STAT_RML_MASK   0x3f00
 
#define HDLC_CMD_XRS   0x80
 
#define HDLC_CMD_XME   0x01
 
#define HDLC_CMD_RRS   0x20
 
#define HDLC_CMD_XML_MASK   0x3f00
 

Functions

int __devinit setup_avm_pcipnp (struct IsdnCard *card)
 

Macro Definition Documentation

#define AVM_FRITZ_PCI   1

Definition at line 26 of file avm_pci.c.

#define AVM_FRITZ_PNP   2

Definition at line 27 of file avm_pci.c.

#define AVM_HDLC_1   0x00

Definition at line 32 of file avm_pci.c.

#define AVM_HDLC_2   0x01

Definition at line 33 of file avm_pci.c.

#define AVM_ISAC_FIFO   0x02

Definition at line 34 of file avm_pci.c.

#define AVM_ISAC_REG_HIGH   0x06

Definition at line 36 of file avm_pci.c.

#define AVM_ISAC_REG_LOW   0x04

Definition at line 35 of file avm_pci.c.

#define AVM_STATUS0_DIS_TIMER   0x02

Definition at line 44 of file avm_pci.c.

#define AVM_STATUS0_ENA_IRQ   0x08

Definition at line 46 of file avm_pci.c.

#define AVM_STATUS0_IRQ_HDLC   0x02

Definition at line 39 of file avm_pci.c.

#define AVM_STATUS0_IRQ_ISAC   0x01

Definition at line 38 of file avm_pci.c.

#define AVM_STATUS0_IRQ_MASK   0x07

Definition at line 41 of file avm_pci.c.

#define AVM_STATUS0_IRQ_TIMER   0x04

Definition at line 40 of file avm_pci.c.

#define AVM_STATUS0_RES_TIMER   0x04

Definition at line 45 of file avm_pci.c.

#define AVM_STATUS0_RESET   0x01

Definition at line 43 of file avm_pci.c.

#define AVM_STATUS0_TESTBIT   0x10

Definition at line 47 of file avm_pci.c.

#define AVM_STATUS1_ENA_IOM   0x80

Definition at line 50 of file avm_pci.c.

#define AVM_STATUS1_INT_SEL   0x0f

Definition at line 49 of file avm_pci.c.

#define HDLC_CMD_RRS   0x20

Definition at line 71 of file avm_pci.c.

#define HDLC_CMD_XME   0x01

Definition at line 70 of file avm_pci.c.

#define HDLC_CMD_XML_MASK   0x3f00

Definition at line 72 of file avm_pci.c.

#define HDLC_CMD_XRS   0x80

Definition at line 69 of file avm_pci.c.

#define HDLC_FIFO   0x0

Definition at line 29 of file avm_pci.c.

#define HDLC_INT_MASK   0xE0

Definition at line 61 of file avm_pci.c.

#define HDLC_INT_RPR   0x20

Definition at line 60 of file avm_pci.c.

#define HDLC_INT_XDU   0x40

Definition at line 59 of file avm_pci.c.

#define HDLC_INT_XPR   0x80

Definition at line 58 of file avm_pci.c.

#define HDLC_MODE_CCR_16   0x08

Definition at line 55 of file avm_pci.c.

#define HDLC_MODE_CCR_7   0x04

Definition at line 54 of file avm_pci.c.

#define HDLC_MODE_ITF_FLG   0x01

Definition at line 52 of file avm_pci.c.

#define HDLC_MODE_TESTLOOP   0x80

Definition at line 56 of file avm_pci.c.

#define HDLC_MODE_TRANS   0x02

Definition at line 53 of file avm_pci.c.

#define HDLC_STAT_CRCVFR   0x06

Definition at line 66 of file avm_pci.c.

#define HDLC_STAT_CRCVFRRAB   0x0E

Definition at line 65 of file avm_pci.c.

#define HDLC_STAT_RDO   0x10

Definition at line 64 of file avm_pci.c.

#define HDLC_STAT_RME   0x01

Definition at line 63 of file avm_pci.c.

#define HDLC_STAT_RML_MASK   0x3f00

Definition at line 67 of file avm_pci.c.

#define HDLC_STATUS   0x4

Definition at line 30 of file avm_pci.c.

Function Documentation

int __devinit setup_avm_pcipnp ( struct IsdnCard card)

Definition at line 871 of file avm_pci.c.