Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/timer.h>
#include <linux/skbuff.h>
#include <linux/wait.h>
#include <asm/io.h>
#include "hisax_if.h"
#include "hfc4s8s_l1.h"
Go to the source code of this file.
Data Structures | |
struct | hfc4s8s_param |
struct | hfc4s8s_btype |
struct | hfc4s8s_l1 |
struct | _hfc4s8s_hw |
Macros | |
#define | TRANS_FIFO_THRES 5 |
#define | CLOCKMODE_0 0 /* ext. 24.576 MhZ clk freq, int. single clock mode */ |
#define | CLOCKMODE_1 1 /* ext. 49.576 MhZ clk freq, int. single clock mode */ |
#define | CHIP_ID_SHIFT 4 |
#define | HFC_MAX_ST 8 |
#define | MAX_D_FRAME_SIZE 270 |
#define | MAX_B_FRAME_SIZE 1536 |
#define | TRANS_TIMER_MODE (TRANS_FIFO_THRES & 0xf) |
#define | TRANS_FIFO_BYTES (2 << TRANS_FIFO_THRES) |
#define | MAX_F_CNT 0x0f |
#define | CLKDEL_NT 0x6c |
#define | CLKDEL_TE 0xf |
#define | CTRL0_NT 4 |
#define | CTRL0_TE 0 |
#define | L1_TIMER_T4 2 /* minimum in jiffies */ |
#define | L1_TIMER_T3 (7 * HZ) /* activation timeout */ |
#define | L1_TIMER_T1 ((120 * HZ) / 1000) /* NT mode deactivation timeout */ |
#define | PCI_ENA_REGIO 0x01 |
Typedefs | |
typedef struct _hfc4s8s_hw | hfc4s8s_hw |
Functions | |
MODULE_DEVICE_TABLE (pci, hfc4s8s_ids) | |
MODULE_AUTHOR ("Werner Cornelius, [email protected]") | |
MODULE_DESCRIPTION ("ISDN layer 1 for Cologne Chip HFC-4S/8S chips") | |
MODULE_LICENSE ("GPL") | |
module_init (hfc4s8s_module_init) | |
module_exit (hfc4s8s_module_exit) | |
#define CHIP_ID_SHIFT 4 |
Definition at line 58 of file hfc4s8s_l1.c.
#define CLKDEL_NT 0x6c |
Definition at line 66 of file hfc4s8s_l1.c.
#define CLKDEL_TE 0xf |
Definition at line 67 of file hfc4s8s_l1.c.
Definition at line 56 of file hfc4s8s_l1.c.
Definition at line 57 of file hfc4s8s_l1.c.
#define CTRL0_NT 4 |
Definition at line 68 of file hfc4s8s_l1.c.
#define CTRL0_TE 0 |
Definition at line 69 of file hfc4s8s_l1.c.
#define HFC_MAX_ST 8 |
Definition at line 59 of file hfc4s8s_l1.c.
Definition at line 73 of file hfc4s8s_l1.c.
Definition at line 72 of file hfc4s8s_l1.c.
Definition at line 71 of file hfc4s8s_l1.c.
#define MAX_B_FRAME_SIZE 1536 |
Definition at line 61 of file hfc4s8s_l1.c.
#define MAX_D_FRAME_SIZE 270 |
Definition at line 60 of file hfc4s8s_l1.c.
#define MAX_F_CNT 0x0f |
Definition at line 64 of file hfc4s8s_l1.c.
#define PCI_ENA_REGIO 0x01 |
Definition at line 307 of file hfc4s8s_l1.c.
#define TRANS_FIFO_BYTES (2 << TRANS_FIFO_THRES) |
Definition at line 63 of file hfc4s8s_l1.c.
#define TRANS_FIFO_THRES 5 |
Definition at line 51 of file hfc4s8s_l1.c.
#define TRANS_TIMER_MODE (TRANS_FIFO_THRES & 0xf) |
Definition at line 62 of file hfc4s8s_l1.c.
typedef struct _hfc4s8s_hw hfc4s8s_hw |
MODULE_AUTHOR | ( | "Werner | Cornelius, |
werner @cornelius-consult.de" | |||
) |
MODULE_DESCRIPTION | ( | "ISDN layer 1 for Cologne Chip HFC-4S/8S chips" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
hfc4s8s_ids | |||
) |
module_exit | ( | hfc4s8s_module_exit | ) |
module_init | ( | hfc4s8s_module_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |