Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
speedfax.c File Reference
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/mISDNhw.h>
#include <linux/firmware.h>
#include "ipac.h"
#include "isar.h"

Go to the source code of this file.

Data Structures

struct  sfax_hw
 

Macros

#define SPEEDFAX_REV   "2.0"
 
#define PCI_SUBVENDOR_SPEEDFAX_PYRAMID   0x51
 
#define PCI_SUBVENDOR_SPEEDFAX_PCI   0x54
 
#define PCI_SUB_ID_SEDLBAUER   0x01
 
#define SFAX_PCI_ADDR   0xc8
 
#define SFAX_PCI_ISAC   0xd0
 
#define SFAX_PCI_ISAR   0xe0
 
#define TIGER_RESET_ADDR   0x00
 
#define TIGER_EXTERN_RESET_ON   0x01
 
#define TIGER_EXTERN_RESET_OFF   0x00
 
#define TIGER_AUX_CTRL   0x02
 
#define TIGER_AUX_DATA   0x03
 
#define TIGER_AUX_IRQMASK   0x05
 
#define TIGER_AUX_STATUS   0x07
 
#define SFAX_AUX_IOMASK   0xdd /* 1 and 5 are inputs */
 
#define SFAX_ISAR_RESET_BIT_OFF   0x00
 
#define SFAX_ISAR_RESET_BIT_ON   0x01
 
#define SFAX_TIGER_IRQ_BIT   0x02
 
#define SFAX_LED1_BIT   0x08
 
#define SFAX_LED2_BIT   0x10
 
#define SFAX_PCI_RESET_ON   (SFAX_ISAR_RESET_BIT_ON)
 
#define SFAX_PCI_RESET_OFF   (SFAX_LED1_BIT | SFAX_LED2_BIT)
 

Functions

 MODULE_AUTHOR ("Karsten Keil")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_VERSION (SPEEDFAX_REV)
 
 MODULE_FIRMWARE ("isdn/ISAR.BIN")
 
 module_param_call (debug, set_debug, param_get_uint,&debug, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (debug,"Speedfax debug mask")
 
 module_param (irqloops, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (irqloops,"Speedfax maximal irqloops (default 4)")
 
 MODULE_DEVICE_TABLE (pci, sfaxpci_ids)
 
 module_init (Speedfax_init)
 
 module_exit (Speedfax_cleanup)
 

Macro Definition Documentation

#define PCI_SUB_ID_SEDLBAUER   0x01

Definition at line 39 of file speedfax.c.

#define PCI_SUBVENDOR_SPEEDFAX_PCI   0x54

Definition at line 38 of file speedfax.c.

#define PCI_SUBVENDOR_SPEEDFAX_PYRAMID   0x51

Definition at line 37 of file speedfax.c.

#define SFAX_AUX_IOMASK   0xdd /* 1 and 5 are inputs */

Definition at line 56 of file speedfax.c.

#define SFAX_ISAR_RESET_BIT_OFF   0x00

Definition at line 57 of file speedfax.c.

#define SFAX_ISAR_RESET_BIT_ON   0x01

Definition at line 58 of file speedfax.c.

#define SFAX_LED1_BIT   0x08

Definition at line 60 of file speedfax.c.

#define SFAX_LED2_BIT   0x10

Definition at line 61 of file speedfax.c.

#define SFAX_PCI_ADDR   0xc8

Definition at line 41 of file speedfax.c.

#define SFAX_PCI_ISAC   0xd0

Definition at line 42 of file speedfax.c.

#define SFAX_PCI_ISAR   0xe0

Definition at line 43 of file speedfax.c.

#define SFAX_PCI_RESET_OFF   (SFAX_LED1_BIT | SFAX_LED2_BIT)

Definition at line 64 of file speedfax.c.

#define SFAX_PCI_RESET_ON   (SFAX_ISAR_RESET_BIT_ON)

Definition at line 63 of file speedfax.c.

#define SFAX_TIGER_IRQ_BIT   0x02

Definition at line 59 of file speedfax.c.

#define SPEEDFAX_REV   "2.0"

Definition at line 35 of file speedfax.c.

#define TIGER_AUX_CTRL   0x02

Definition at line 50 of file speedfax.c.

#define TIGER_AUX_DATA   0x03

Definition at line 51 of file speedfax.c.

#define TIGER_AUX_IRQMASK   0x05

Definition at line 52 of file speedfax.c.

#define TIGER_AUX_STATUS   0x07

Definition at line 53 of file speedfax.c.

#define TIGER_EXTERN_RESET_OFF   0x00

Definition at line 49 of file speedfax.c.

#define TIGER_EXTERN_RESET_ON   0x01

Definition at line 48 of file speedfax.c.

#define TIGER_RESET_ADDR   0x00

Definition at line 47 of file speedfax.c.

Function Documentation

MODULE_AUTHOR ( "Karsten Keil"  )
MODULE_DEVICE_TABLE ( pci  ,
sfaxpci_ids   
)
module_exit ( Speedfax_cleanup  )
MODULE_FIRMWARE ( "isdn/ISAR.BIN"  )
module_init ( Speedfax_init  )
MODULE_LICENSE ( "GPL v2 )
module_param ( irqloops  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_call ( debug  ,
set_debug  ,
param_get_uint  ,
debug,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( debug  ,
"Speedfax debug mask  
)
MODULE_PARM_DESC ( irqloops  ,
"Speedfax maximal irqloops (default 4)"   
)
MODULE_VERSION ( SPEEDFAX_REV  )