Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
b1dma.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/skbuff.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/capi.h>
#include <linux/kernelcapi.h>
#include <linux/gfp.h>
#include <asm/io.h>
#include <linux/init.h>
#include <asm/uaccess.h>
#include <linux/netdevice.h>
#include <linux/isdn/capilli.h>
#include "avmcard.h"
#include <linux/isdn/capicmd.h>
#include <linux/isdn/capiutil.h>

Go to the source code of this file.

Macros

#define AMCC_RXPTR   0x24
 
#define AMCC_RXLEN   0x28
 
#define AMCC_TXPTR   0x2c
 
#define AMCC_TXLEN   0x30
 
#define AMCC_INTCSR   0x38
 
#define EN_READ_TC_INT   0x00008000L
 
#define EN_WRITE_TC_INT   0x00004000L
 
#define EN_TX_TC_INT   EN_READ_TC_INT
 
#define EN_RX_TC_INT   EN_WRITE_TC_INT
 
#define AVM_FLAG   0x30000000L
 
#define ANY_S5933_INT   0x00800000L
 
#define READ_TC_INT   0x00080000L
 
#define WRITE_TC_INT   0x00040000L
 
#define TX_TC_INT   READ_TC_INT
 
#define RX_TC_INT   WRITE_TC_INT
 
#define MASTER_ABORT_INT   0x00100000L
 
#define TARGET_ABORT_INT   0x00200000L
 
#define BUS_MASTER_INT   0x00200000L
 
#define ALL_INT   0x000C0000L
 
#define AMCC_MCSR   0x3c
 
#define A2P_HI_PRIORITY   0x00000100L
 
#define EN_A2P_TRANSFERS   0x00000400L
 
#define P2A_HI_PRIORITY   0x00001000L
 
#define EN_P2A_TRANSFERS   0x00004000L
 
#define RESET_A2P_FLAGS   0x04000000L
 
#define RESET_P2A_FLAGS   0x02000000L
 

Functions

 MODULE_DESCRIPTION ("CAPI4Linux: DMA support for active AVM cards")
 
 MODULE_AUTHOR ("Carsten Paeth")
 
 MODULE_LICENSE ("GPL")
 
 module_param (suppress_pollack, bool, 0)
 
void b1dma_reset (avmcard *card)
 
int t1pci_detect (avmcard *card)
 
int b1pciv4_detect (avmcard *card)
 
irqreturn_t b1dma_interrupt (int interrupt, void *devptr)
 
int b1dma_load_firmware (struct capi_ctr *ctrl, capiloaddata *data)
 
void b1dma_reset_ctr (struct capi_ctr *ctrl)
 
void b1dma_register_appl (struct capi_ctr *ctrl, u16 appl, capi_register_params *rp)
 
void b1dma_release_appl (struct capi_ctr *ctrl, u16 appl)
 
u16 b1dma_send_message (struct capi_ctr *ctrl, struct sk_buff *skb)
 
 EXPORT_SYMBOL (b1dmactl_proc_fops)
 
 EXPORT_SYMBOL (b1dma_reset)
 
 EXPORT_SYMBOL (t1pci_detect)
 
 EXPORT_SYMBOL (b1pciv4_detect)
 
 EXPORT_SYMBOL (b1dma_interrupt)
 
 EXPORT_SYMBOL (b1dma_load_firmware)
 
 EXPORT_SYMBOL (b1dma_reset_ctr)
 
 EXPORT_SYMBOL (b1dma_register_appl)
 
 EXPORT_SYMBOL (b1dma_release_appl)
 
 EXPORT_SYMBOL (b1dma_send_message)
 
 module_init (b1dma_init)
 
 module_exit (b1dma_exit)
 

Variables

struct file_operations b1dmactl_proc_fops
 

Macro Definition Documentation

#define A2P_HI_PRIORITY   0x00000100L

Definition at line 77 of file b1dma.c.

#define ALL_INT   0x000C0000L

Definition at line 74 of file b1dma.c.

#define AMCC_INTCSR   0x38

Definition at line 59 of file b1dma.c.

#define AMCC_MCSR   0x3c

Definition at line 76 of file b1dma.c.

#define AMCC_RXLEN   0x28

Definition at line 55 of file b1dma.c.

#define AMCC_RXPTR   0x24

