Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hisax_fcpcipnp.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/isapnp.h>
#include <linux/kmod.h>
#include <linux/slab.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <asm/io.h>
#include "hisax_fcpcipnp.h"
#include "hisax_debug.h"

Go to the source code of this file.

Macros

#define __debug_variable   debug
 
#define AVM_INDEX   0x04
 
#define AVM_DATA   0x10
 
#define AVM_IDX_HDLC_1   0x00
 
#define AVM_IDX_HDLC_2   0x01
 
#define AVM_IDX_ISAC_FIFO   0x02
 
#define AVM_IDX_ISAC_REG_LOW   0x04
 
#define AVM_IDX_ISAC_REG_HIGH   0x06
 
#define AVM_STATUS0   0x02
 
#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   0x03
 
#define AVM_STATUS1_ENA_IOM   0x80
 
#define HDLC_FIFO   0x0
 
#define HDLC_STATUS   0x4
 
#define HDLC_CTRL   0x4
 
#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   0xff00
 
#define HDLC_CMD_XRS   0x80
 
#define HDLC_CMD_XME   0x01
 
#define HDLC_CMD_RRS   0x20
 
#define HDLC_CMD_XML_MASK   0xff00
 
#define AVM_HDLC_FIFO_1   0x10
 
#define AVM_HDLC_FIFO_2   0x18
 
#define AVM_HDLC_STATUS_1   0x14
 
#define AVM_HDLC_STATUS_2   0x1c
 
#define AVM_ISACSX_INDEX   0x04
 
#define AVM_ISACSX_DATA   0x08
 

Functions

 MODULE_AUTHOR ("Kai Germaschewski <[email protected]>/Karsten Keil <[email protected]>")
 
 MODULE_DESCRIPTION ("AVM Fritz!PCI/PnP ISDN driver")
 
 MODULE_DEVICE_TABLE (pci, fcpci_ids)
 
 module_param (protocol, int, 0)
 
 MODULE_LICENSE ("GPL")
 
 module_init (hisax_fcpcipnp_init)
 
 module_exit (hisax_fcpcipnp_exit)
 

Macro Definition Documentation

#define __debug_variable   debug

Definition at line 42 of file hisax_fcpcipnp.c.

#define AVM_DATA   0x10

Definition at line 91 of file hisax_fcpcipnp.c.

#define AVM_HDLC_FIFO_1   0x10

Definition at line 141 of file hisax_fcpcipnp.c.

#define AVM_HDLC_FIFO_2   0x18

Definition at line 142 of file hisax_fcpcipnp.c.

#define AVM_HDLC_STATUS_1   0x14

Definition at line 144 of file hisax_fcpcipnp.c.

#define AVM_HDLC_STATUS_2   0x1c

Definition at line 145 of file hisax_fcpcipnp.c.

#define AVM_IDX_HDLC_1   0x00

Definition at line 93 of file hisax_fcpcipnp.c.

#define AVM_IDX_HDLC_2   0x01

Definition at line 94 of file hisax_fcpcipnp.c.

#define AVM_IDX_ISAC_FIFO   0x02

Definition at line 95 of file hisax_fcpcipnp.c.

#define AVM_IDX_ISAC_REG_HIGH   0x06

Definition at line 97 of file hisax_fcpcipnp.c.

#define AVM_IDX_ISAC_REG_LOW   0x04

Definition at line 96 of file hisax_fcpcipnp.c.

#define AVM_INDEX   0x04

Definition at line 90 of file hisax_fcpcipnp.c.

#define AVM_ISACSX_DATA   0x08

Definition at line 148 of file hisax_fcpcipnp.c.

#define AVM_ISACSX_INDEX   0x04

Definition at line 147 of file hisax_fcpcipnp.c.

#define AVM_STATUS0   0x02

Definition at line 99 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_DIS_TIMER   0x02

Definition at line 107 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_ENA_IRQ   0x08

Definition at line 109 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_IRQ_HDLC   0x02

Definition at line 102 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_IRQ_ISAC   0x01

Definition at line 101 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_IRQ_MASK   0x07

Definition at line 104 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_IRQ_TIMER   0x04

Definition at line 103 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_RES_TIMER   0x04

Definition at line 108 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_RESET   0x01

Definition at line 106 of file hisax_fcpcipnp.c.

#define AVM_STATUS0_TESTBIT   0x10

Definition at line 110 of file hisax_fcpcipnp.c.

#define AVM_STATUS1   0x03

Definition at line 112 of file hisax_fcpcipnp.c.

#define AVM_STATUS1_ENA_IOM   0x80

Definition at line 113 of file hisax_fcpcipnp.c.

#define HDLC_CMD_RRS   0x20

Definition at line 138 of file hisax_fcpcipnp.c.

#define HDLC_CMD_XME   0x01

Definition at line 137 of file hisax_fcpcipnp.c.

#define HDLC_CMD_XML_MASK   0xff00

Definition at line 139 of file hisax_fcpcipnp.c.

#define HDLC_CMD_XRS   0x80

Definition at line 136 of file hisax_fcpcipnp.c.

#define HDLC_CTRL   0x4

Definition at line 117 of file hisax_fcpcipnp.c.

#define HDLC_FIFO   0x0

Definition at line 115 of file hisax_fcpcipnp.c.

#define HDLC_INT_MASK   0xE0

Definition at line 128 of file hisax_fcpcipnp.c.

#define HDLC_INT_RPR   0x20

Definition at line 127 of file hisax_fcpcipnp.c.

#define HDLC_INT_XDU   0x40

Definition at line 126 of file hisax_fcpcipnp.c.

#define HDLC_INT_XPR   0x80

Definition at line 125 of file hisax_fcpcipnp.c.

#define HDLC_MODE_CCR_16   0x08

Definition at line 122 of file hisax_fcpcipnp.c.

#define HDLC_MODE_CCR_7   0x04

Definition at line 121 of file hisax_fcpcipnp.c.

#define HDLC_MODE_ITF_FLG   0x01

Definition at line 119 of file hisax_fcpcipnp.c.

#define HDLC_MODE_TESTLOOP   0x80

Definition at line 123 of file hisax_fcpcipnp.c.

#define HDLC_MODE_TRANS   0x02

Definition at line 120 of file hisax_fcpcipnp.c.

#define HDLC_STAT_CRCVFR   0x06

Definition at line 133 of file hisax_fcpcipnp.c.

#define HDLC_STAT_CRCVFRRAB   0x0E

Definition at line 132 of file hisax_fcpcipnp.c.

#define HDLC_STAT_RDO   0x10

Definition at line 131 of file hisax_fcpcipnp.c.

#define HDLC_STAT_RME   0x01

Definition at line 130 of file hisax_fcpcipnp.c.

#define HDLC_STAT_RML_MASK   0xff00

Definition at line 134 of file hisax_fcpcipnp.c.

#define HDLC_STATUS   0x4

Definition at line 116 of file hisax_fcpcipnp.c.

Function Documentation

MODULE_AUTHOR ( "Kai Germaschewski <[email protected]>/Karsten Keil <[email protected]>"  )
MODULE_DESCRIPTION ( "AVM Fritz!PCI/PnP ISDN driver )
MODULE_DEVICE_TABLE ( pci  ,
fcpci_ids   
)
module_exit ( hisax_fcpcipnp_exit  )
module_init ( hisax_fcpcipnp_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( protocol  ,
int  ,
 
)