Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/semaphore.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#include <linux/workqueue.h>
#include <linux/hdlc.h>
#include "libsbew.h"
#include "pmcc4_defs.h"
#include "pmcc4_cpld.h"
#include "musycc.h"
#include "sbe_promformat.h"
#include "comet.h"
Go to the source code of this file.
Data Structures | |
struct | mdesc |
struct | c4_chan_info |
struct | c4_port_info |
struct | sbe_card_info |
struct | sbe_card_info::intlog |
struct | s_hdw_info |
struct | c4_priv |
Macros | |
#define | SBE_DRVR_INIT 0x0 |
#define | SBE_DRVR_AVAILABLE 0x69734F4E |
#define | SBE_DRVR_DOWN 0x1 |
#define | TX_RECOVERY_MASK 0x0f |
#define | TX_ONR_RECOVERY 0x01 |
#define | TX_BUFF_RECOVERY 0x02 |
#define | RX_RECOVERY_MASK 0xf0 |
#define | RX_ONR_RECOVERY 0x10 |
#define | CH_START_RX_NOW 1 |
#define | CH_START_RX_ONR 2 |
#define | CH_START_RX_BUF 3 |
#define | CH_START_TX_1ST 1 |
#define | CH_START_TX_ONR 2 |
#define | CH_START_TX_BUF 3 |
#define | COMET_OFFSET(x) (0x80000+(x)*0x10000) |
#define | EEPROM_OFFSET 0xC0000 |
#define | ISPLD_OFFSET 0xD0000 |
#define | ISPLD_MCSR 0x0 |
#define | ISPLD_MCLK 0x1 |
#define | ISPLD_LEDS 0x2 |
#define | ISPLD_INTR 0x3 |
#define | ISPLD_MAX 0x3 |
#define | WD_NOTIFY_1TX 1 |
#define | WD_NOTIFY_BUF 2 |
#define | WD_NOTIFY_ONR 4 |
#define | EEPROM_OK 0x00 |
#define | EEPROM_CRCERR 0x01 |
Typedefs | |
typedef struct c4_chan_info | mch_t |
typedef struct c4_port_info | mpi_t |
typedef struct sbe_card_info | ci_t |
typedef struct s_hdw_info | hdw_info_t |
Functions | |
mch_t * | c4_find_chan (int) |
int | c4_set_chan (int channum, struct sbecom_chan_param *) |
int | c4_get_chan (int channum, struct sbecom_chan_param *) |
int | c4_get_chan_stats (int channum, struct sbecom_chan_stats *) |
Variables | |
ci_t * | c4_list |
#define CH_START_RX_BUF 3 |
Definition at line 76 of file pmcc4_private.h.
#define CH_START_RX_NOW 1 |
Definition at line 74 of file pmcc4_private.h.
#define CH_START_RX_ONR 2 |
Definition at line 75 of file pmcc4_private.h.
#define CH_START_TX_1ST 1 |
Definition at line 79 of file pmcc4_private.h.
#define CH_START_TX_BUF 3 |
Definition at line 81 of file pmcc4_private.h.
#define CH_START_TX_ONR 2 |
Definition at line 80 of file pmcc4_private.h.
#define COMET_OFFSET | ( | x | ) | (0x80000+(x)*0x10000) |
Definition at line 168 of file pmcc4_private.h.
#define EEPROM_CRCERR 0x01 |
Definition at line 257 of file pmcc4_private.h.
#define EEPROM_OFFSET 0xC0000 |
Definition at line 169 of file pmcc4_private.h.
#define EEPROM_OK 0x00 |
Definition at line 256 of file pmcc4_private.h.
#define ISPLD_INTR 0x3 |
Definition at line 176 of file pmcc4_private.h.
#define ISPLD_LEDS 0x2 |
Definition at line 175 of file pmcc4_private.h.
#define ISPLD_MAX 0x3 |
Definition at line 177 of file pmcc4_private.h.
#define ISPLD_MCLK 0x1 |
Definition at line 174 of file pmcc4_private.h.
#define ISPLD_MCSR 0x0 |
Definition at line 173 of file pmcc4_private.h.
#define ISPLD_OFFSET 0xD0000 |
Definition at line 170 of file pmcc4_private.h.
#define RX_ONR_RECOVERY 0x10 |
Definition at line 71 of file pmcc4_private.h.
#define RX_RECOVERY_MASK 0xf0 |
Definition at line 70 of file pmcc4_private.h.
#define SBE_DRVR_AVAILABLE 0x69734F4E |
Definition at line 40 of file pmcc4_private.h.
#define SBE_DRVR_DOWN 0x1 |
Definition at line 41 of file pmcc4_private.h.
#define SBE_DRVR_INIT 0x0 |
Definition at line 39 of file pmcc4_private.h.
#define TX_BUFF_RECOVERY 0x02 |
Definition at line 69 of file pmcc4_private.h.
#define TX_ONR_RECOVERY 0x01 |
Definition at line 68 of file pmcc4_private.h.
#define TX_RECOVERY_MASK 0x0f |
Definition at line 67 of file pmcc4_private.h.
#define WD_NOTIFY_1TX 1 |
Definition at line 199 of file pmcc4_private.h.
#define WD_NOTIFY_BUF 2 |
Definition at line 200 of file pmcc4_private.h.
#define WD_NOTIFY_ONR 4 |
Definition at line 201 of file pmcc4_private.h.
typedef struct sbe_card_info ci_t |
Definition at line 247 of file pmcc4_private.h.
typedef struct s_hdw_info hdw_info_t |
Definition at line 276 of file pmcc4_private.h.
typedef struct c4_chan_info mch_t |
Definition at line 126 of file pmcc4_private.h.
typedef struct c4_port_info mpi_t |
Definition at line 165 of file pmcc4_private.h.
Definition at line 112 of file pmcc4_drv.c.
int c4_get_chan | ( | int | channum, |
struct sbecom_chan_param * | |||
) |
Definition at line 1164 of file pmcc4_drv.c.
int c4_get_chan_stats | ( | int | channum, |
struct sbecom_chan_stats * | |||
) |
Definition at line 1175 of file pmcc4_drv.c.
int c4_set_chan | ( | int | channum, |
struct sbecom_chan_param * | |||
) |
Definition at line 1113 of file pmcc4_drv.c.
ci_t* c4_list |
Definition at line 80 of file pmcc4_drv.c.