Definition at line 54 of file b1dma.c.

#define AMCC_TXLEN   0x30

Definition at line 57 of file b1dma.c.

#define AMCC_TXPTR   0x2c

Definition at line 56 of file b1dma.c.

#define ANY_S5933_INT   0x00800000L

Definition at line 66 of file b1dma.c.

#define AVM_FLAG   0x30000000L

Definition at line 64 of file b1dma.c.

#define BUS_MASTER_INT   0x00200000L

Definition at line 73 of file b1dma.c.

#define EN_A2P_TRANSFERS   0x00000400L

Definition at line 78 of file b1dma.c.

#define EN_P2A_TRANSFERS   0x00004000L

Definition at line 80 of file b1dma.c.

#define EN_READ_TC_INT   0x00008000L

Definition at line 60 of file b1dma.c.

#define EN_RX_TC_INT   EN_WRITE_TC_INT

Definition at line 63 of file b1dma.c.

#define EN_TX_TC_INT   EN_READ_TC_INT

Definition at line 62 of file b1dma.c.

#define EN_WRITE_TC_INT   0x00004000L

Definition at line 61 of file b1dma.c.

#define MASTER_ABORT_INT   0x00100000L

Definition at line 71 of file b1dma.c.

#define P2A_HI_PRIORITY   0x00001000L

Definition at line 79 of file b1dma.c.

#define READ_TC_INT   0x00080000L

Definition at line 67 of file b1dma.c.

#define RESET_A2P_FLAGS   0x04000000L

Definition at line 81 of file b1dma.c.

#define RESET_P2A_FLAGS   0x02000000L

Definition at line 82 of file b1dma.c.

#define RX_TC_INT   WRITE_TC_INT

Definition at line 70 of file b1dma.c.

#define TARGET_ABORT_INT   0x00200000L

Definition at line 72 of file b1dma.c.

#define TX_TC_INT   READ_TC_INT

Definition at line 69 of file b1dma.c.

#define WRITE_TC_INT   0x00040000L

Definition at line 68 of file b1dma.c.

Function Documentation

irqreturn_t b1dma_interrupt ( int  interrupt,
void devptr 
)

Definition at line 639 of file b1dma.c.

int b1dma_load_firmware ( struct capi_ctr ctrl,
capiloaddata data 
)

Definition at line 704 of file b1dma.c.

void b1dma_register_appl ( struct capi_ctr ctrl,
u16  appl,
capi_register_params rp 
)

Definition at line 770 of file b1dma.c.

void b1dma_release_appl ( struct capi_ctr ctrl,
u16  appl 
)

Definition at line 807 of file b1dma.c.

void b1dma_reset ( avmcard card)

Definition at line 218 of file b1dma.c.

void b1dma_reset_ctr ( struct capi_ctr ctrl)

Definition at line 753 of file b1dma.c.

u16 b1dma_send_message ( struct capi_ctr ctrl,
struct sk_buff skb 
)

Definition at line 838 of file b1dma.c.

int b1pciv4_detect ( avmcard card)

Definition at line 327 of file b1dma.c.

EXPORT_SYMBOL ( b1dmactl_proc_fops  )
EXPORT_SYMBOL ( b1dma_reset  )
EXPORT_SYMBOL ( t1pci_detect  )
EXPORT_SYMBOL ( b1pciv4_detect  )
EXPORT_SYMBOL ( b1dma_interrupt  )
EXPORT_SYMBOL ( b1dma_load_firmware  )
EXPORT_SYMBOL ( b1dma_reset_ctr  )
EXPORT_SYMBOL ( b1dma_register_appl  )
EXPORT_SYMBOL ( b1dma_release_appl  )
EXPORT_SYMBOL ( b1dma_send_message  )
MODULE_AUTHOR ( "Carsten Paeth"  )
MODULE_DESCRIPTION ( "CAPI4Linux: DMA support for active AVM cards )
module_exit ( b1dma_exit  )
module_init ( b1dma_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( suppress_pollack  ,
bool  ,
 
)
int t1pci_detect ( avmcard card)

Definition at line 291 of file b1dma.c.

Variable Documentation

struct file_operations b1dmactl_proc_fops
Initial value:
= {
.owner = THIS_MODULE,
.open = b1dmactl_proc_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
}

Definition at line 950 of file b1dma.c.