Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
bp_mod.c File Reference
#include <linux/version.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/rtnetlink.h>
#include <linux/rcupdate.h>
#include <linux/etherdevice.h>
#include <linux/uaccess.h>
#include <linux/sched.h>
#include <linux/ethtool.h>
#include <linux/proc_fs.h>
#include "bp_ioctl.h"
#include "bp_mod.h"
#include "bypass.h"
#include "libbp_sd.h"

Go to the source code of this file.

Data Structures

struct  pfs_unit_sd
 
struct  bypass_pfs_sd
 
struct  _bpctl_dev
 
struct  _bpmod_info_t
 
struct  _dev_desc
 

Macros

#define SUCCESS   0
 
#define BP_MOD_VER   "9.0.4"
 
#define BP_MOD_DESCR   "Silicom Bypass-SD Control driver"
 
#define BP_SYNC_FLAG   1
 
#define lock_bpctl()
 
#define unlock_bpctl()   up(&bpctl_sema);
 
#define PCI_DEVICE(vend, dev)
 
#define SILICOM_E1000BP_ETHERNET_DEVICE(device_id)
 
#define BP_PROC_DIR   "bypass"
 
#define GPIO6_SET_ENTRY_SD   "gpio6_set"
 
#define GPIO6_CLEAR_ENTRY_SD   "gpio6_clear"
 
#define GPIO7_SET_ENTRY_SD   "gpio7_set"
 
#define GPIO7_CLEAR_ENTRY_SD   "gpio7_clear"
 
#define PULSE_SET_ENTRY_SD   "pulse_set"
 
#define ZERO_SET_ENTRY_SD   "zero_set"
 
#define PULSE_GET1_ENTRY_SD   "pulse_get1"
 
#define PULSE_GET2_ENTRY_SD   "pulse_get2"
 
#define CMND_ON_ENTRY_SD   "cmnd_on"
 
#define CMND_OFF_ENTRY_SD   "cmnd_off"
 
#define RESET_CONT_ENTRY_SD   "reset_cont"
 
#define BYPASS_INFO_ENTRY_SD   "bypass_info"
 
#define BYPASS_SLAVE_ENTRY_SD   "bypass_slave"
 
#define BYPASS_CAPS_ENTRY_SD   "bypass_caps"
 
#define WD_SET_CAPS_ENTRY_SD   "wd_set_caps"
 
#define BYPASS_ENTRY_SD   "bypass"
 
#define BYPASS_CHANGE_ENTRY_SD   "bypass_change"
 
#define BYPASS_WD_ENTRY_SD   "bypass_wd"
 
#define WD_EXPIRE_TIME_ENTRY_SD   "wd_expire_time"
 
#define RESET_BYPASS_WD_ENTRY_SD   "reset_bypass_wd"
 
#define DIS_BYPASS_ENTRY_SD   "dis_bypass"
 
#define BYPASS_PWUP_ENTRY_SD   "bypass_pwup"
 
#define BYPASS_PWOFF_ENTRY_SD   "bypass_pwoff"
 
#define STD_NIC_ENTRY_SD   "std_nic"
 
#define STD_NIC_ENTRY_SD   "std_nic"
 
#define TAP_ENTRY_SD   "tap"
 
#define TAP_CHANGE_ENTRY_SD   "tap_change"
 
#define DIS_TAP_ENTRY_SD   "dis_tap"
 
#define TAP_PWUP_ENTRY_SD   "tap_pwup"
 
#define TWO_PORT_LINK_ENTRY_SD   "two_port_link"
 
#define WD_EXP_MODE_ENTRY_SD   "wd_exp_mode"
 
#define WD_AUTORESET_ENTRY_SD   "wd_autoreset"
 
#define TPL_ENTRY_SD   "tpl"
 
#define WAIT_AT_PWUP_ENTRY_SD   "wait_at_pwup"
 
#define HW_RESET_ENTRY_SD   "hw_reset"
 
#define DISC_ENTRY_SD   "disc"
 
#define DISC_CHANGE_ENTRY_SD   "disc_change"
 
#define DIS_DISC_ENTRY_SD   "dis_disc"
 
#define DISC_PWUP_ENTRY_SD   "disc_pwup"
 
#define isdigit(c)   (c >= '0' && c <= '9')
 

Typedefs

typedef struct _bpctl_dev bpctl_dev_t
 
typedef struct _bpmod_info_t bpmod_info_t
 
typedef struct _dev_desc dev_desc_t
 

Enumerations

enum  bp_media_type { bp_copper = 0, bp_fiber, bp_cx4, bp_none }
 
enum  board_t {
  BCM5706 = 0, NC370T, NC370I, BCM5706S,
  NC370F, BCM5708, BCM5708S, BCM5709,
  BCM5709S, BCM5716, BCM5716S, RTL8139 = 0,
  RTL8129, PXG2BPFI, PXG2BPFIL, PXG2BPFILX,
  PXG2BPFILLX, PXGBPI, PXGBPIG, PXG2TBFI,
  PXG4BPI, PXG4BPFI, PEG4BPI, PEG2BPI,
  PEG4BPIN, PEG2BPFI, PEG2BPFILX, PMCXG2BPFI,
  PMCXG2BPFIN, PEG4BPII, PEG4BPFII, PXG4BPFILX,
  PMCXG2BPIN, PMCXG4BPIN, PXG2BISC1, PEG2TBFI,
  PXG2TBI, PXG4BPFID, PEG4BPFI, PEG4BPIPT,
  PXG6BPI, PEG4BPIL, PMCXG2BPIN2, PMCXG4BPIN2,
  PMCX2BPI, PEG2BPFID, PEG2BPFIDLX, PMCX4BPI,
  MEG2BPFILN, MEG2BPFINX, PEG4BPFILX, PE10G2BPISR,
  PE10G2BPILR, MHIO8AD, PE10G2BPICX4, PEG2BPI5,
  PEG6BPI, PEG4BPFI5, PEG4BPFI5LX, MEG2BPFILXLN,
  PEG2BPIX1, MEG2BPFILXNX, XE10G2BPIT, XE10G2BPICX4,
  XE10G2BPISR, XE10G2BPILR, PEG4BPIIO, XE10G2BPIXR,
  PE10GDBISR, PE10GDBILR, PEG2BISC6, PEG6BPIFC,
  PE10G2BPTCX4, PE10G2BPTSR, PE10G2BPTLR, PE10G2BPTT,
  PEG4BPI6, PEG4BPFI6, PEG4BPFI6LX, PEG4BPFI6ZX,
  PEG2BPI6, PEG2BPFI6, PEG2BPFI6LX, PEG2BPFI6ZX,
  PEG2BPFI6FLXM, PEG4BPI6FC, PEG4BPFI6FC, PEG4BPFI6FCLX,
  PEG4BPFI6FCZX, PEG6BPI6, PEG2BPI6SC6, MEG2BPI6,
  XEG2BPI6, MEG4BPI6, PEG2BPFI5, PEG2BPFI5LX,
  PXEG4BPFI, M1EG2BPI6, M1EG2BPFI6, M1EG2BPFI6LX,
  M1EG2BPFI6ZX, M1EG4BPI6, M1EG4BPFI6, M1EG4BPFI6LX,
  M1EG4BPFI6ZX, M1EG6BPI6, M1E2G4BPi80, M1E2G4BPFi80,
  M1E2G4BPFi80LX, M1E2G4BPFi80ZX, PE210G2SPI9, M1E10G2BPI9CX4,
  M1E10G2BPI9SR, M1E10G2BPI9LR, M1E10G2BPI9T, PE210G2BPI9CX4,
  PE210G2BPI9SR, PE210G2BPI9LR, PE210G2BPI9T, M2EG2BPFI6,
  M2EG2BPFI6LX, M2EG2BPFI6ZX, M2EG4BPI6, M2EG4BPFI6,
  M2EG4BPFI6LX, M2EG4BPFI6ZX, M2EG6BPI6, PEG2DBI6,
  PEG2DBFI6, PEG2DBFI6LX, PEG2DBFI6ZX, PE2G4BPi80,
  PE2G4BPFi80, PE2G4BPFi80LX, PE2G4BPFi80ZX, PE2G4BPi80L,
  M6E2G8BPi80A, PE2G2BPi35, PAC1200BPi35, PE2G2BPFi35,
  PE2G2BPFi35LX, PE2G2BPFi35ZX, PE2G4BPi35, PE2G4BPi35L,
  PE2G4BPFi35, PE2G4BPFi35LX, PE2G4BPFi35ZX, PE2G6BPi35,
  PE2G6BPi35CX, PE2G2BPi80, PE2G2BPFi80, PE2G2BPFi80LX,
  PE2G2BPFi80ZX, M2E10G2BPI9CX4, M2E10G2BPI9SR, M2E10G2BPI9LR,
  M2E10G2BPI9T, M6E2G8BPi80, PE210G2DBi9SR, PE210G2DBi9SRRB,
  PE210G2DBi9LR, PE210G2DBi9LRRB, PE310G4DBi940SR, PE310G4BPi9T,
  PE310G4BPi9SR, PE310G4BPi9LR, PE210G2BPi40
}
 

Functions

 MODULE_AUTHOR ("Anna Lukin, [email protected]")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION (BP_MOD_DESCR)
 
 MODULE_VERSION (BP_MOD_VER)
 
int bypass_proc_create_dev_sd (bpctl_dev_t *pbp_device_block)
 
int bypass_proc_remove_dev_sd (bpctl_dev_t *pbp_device_block)
 
int bp_proc_create (void)
 
int is_bypass_fn (bpctl_dev_t *pbpctl_dev)
 
int get_dev_idx_bsf (int bus, int slot, int func)
 
int wdt_time_left (bpctl_dev_t *pbpctl_dev)
 
void send_bypass_clear_pulse (bpctl_dev_t *pbpctl_dev, unsigned int value)
 
int cmnd_on (bpctl_dev_t *pbpctl_dev)
 
int cmnd_off (bpctl_dev_t *pbpctl_dev)
 
int bypass_on (bpctl_dev_t *pbpctl_dev)
 
int bypass_off (bpctl_dev_t *pbpctl_dev)
 
int tap_off (bpctl_dev_t *pbpctl_dev)
 
int tap_on (bpctl_dev_t *pbpctl_dev)
 
int disc_off (bpctl_dev_t *pbpctl_dev)
 
int disc_on (bpctl_dev_t *pbpctl_dev)
 
int disc_port_on (bpctl_dev_t *pbpctl_dev)
 
int disc_port_off (bpctl_dev_t *pbpctl_dev)
 
int tpl_hw_on (bpctl_dev_t *pbpctl_dev)
 
int tpl_hw_off (bpctl_dev_t *pbpctl_dev)
 
int wdt_off (bpctl_dev_t *pbpctl_dev)
 
int wdt_on (bpctl_dev_t *pbpctl_dev, unsigned int timeout)
 
void bp75_put_hw_semaphore_generic (bpctl_dev_t *pbpctl_dev)
 
s32 bp75_get_hw_semaphore_generic (bpctl_dev_t *pbpctl_dev)
 
s32 bp75_read_phy_reg_mdic (bpctl_dev_t *pbpctl_dev, u32 offset, u16 *data)
 
s32 bp75_write_phy_reg_mdic (bpctl_dev_t *pbpctl_dev, u32 offset, u16 data)
 
int reset_cont (bpctl_dev_t *pbpctl_dev)
 
int dis_bypass_cap (bpctl_dev_t *pbpctl_dev)
 
int en_bypass_cap (bpctl_dev_t *pbpctl_dev)
 
int bypass_state_pwron (bpctl_dev_t *pbpctl_dev)
 
int normal_state_pwron (bpctl_dev_t *pbpctl_dev)
 
int bypass_state_pwroff (bpctl_dev_t *pbpctl_dev)
 
int normal_state_pwroff (bpctl_dev_t *pbpctl_dev)
 
int tap_state_pwron (bpctl_dev_t *pbpctl_dev)
 
int dis_tap_cap (bpctl_dev_t *pbpctl_dev)
 
int en_tap_cap (bpctl_dev_t *pbpctl_dev)
 
int disc_state_pwron (bpctl_dev_t *pbpctl_dev)
 
int dis_disc_cap (bpctl_dev_t *pbpctl_dev)
 
int disc_port_state_pwron (bpctl_dev_t *pbpctl_dev)
 
int normal_port_state_pwron (bpctl_dev_t *pbpctl_dev)
 
int en_disc_cap (bpctl_dev_t *pbpctl_dev)
 
int std_nic_on (bpctl_dev_t *pbpctl_dev)
 
int std_nic_off (bpctl_dev_t *pbpctl_dev)
 
int bp_wait_at_pwup_en (bpctl_dev_t *pbpctl_dev)
 
int bp_wait_at_pwup_dis (bpctl_dev_t *pbpctl_dev)
 
int bp_hw_reset_en (bpctl_dev_t *pbpctl_dev)
 
int bp_hw_reset_dis (bpctl_dev_t *pbpctl_dev)
 
int wdt_exp_mode (bpctl_dev_t *pbpctl_dev, int mode)
 
int bypass_fw_ver (bpctl_dev_t *pbpctl_dev)
 
int bypass_sign_check (bpctl_dev_t *pbpctl_dev)
 
int bypass_from_last_read (bpctl_dev_t *pbpctl_dev)
 
int bypass_status_clear (bpctl_dev_t *pbpctl_dev)
 
int bypass_flag_status (bpctl_dev_t *pbpctl_dev)
 
int bypass_flag_status_clear (bpctl_dev_t *pbpctl_dev)
 
int bypass_change_status (bpctl_dev_t *pbpctl_dev)
 
int bypass_off_status (bpctl_dev_t *pbpctl_dev)
 
int default_pwron_status (bpctl_dev_t *pbpctl_dev)
 
int dis_bypass_cap_status (bpctl_dev_t *pbpctl_dev)
 
int cmd_en_status (bpctl_dev_t *pbpctl_dev)
 
int wdt_en_status (bpctl_dev_t *pbpctl_dev)
 
int wdt_programmed (bpctl_dev_t *pbpctl_dev, int *timeout)
 
int bypass_support (bpctl_dev_t *pbpctl_dev)
 
int tap_support (bpctl_dev_t *pbpctl_dev)
 
int normal_support (bpctl_dev_t *pbpctl_dev)
 
int get_bp_prod_caps (bpctl_dev_t *pbpctl_dev)
 
int tap_flag_status (bpctl_dev_t *pbpctl_dev)
 
int tap_flag_status_clear (bpctl_dev_t *pbpctl_dev)
 
int tap_change_status (bpctl_dev_t *pbpctl_dev)
 
int tap_off_status (bpctl_dev_t *pbpctl_dev)
 
int tap_status (bpctl_dev_t *pbpctl_dev)
 
int default_pwron_tap_status (bpctl_dev_t *pbpctl_dev)
 
int dis_tap_cap_status (bpctl_dev_t *pbpctl_dev)
 
int disc_flag_status (bpctl_dev_t *pbpctl_dev)
 
int disc_flag_status_clear (bpctl_dev_t *pbpctl_dev)
 
int disc_change_status (bpctl_dev_t *pbpctl_dev)
 
int disc_off_status (bpctl_dev_t *pbpctl_dev)
 
int default_pwron_disc_status (bpctl_dev_t *pbpctl_dev)
 
int dis_disc_cap_status (bpctl_dev_t *pbpctl_dev)
 
int disc_port_status (bpctl_dev_t *pbpctl_dev)
 
int default_pwron_disc_port_status (bpctl_dev_t *pbpctl_dev)
 
int wdt_exp_mode_status (bpctl_dev_t *pbpctl_dev)
 
int tpl2_flag_status (bpctl_dev_t *pbpctl_dev)
 
int tpl_hw_status (bpctl_dev_t *pbpctl_dev)
 
int bp_wait_at_pwup_status (bpctl_dev_t *pbpctl_dev)
 
int bp_hw_reset_status (bpctl_dev_t *pbpctl_dev)
 
int std_nic_status (bpctl_dev_t *pbpctl_dev)
 
void bypass_caps_init (bpctl_dev_t *pbpctl_dev)
 
int bypass_off_init (bpctl_dev_t *pbpctl_dev)
 
void remove_bypass_wd_auto (bpctl_dev_t *pbpctl_dev)
 
int init_bypass_wd_auto (bpctl_dev_t *pbpctl_dev)
 
int set_bypass_wd_auto (bpctl_dev_t *pbpctl_dev, unsigned int param)
 
int get_bypass_wd_auto (bpctl_dev_t *pbpctl_dev)
 
int set_bypass_fn (bpctl_dev_t *pbpctl_dev, int bypass_mode)
 
int get_bypass_fn (bpctl_dev_t *pbpctl_dev)
 
int get_bypass_change_fn (bpctl_dev_t *pbpctl_dev)
 
int set_dis_bypass_fn (bpctl_dev_t *pbpctl_dev, int dis_param)
 
int get_dis_bypass_fn (bpctl_dev_t *pbpctl_dev)
 
int set_bypass_pwoff_fn (bpctl_dev_t *pbpctl_dev, int bypass_mode)
 
int get_bypass_pwoff_fn (bpctl_dev_t *pbpctl_dev)
 
int set_bypass_pwup_fn (bpctl_dev_t *pbpctl_dev, int bypass_mode)
 
int get_bypass_pwup_fn (bpctl_dev_t *pbpctl_dev)
 
int set_bypass_wd_fn (bpctl_dev_t *pbpctl_dev, int timeout)
 
int get_bypass_wd_fn (bpctl_dev_t *pbpctl_dev, int *timeout)
 
int get_wd_expire_time_fn (bpctl_dev_t *pbpctl_dev, int *time_left)
 
int reset_bypass_wd_timer_fn (bpctl_dev_t *pbpctl_dev)
 
int get_wd_set_caps_fn (bpctl_dev_t *pbpctl_dev)
 
int set_std_nic_fn (bpctl_dev_t *pbpctl_dev, int nic_mode)
 
int get_std_nic_fn (bpctl_dev_t *pbpctl_dev)
 
int set_tap_fn (bpctl_dev_t *pbpctl_dev, int tap_mode)
 
int get_tap_fn (bpctl_dev_t *pbpctl_dev)
 
int set_tap_pwup_fn (bpctl_dev_t *pbpctl_dev, int tap_mode)
 
int get_tap_pwup_fn (bpctl_dev_t *pbpctl_dev)
 
int get_tap_change_fn (bpctl_dev_t *pbpctl_dev)
 
int set_dis_tap_fn (bpctl_dev_t *pbpctl_dev, int dis_param)
 
int get_dis_tap_fn (bpctl_dev_t *pbpctl_dev)
 
int set_disc_fn (bpctl_dev_t *pbpctl_dev, int disc_mode)
 
int get_disc_fn (bpctl_dev_t *pbpctl_dev)
 
int set_disc_pwup_fn (bpctl_dev_t *pbpctl_dev, int disc_mode)
 
int get_disc_pwup_fn (bpctl_dev_t *pbpctl_dev)
 
int get_disc_change_fn (bpctl_dev_t *pbpctl_dev)
 
int set_dis_disc_fn (bpctl_dev_t *pbpctl_dev, int dis_param)
 
int get_dis_disc_fn (bpctl_dev_t *pbpctl_dev)
 
int set_disc_port_fn (bpctl_dev_t *pbpctl_dev, int disc_mode)
 
int get_disc_port_fn (bpctl_dev_t *pbpctl_dev)
 
int set_disc_port_pwup_fn (bpctl_dev_t *pbpctl_dev, int disc_mode)
 
int get_disc_port_pwup_fn (bpctl_dev_t *pbpctl_dev)
 
int get_wd_exp_mode_fn (bpctl_dev_t *pbpctl_dev)
 
int set_wd_exp_mode_fn (bpctl_dev_t *pbpctl_dev, int param)
 
int reset_cont_fn (bpctl_dev_t *pbpctl_dev)
 
int set_tx_fn (bpctl_dev_t *pbpctl_dev, int tx_state)
 
int set_bp_force_link_fn (int dev_num, int tx_state)
 
int set_wd_autoreset_fn (bpctl_dev_t *pbpctl_dev, int param)
 
int get_wd_autoreset_fn (bpctl_dev_t *pbpctl_dev)
 
int get_bypass_caps_fn (bpctl_dev_t *pbpctl_dev)
 
int get_bypass_slave_fn (bpctl_dev_t *pbpctl_dev, bpctl_dev_t **pbpctl_dev_out)
 
int is_bypass (bpctl_dev_t *pbpctl_dev)
 
int get_tx_fn (bpctl_dev_t *pbpctl_dev)
 
int get_bp_force_link_fn (int dev_num)
 
void remove_bypass_tpl_auto (bpctl_dev_t *pbpctl_dev)
 
int init_bypass_tpl_auto (bpctl_dev_t *pbpctl_dev)
 
int set_bypass_tpl_auto (bpctl_dev_t *pbpctl_dev, unsigned int param)
 
int get_bypass_tpl_auto (bpctl_dev_t *pbpctl_dev)
 
int set_tpl_fn (bpctl_dev_t *pbpctl_dev, int tpl_mode)
 
int get_tpl_fn (bpctl_dev_t *pbpctl_dev)
 
int set_bp_wait_at_pwup_fn (bpctl_dev_t *pbpctl_dev, int tap_mode)
 
int get_bp_wait_at_pwup_fn (bpctl_dev_t *pbpctl_dev)
 
int set_bp_hw_reset_fn (bpctl_dev_t *pbpctl_dev, int tap_mode)
 
int get_bp_hw_reset_fn (bpctl_dev_t *pbpctl_dev)
 
int get_bypass_info_fn (bpctl_dev_t *pbpctl_dev, char *dev_name, char *add_param)
 
 module_init (bypass_init_module)
 
 module_exit (bypass_cleanup_module)
 
int is_bypass_sd (int ifindex)
 
int set_bypass_sd (int ifindex, int bypass_mode)
 
int get_bypass_sd (int ifindex)
 
int get_bypass_change_sd (int ifindex)
 
int set_dis_bypass_sd (int ifindex, int dis_param)
 
int get_dis_bypass_sd (int ifindex)
 
int set_bypass_pwoff_sd (int ifindex, int bypass_mode)
 
int get_bypass_pwoff_sd (int ifindex)
 
int set_bypass_pwup_sd (int ifindex, int bypass_mode)
 
int get_bypass_pwup_sd (int ifindex)
 
int set_bypass_wd_sd (int if_index, int ms_timeout, int *ms_timeout_set)
 
int get_bypass_wd_sd (int ifindex, int *timeout)
 
int get_wd_expire_time_sd (int ifindex, int *time_left)
 
int reset_bypass_wd_timer_sd (int ifindex)
 
int get_wd_set_caps_sd (int ifindex)
 
int set_std_nic_sd (int ifindex, int nic_mode)
 
int get_std_nic_sd (int ifindex)
 
int set_tap_sd (int ifindex, int tap_mode)
 
int get_tap_sd (int ifindex)
 
int set_tap_pwup_sd (int ifindex, int tap_mode)
 
int get_tap_pwup_sd (int ifindex)
 
int get_tap_change_sd (int ifindex)
 
int set_dis_tap_sd (int ifindex, int dis_param)
 
int get_dis_tap_sd (int ifindex)
 
int set_bp_disc_sd (int ifindex, int disc_mode)
 
int get_bp_disc_sd (int ifindex)
 
int set_bp_disc_pwup_sd (int ifindex, int disc_mode)
 
int get_bp_disc_pwup_sd (int ifindex)
 
int get_bp_disc_change_sd (int ifindex)
 
int set_bp_dis_disc_sd (int ifindex, int dis_param)
 
int get_bp_dis_disc_sd (int ifindex)
 
int get_wd_exp_mode_sd (int ifindex)
 
int set_wd_exp_mode_sd (int ifindex, int param)
 
int reset_cont_sd (int ifindex)
 
int set_tx_sd (int ifindex, int tx_state)
 
int set_tpl_sd (int ifindex, int tpl_state)
 
int set_bp_hw_reset_sd (int ifindex, int status)
 
int set_wd_autoreset_sd (int ifindex, int param)
 
int get_wd_autoreset_sd (int ifindex)
 
int get_bypass_caps_sd (int ifindex)
 
int get_bypass_slave_sd (int ifindex)
 
int get_tx_sd (int ifindex)
 
int get_tpl_sd (int ifindex)
 
int get_bp_hw_reset_sd (int ifindex)
 
int get_bypass_info_sd (int ifindex, struct bp_info *bp_info)
 
int bp_if_scan_sd (void)
 
 EXPORT_SYMBOL_NOVERS (is_bypass_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_slave_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_caps_sd)
 
 EXPORT_SYMBOL_NOVERS (get_wd_set_caps_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bypass_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_change_sd)
 
 EXPORT_SYMBOL_NOVERS (set_dis_bypass_sd)
 
 EXPORT_SYMBOL_NOVERS (get_dis_bypass_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bypass_pwoff_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_pwoff_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bypass_pwup_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_pwup_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bypass_wd_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_wd_sd)
 
 EXPORT_SYMBOL_NOVERS (get_wd_expire_time_sd)
 
 EXPORT_SYMBOL_NOVERS (reset_bypass_wd_timer_sd)
 
 EXPORT_SYMBOL_NOVERS (set_std_nic_sd)
 
 EXPORT_SYMBOL_NOVERS (get_std_nic_sd)
 
 EXPORT_SYMBOL_NOVERS (set_tx_sd)
 
 EXPORT_SYMBOL_NOVERS (get_tx_sd)
 
 EXPORT_SYMBOL_NOVERS (set_tpl_sd)
 
 EXPORT_SYMBOL_NOVERS (get_tpl_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bp_hw_reset_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bp_hw_reset_sd)
 
 EXPORT_SYMBOL_NOVERS (set_tap_sd)
 
 EXPORT_SYMBOL_NOVERS (get_tap_sd)
 
 EXPORT_SYMBOL_NOVERS (get_tap_change_sd)
 
 EXPORT_SYMBOL_NOVERS (set_dis_tap_sd)
 
 EXPORT_SYMBOL_NOVERS (get_dis_tap_sd)
 
 EXPORT_SYMBOL_NOVERS (set_tap_pwup_sd)
 
 EXPORT_SYMBOL_NOVERS (get_tap_pwup_sd)
 
 EXPORT_SYMBOL_NOVERS (set_wd_exp_mode_sd)
 
 EXPORT_SYMBOL_NOVERS (get_wd_exp_mode_sd)
 
 EXPORT_SYMBOL_NOVERS (set_wd_autoreset_sd)
 
 EXPORT_SYMBOL_NOVERS (get_wd_autoreset_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bp_disc_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bp_disc_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bp_disc_change_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bp_dis_disc_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bp_dis_disc_sd)
 
 EXPORT_SYMBOL_NOVERS (set_bp_disc_pwup_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bp_disc_pwup_sd)
 
 EXPORT_SYMBOL_NOVERS (get_bypass_info_sd)
 
 EXPORT_SYMBOL_NOVERS (bp_if_scan_sd)
 
int bypass_proc_create_entry_sd (struct pfs_unit_sd *pfs_unit_curr, char *proc_name, write_proc_t *write_proc, read_proc_t *read_proc, struct proc_dir_entry *parent_pfs, void *data)
 
int get_bypass_info_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_bypass_slave_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_bypass_caps_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_wd_set_caps_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int set_bypass_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_tap_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_disc_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int get_bypass_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_tap_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_disc_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_bypass_change_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_tap_change_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_disc_change_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int set_bypass_wd_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int get_bypass_wd_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_wd_expire_time_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_tpl_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int reset_bypass_wd_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int set_dis_bypass_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_dis_tap_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_dis_disc_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int get_dis_bypass_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_dis_tap_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_dis_disc_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int set_bypass_pwup_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_bypass_pwoff_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_tap_pwup_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_disc_pwup_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int get_bypass_pwup_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_bypass_pwoff_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_tap_pwup_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_disc_pwup_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int set_std_nic_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int get_std_nic_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int get_wd_exp_mode_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int set_wd_exp_mode_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int get_wd_autoreset_pfs (char *page, char **start, off_t off, int count, int *eof, void *data)
 
int set_wd_autoreset_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 
int set_tpl_pfs (struct file *file, const char *buffer, unsigned long count, void *data)
 

Variables

spinlock_t bpvm_lock
 
struct file_operations Fops
 
dev_desc_t dev_desc []
 

Macro Definition Documentation

#define BP_MOD_DESCR   "Silicom Bypass-SD Control driver"

Definition at line 36 of file bp_mod.c.

#define BP_MOD_VER   "9.0.4"

Definition at line 35 of file bp_mod.c.

#define BP_PROC_DIR   "bypass"

Definition at line 7539 of file bp_mod.c.

#define BP_SYNC_FLAG   1

Definition at line 37 of file bp_mod.c.

#define BYPASS_CAPS_ENTRY_SD   "bypass_caps"

Definition at line 7559 of file bp_mod.c.

#define BYPASS_CHANGE_ENTRY_SD   "bypass_change"

Definition at line 7562 of file bp_mod.c.

#define BYPASS_ENTRY_SD   "bypass"

Definition at line 7561 of file bp_mod.c.

#define BYPASS_INFO_ENTRY_SD   "bypass_info"

Definition at line 7557 of file bp_mod.c.

#define BYPASS_PWOFF_ENTRY_SD   "bypass_pwoff"

Definition at line 7568 of file bp_mod.c.

#define BYPASS_PWUP_ENTRY_SD   "bypass_pwup"

Definition at line 7567 of file bp_mod.c.

#define BYPASS_SLAVE_ENTRY_SD   "bypass_slave"

Definition at line 7558 of file bp_mod.c.

#define BYPASS_WD_ENTRY_SD   "bypass_wd"

Definition at line 7563 of file bp_mod.c.

#define CMND_OFF_ENTRY_SD   "cmnd_off"

Definition at line 7553 of file bp_mod.c.

#define CMND_ON_ENTRY_SD   "cmnd_on"

Definition at line 7552 of file bp_mod.c.

#define DIS_BYPASS_ENTRY_SD   "dis_bypass"

Definition at line 7566 of file bp_mod.c.

#define DIS_DISC_ENTRY_SD   "dis_disc"

Definition at line 7583 of file bp_mod.c.

#define DIS_TAP_ENTRY_SD   "dis_tap"

Definition at line 7573 of file bp_mod.c.

#define DISC_CHANGE_ENTRY_SD   "disc_change"

Definition at line 7582 of file bp_mod.c.

#define DISC_ENTRY_SD   "disc"

Definition at line 7581 of file bp_mod.c.

#define DISC_PWUP_ENTRY_SD   "disc_pwup"

Definition at line 7584 of file bp_mod.c.

#define GPIO6_CLEAR_ENTRY_SD   "gpio6_clear"

Definition at line 7542 of file bp_mod.c.

#define GPIO6_SET_ENTRY_SD   "gpio6_set"

Definition at line 7541 of file bp_mod.c.

#define GPIO7_CLEAR_ENTRY_SD   "gpio7_clear"

Definition at line 7545 of file bp_mod.c.

#define GPIO7_SET_ENTRY_SD   "gpio7_set"

Definition at line 7544 of file bp_mod.c.

#define HW_RESET_ENTRY_SD   "hw_reset"

Definition at line 7580 of file bp_mod.c.

#define isdigit (   c)    (c >= '0' && c <= '9')

Definition at line 7969 of file bp_mod.c.

#define lock_bpctl ( )
Value:
if (down_interruptible(&bpctl_sema)) { \
return -ERESTARTSYS; \
} \

Definition at line 48 of file bp_mod.c.

#define PCI_DEVICE (   vend,
  dev 
)
Value:
.vendor = (vend), .device = (dev), \
.subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID

Definition at line 5925 of file bp_mod.c.

#define PULSE_GET1_ENTRY_SD   "pulse_get1"

Definition at line 7549 of file bp_mod.c.

#define PULSE_GET2_ENTRY_SD   "pulse_get2"

Definition at line 7550 of file bp_mod.c.

#define PULSE_SET_ENTRY_SD   "pulse_set"

Definition at line 7547 of file bp_mod.c.

#define RESET_BYPASS_WD_ENTRY_SD   "reset_bypass_wd"

Definition at line 7565 of file bp_mod.c.

#define RESET_CONT_ENTRY_SD   "reset_cont"

Definition at line 7554 of file bp_mod.c.

#define SILICOM_E1000BP_ETHERNET_DEVICE (   device_id)
Value:
{\
PCI_DEVICE(SILICOM_VID, device_id)}

Definition at line 5930 of file bp_mod.c.

#define STD_NIC_ENTRY_SD   "std_nic"

Definition at line 7570 of file bp_mod.c.

#define STD_NIC_ENTRY_SD   "std_nic"

Definition at line 7570 of file bp_mod.c.

#define SUCCESS   0

Definition at line 34 of file bp_mod.c.

#define TAP_CHANGE_ENTRY_SD   "tap_change"

Definition at line 7572 of file bp_mod.c.

#define TAP_ENTRY_SD   "tap"

Definition at line 7571 of file bp_mod.c.

#define TAP_PWUP_ENTRY_SD   "tap_pwup"

Definition at line 7574 of file bp_mod.c.

#define TPL_ENTRY_SD   "tpl"

Definition at line 7578 of file bp_mod.c.

#define TWO_PORT_LINK_ENTRY_SD   "two_port_link"

Definition at line 7575 of file bp_mod.c.

#define unlock_bpctl ( )    up(&bpctl_sema);

Definition at line 53 of file bp_mod.c.

#define WAIT_AT_PWUP_ENTRY_SD   "wait_at_pwup"

Definition at line 7579 of file bp_mod.c.

#define WD_AUTORESET_ENTRY_SD   "wd_autoreset"

Definition at line 7577 of file bp_mod.c.

#define WD_EXP_MODE_ENTRY_SD   "wd_exp_mode"

Definition at line 7576 of file bp_mod.c.

#define WD_EXPIRE_TIME_ENTRY_SD   "wd_expire_time"

Definition at line 7564 of file bp_mod.c.

#define WD_SET_CAPS_ENTRY_SD   "wd_set_caps"

Definition at line 7560 of file bp_mod.c.

#define ZERO_SET_ENTRY_SD   "zero_set"

Definition at line 7548 of file bp_mod.c.

Typedef Documentation

Enumeration Type Documentation

enum board_t
Enumerator:
BCM5706 
NC370T 
NC370I 
BCM5706S 
NC370F 
BCM5708 
BCM5708S 
BCM5709 
BCM5709S 
BCM5716 
BCM5716S 
RTL8139 
RTL8129 
PXG2BPFI 
PXG2BPFIL 
PXG2BPFILX 
PXG2BPFILLX 
PXGBPI 
PXGBPIG 
PXG2TBFI 
PXG4BPI 
PXG4BPFI 
PEG4BPI 
PEG2BPI 
PEG4BPIN 
PEG2BPFI 
PEG2BPFILX 
PMCXG2BPFI 
PMCXG2BPFIN 
PEG4BPII 
PEG4BPFII 
PXG4BPFILX 
PMCXG2BPIN 
PMCXG4BPIN 
PXG2BISC1 
PEG2TBFI 
PXG2TBI 
PXG4BPFID 
PEG4BPFI 
PEG4BPIPT 
PXG6BPI 
PEG4BPIL 
PMCXG2BPIN2 
PMCXG4BPIN2 
PMCX2BPI 
PEG2BPFID 
PEG2BPFIDLX 
PMCX4BPI 
MEG2BPFILN 
MEG2BPFINX 
PEG4BPFILX 
PE10G2BPISR 
PE10G2BPILR 
MHIO8AD 
PE10G2BPICX4 
PEG2BPI5 
PEG6BPI 
PEG4BPFI5 
PEG4BPFI5LX 
MEG2BPFILXLN 
PEG2BPIX1 
MEG2BPFILXNX 
XE10G2BPIT 
XE10G2BPICX4 
XE10G2BPISR 
XE10G2BPILR 
PEG4BPIIO 
XE10G2BPIXR 
PE10GDBISR 
PE10GDBILR 
PEG2BISC6 
PEG6BPIFC 
PE10G2BPTCX4 
PE10G2BPTSR 
PE10G2BPTLR 
PE10G2BPTT 
PEG4BPI6 
PEG4BPFI6 
PEG4BPFI6LX 
PEG4BPFI6ZX 
PEG2BPI6 
PEG2BPFI6 
PEG2BPFI6LX 
PEG2BPFI6ZX 
PEG2BPFI6FLXM 
PEG4BPI6FC 
PEG4BPFI6FC 
PEG4BPFI6FCLX 
PEG4BPFI6FCZX 
PEG6BPI6 
PEG2BPI6SC6 
MEG2BPI6 
XEG2BPI6 
MEG4BPI6 
PEG2BPFI5 
PEG2BPFI5LX 
PXEG4BPFI 
M1EG2BPI6 
M1EG2BPFI6 
M1EG2BPFI6LX 
M1EG2BPFI6ZX 
M1EG4BPI6 
M1EG4BPFI6 
M1EG4BPFI6LX 
M1EG4BPFI6ZX 
M1EG6BPI6 
M1E2G4BPi80 
M1E2G4BPFi80 
M1E2G4BPFi80LX 
M1E2G4BPFi80ZX 
PE210G2SPI9 
M1E10G2BPI9CX4 
M1E10G2BPI9SR 
M1E10G2BPI9LR 
M1E10G2BPI9T 
PE210G2BPI9CX4 
PE210G2BPI9SR 
PE210G2BPI9LR 
PE210G2BPI9T 
M2EG2BPFI6 
M2EG2BPFI6LX 
M2EG2BPFI6ZX 
M2EG4BPI6 
M2EG4BPFI6 
M2EG4BPFI6LX 
M2EG4BPFI6ZX 
M2EG6BPI6 
PEG2DBI6 
PEG2DBFI6 
PEG2DBFI6LX 
PEG2DBFI6ZX 
PE2G4BPi80 
PE2G4BPFi80 
PE2G4BPFi80LX 
PE2G4BPFi80ZX 
PE2G4BPi80L 
M6E2G8BPi80A 
PE2G2BPi35 
PAC1200BPi35 
PE2G2BPFi35 
PE2G2BPFi35LX 
PE2G2BPFi35ZX 
PE2G4BPi35 
PE2G4BPi35L 
PE2G4BPFi35 
PE2G4BPFi35LX 
PE2G4BPFi35ZX 
PE2G6BPi35 
PE2G6BPi35CX 
PE2G2BPi80 
PE2G2BPFi80 
PE2G2BPFi80LX 
PE2G2BPFi80ZX 
M2E10G2BPI9CX4 
M2E10G2BPI9SR 
M2E10G2BPI9LR 
M2E10G2BPI9T 
M6E2G8BPi80 
PE210G2DBi9SR 
PE210G2DBi9SRRB 
PE210G2DBi9LR 
PE210G2DBi9LRRB 
PE310G4DBi940SR 
PE310G4BPi9T 
PE310G4BPi9SR 
PE310G4BPi9LR 
PE210G2BPi40 

Definition at line 5933 of file bp_mod.c.

Enumerator:
bp_copper 
bp_fiber 
bp_cx4 
bp_none 

Definition at line 57 of file bp_mod.c.

Function Documentation

s32 bp75_get_hw_semaphore_generic ( bpctl_dev_t pbpctl_dev)

Definition at line 2179 of file bp_mod.c.

void bp75_put_hw_semaphore_generic ( bpctl_dev_t pbpctl_dev)

Definition at line 2168 of file bp_mod.c.

s32 bp75_read_phy_reg_mdic ( bpctl_dev_t pbpctl_dev,
u32  offset,
u16 data 
)

Definition at line 2291 of file bp_mod.c.

s32 bp75_write_phy_reg_mdic ( bpctl_dev_t pbpctl_dev,
u32  offset,
u16  data 
)

Definition at line 2324 of file bp_mod.c.

int bp_hw_reset_dis ( bpctl_dev_t pbpctl_dev)

Definition at line 3128 of file bp_mod.c.

int bp_hw_reset_en ( bpctl_dev_t pbpctl_dev)

Definition at line 3112 of file bp_mod.c.

int bp_hw_reset_status ( bpctl_dev_t pbpctl_dev)

Definition at line 4013 of file bp_mod.c.

int bp_if_scan_sd ( void  )

Definition at line 7487 of file bp_mod.c.

int bp_proc_create ( void  )

Definition at line 7614 of file bp_mod.c.

int bp_wait_at_pwup_dis ( bpctl_dev_t pbpctl_dev)

Definition at line 3095 of file bp_mod.c.

int bp_wait_at_pwup_en ( bpctl_dev_t pbpctl_dev)

Definition at line 3080 of file bp_mod.c.

int bp_wait_at_pwup_status ( bpctl_dev_t pbpctl_dev)

Definition at line 4002 of file bp_mod.c.

void bypass_caps_init ( bpctl_dev_t pbpctl_dev)

Definition at line 4075 of file bp_mod.c.

int bypass_change_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3372 of file bp_mod.c.

int bypass_flag_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3344 of file bp_mod.c.

int bypass_flag_status_clear ( bpctl_dev_t pbpctl_dev)

Definition at line 3357 of file bp_mod.c.

int bypass_from_last_read ( bpctl_dev_t pbpctl_dev)

Definition at line 3313 of file bp_mod.c.

int bypass_fw_ver ( bpctl_dev_t pbpctl_dev)

Definition at line 3194 of file bp_mod.c.

int bypass_off ( bpctl_dev_t pbpctl_dev)

Definition at line 1915 of file bp_mod.c.

int bypass_off_init ( bpctl_dev_t pbpctl_dev)

Definition at line 4294 of file bp_mod.c.

int bypass_off_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3391 of file bp_mod.c.

int bypass_on ( bpctl_dev_t pbpctl_dev)

Definition at line 1894 of file bp_mod.c.

int bypass_proc_create_dev_sd ( bpctl_dev_t pbp_device_block)

Definition at line 8727 of file bp_mod.c.

int bypass_proc_create_entry_sd ( struct pfs_unit_sd pfs_unit_curr,
char proc_name,
write_proc_t write_proc,
read_proc_t read_proc,
struct proc_dir_entry parent_pfs,
void data 
)

Definition at line 7627 of file bp_mod.c.

int bypass_proc_remove_dev_sd ( bpctl_dev_t pbp_device_block)

Definition at line 8910 of file bp_mod.c.

int bypass_sign_check ( bpctl_dev_t pbpctl_dev)

Definition at line 3202 of file bp_mod.c.

int bypass_state_pwroff ( bpctl_dev_t pbpctl_dev)

Definition at line 2718 of file bp_mod.c.

int bypass_state_pwron ( bpctl_dev_t pbpctl_dev)

Definition at line 2689 of file bp_mod.c.

int bypass_status_clear ( bpctl_dev_t pbpctl_dev)

Definition at line 3331 of file bp_mod.c.

int bypass_support ( bpctl_dev_t pbpctl_dev)

Definition at line 3580 of file bp_mod.c.

int cmd_en_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3530 of file bp_mod.c.

int cmnd_off ( bpctl_dev_t pbpctl_dev)

Definition at line 1876 of file bp_mod.c.

int cmnd_on ( bpctl_dev_t pbpctl_dev)

Definition at line 1859 of file bp_mod.c.

int default_pwron_disc_port_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3930 of file bp_mod.c.

int default_pwron_disc_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3884 of file bp_mod.c.

int default_pwron_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3485 of file bp_mod.c.

int default_pwron_tap_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3729 of file bp_mod.c.

int dis_bypass_cap ( bpctl_dev_t pbpctl_dev)

Definition at line 2654 of file bp_mod.c.

int dis_bypass_cap_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3517 of file bp_mod.c.

int dis_disc_cap ( bpctl_dev_t pbpctl_dev)

Definition at line 2786 of file bp_mod.c.

int dis_disc_cap_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3895 of file bp_mod.c.

int dis_tap_cap ( bpctl_dev_t pbpctl_dev)

Definition at line 2751 of file bp_mod.c.

int dis_tap_cap_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3740 of file bp_mod.c.

int disc_change_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3777 of file bp_mod.c.

int disc_flag_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3751 of file bp_mod.c.

int disc_flag_status_clear ( bpctl_dev_t pbpctl_dev)

Definition at line 3763 of file bp_mod.c.

int disc_off ( bpctl_dev_t pbpctl_dev)

Definition at line 1964 of file bp_mod.c.

int disc_off_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3788 of file bp_mod.c.

int disc_on ( bpctl_dev_t pbpctl_dev)

Definition at line 1976 of file bp_mod.c.

int disc_port_off ( bpctl_dev_t pbpctl_dev)

Definition at line 2016 of file bp_mod.c.

int disc_port_on ( bpctl_dev_t pbpctl_dev)

Definition at line 1988 of file bp_mod.c.

int disc_port_state_pwron ( bpctl_dev_t pbpctl_dev)

Definition at line 2799 of file bp_mod.c.

int disc_port_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3906 of file bp_mod.c.

int disc_state_pwron ( bpctl_dev_t pbpctl_dev)

Definition at line 2773 of file bp_mod.c.

int en_bypass_cap ( bpctl_dev_t pbpctl_dev)

Definition at line 2673 of file bp_mod.c.

int en_disc_cap ( bpctl_dev_t pbpctl_dev)

Definition at line 2851 of file bp_mod.c.

int en_tap_cap ( bpctl_dev_t pbpctl_dev)

Definition at line 2762 of file bp_mod.c.

EXPORT_SYMBOL_NOVERS ( is_bypass_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_slave_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_caps_sd  )
EXPORT_SYMBOL_NOVERS ( get_wd_set_caps_sd  )
EXPORT_SYMBOL_NOVERS ( set_bypass_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_change_sd  )
EXPORT_SYMBOL_NOVERS ( set_dis_bypass_sd  )
EXPORT_SYMBOL_NOVERS ( get_dis_bypass_sd  )
EXPORT_SYMBOL_NOVERS ( set_bypass_pwoff_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_pwoff_sd  )
EXPORT_SYMBOL_NOVERS ( set_bypass_pwup_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_pwup_sd  )
EXPORT_SYMBOL_NOVERS ( set_bypass_wd_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_wd_sd  )
EXPORT_SYMBOL_NOVERS ( get_wd_expire_time_sd  )
EXPORT_SYMBOL_NOVERS ( reset_bypass_wd_timer_sd  )
EXPORT_SYMBOL_NOVERS ( set_std_nic_sd  )
EXPORT_SYMBOL_NOVERS ( get_std_nic_sd  )
EXPORT_SYMBOL_NOVERS ( set_tx_sd  )
EXPORT_SYMBOL_NOVERS ( get_tx_sd  )
EXPORT_SYMBOL_NOVERS ( set_tpl_sd  )
EXPORT_SYMBOL_NOVERS ( get_tpl_sd  )
EXPORT_SYMBOL_NOVERS ( set_bp_hw_reset_sd  )
EXPORT_SYMBOL_NOVERS ( get_bp_hw_reset_sd  )
EXPORT_SYMBOL_NOVERS ( set_tap_sd  )
EXPORT_SYMBOL_NOVERS ( get_tap_sd  )
EXPORT_SYMBOL_NOVERS ( get_tap_change_sd  )
EXPORT_SYMBOL_NOVERS ( set_dis_tap_sd  )
EXPORT_SYMBOL_NOVERS ( get_dis_tap_sd  )
EXPORT_SYMBOL_NOVERS ( set_tap_pwup_sd  )
EXPORT_SYMBOL_NOVERS ( get_tap_pwup_sd  )
EXPORT_SYMBOL_NOVERS ( set_wd_exp_mode_sd  )
EXPORT_SYMBOL_NOVERS ( get_wd_exp_mode_sd  )
EXPORT_SYMBOL_NOVERS ( set_wd_autoreset_sd  )
EXPORT_SYMBOL_NOVERS ( get_wd_autoreset_sd  )
EXPORT_SYMBOL_NOVERS ( set_bp_disc_sd  )
EXPORT_SYMBOL_NOVERS ( get_bp_disc_sd  )
EXPORT_SYMBOL_NOVERS ( get_bp_disc_change_sd  )
EXPORT_SYMBOL_NOVERS ( set_bp_dis_disc_sd  )
EXPORT_SYMBOL_NOVERS ( get_bp_dis_disc_sd  )
EXPORT_SYMBOL_NOVERS ( set_bp_disc_pwup_sd  )
EXPORT_SYMBOL_NOVERS ( get_bp_disc_pwup_sd  )
EXPORT_SYMBOL_NOVERS ( get_bypass_info_sd  )
EXPORT_SYMBOL_NOVERS ( bp_if_scan_sd  )
int get_bp_dis_disc_sd ( int  if_index)

get_dis_tap - Get Disable Disconnect mode state : network device index of the controlling device Output: 0/1 - on success (normal Disconnect mode/ Disable Disconnect) -1 - on failure (device is not capable of the operation ordevice not support Disconnect or it's a slave device)

Definition at line 7396 of file bp_mod.c.

int get_bp_disc_change_sd ( int  if_index)

get_bp_disc_change - Get change of Disconnect mode state from last status check : network device index of the controlling device Output: 0/1 - (off/on) on success -1 - on failure (device not support Disconnect or it's a slave device)

Definition at line 7384 of file bp_mod.c.

int get_bp_disc_pwup_sd ( int  if_index)

get_bp_disc_pwup - Get Disconnect mode state at power-up state : network device index of the controlling device Output: 0/1 - on success (Disable Disconnect at power up state / normal Disconnect mode) -1 - on failure (device is not capable of the operation ordevice not support TAP or it's a slave device)

Definition at line 7378 of file bp_mod.c.

int get_bp_disc_sd ( int  if_index)

get_bp_disc - Get Disconnect mode state : network device index of the controlling device Output: 0/1 - (off/on) on success -1 - on failure (device not support Disconnect or it's a slave device)

Definition at line 7366 of file bp_mod.c.

int get_bp_force_link_fn ( int  dev_num)

Definition at line 5102 of file bp_mod.c.

int get_bp_hw_reset_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 5323 of file bp_mod.c.

int get_bp_hw_reset_sd ( int  ifindex)

Definition at line 7476 of file bp_mod.c.

int get_bp_prod_caps ( bpctl_dev_t pbpctl_dev)

Definition at line 3629 of file bp_mod.c.

int get_bp_wait_at_pwup_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 5290 of file bp_mod.c.

int get_bypass_caps_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 5032 of file bp_mod.c.

int get_bypass_caps_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7719 of file bp_mod.c.

int get_bypass_caps_sd ( int  if_index)

get_bypass_caps - get second port participate in the Bypass pair : network device index

Output: flags word on success;flag word is a 32-bit mask word with each bit defines different capability as described bellow. Value of 1 for supporting this feature. 0 for not supporting this feature. -1 - on failure (if the device is not capable of the operation or not a Bypass device) Bit feature description

0 BP_CAP The interface is Bypass capable in general

1 BP_STATUS_CAP The interface can report of the current Bypass mode

2 BP_STATUS_CHANGE_CAP The interface can report on a change to bypass mode from the last time the mode was defined

3 SW_CTL_CAP The interface is Software controlled capable for bypass/non bypass modes.

4 BP_DIS_CAP The interface is capable of disabling the Bypass mode at all times. This mode will retain its mode even during power loss and also after power recovery. This will overcome on any bypass operation due to watchdog timeout or set bypass command.

5 BP_DIS_STATUS_CAP The interface can report of the current DIS_BP_CAP

6 STD_NIC_CAP The interface is capable to be configured to operate as standard, non Bypass, NIC interface (have direct connection to interfaces at all power modes)

7 BP_PWOFF_NO_CAP The interface can be in Bypass mode at power off state

8 BP_PWOFF_OFF_CAP The interface can disconnect the Bypass mode at power off state without effecting all the other states of operation

9 BP_PWOFF_CTL_CAP The behavior of the Bypass mode at Power-off state can be controlled by software without effecting any other state

*10 BP_PWUP_ON_CAP The interface can be in Bypass mode when power is turned on (until the system take control of the bypass functionality)

*11 BP_PWUP_OFF_CAP The interface can disconnect from Bypass mode when power is turned on (until the system take control of the bypass functionality)

*12 BP_PWUP_CTL_CAP The behavior of the Bypass mode at Power-up can be controlled by software

*13 WD_CTL_CAP The interface has watchdog capabilities to turn to Bypass mode when not reset for defined period of time.

*14 WD_STATUS_CAP The interface can report on the watchdog status (Active/inactive)

*15 WD_TIMEOUT_CAP The interface can report the time left till watchdog triggers to Bypass mode.

*16-31 RESERVED

Definition at line 7449 of file bp_mod.c.

int get_bypass_change_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4529 of file bp_mod.c.

int get_bypass_change_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7910 of file bp_mod.c.

int get_bypass_change_sd ( int  if_index)

get_bypass_change - Get change of Bypass mode state from last status check : network device index of the controlling device Output: 0/1 - (off/on) on success -1 - on failure (device not support Bypass or it's a slave device)

Definition at line 7234 of file bp_mod.c.

int get_bypass_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4524 of file bp_mod.c.

int get_bypass_info_fn ( bpctl_dev_t pbpctl_dev,
char dev_name,
char add_param 
)

Definition at line 5338 of file bp_mod.c.

int get_bypass_info_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7650 of file bp_mod.c.

int get_bypass_info_sd ( int  ifindex,
struct bp_info bp_info 
)

Definition at line 7482 of file bp_mod.c.

int get_bypass_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7850 of file bp_mod.c.

int get_bypass_pwoff_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4581 of file bp_mod.c.

int get_bypass_pwoff_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8426 of file bp_mod.c.

int get_bypass_pwoff_sd ( int  if_index)

get_bypass_pwoff - Get Bypass mode state at power-off state : network device index of the controlling device Output: 0/1 - on success (Disable bypass at power off state / normal Bypass mode) -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7257 of file bp_mod.c.

int get_bypass_pwup_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4607 of file bp_mod.c.

int get_bypass_pwup_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8406 of file bp_mod.c.

int get_bypass_pwup_sd ( int  if_index)

get_bypass_pwup - Get Bypass mode state at power-up state : network device index of the controlling device Output: 0/1 - on success (Disable bypass at power up state / normal Bypass mode) -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7269 of file bp_mod.c.

int get_bypass_sd ( int  if_index)

get_bypass - Get Bypass mode state : network device index of the controlling device Output: 0/1 - (off/on) on success -1 - on failure (device not support Bypass or it's a slave device)

Definition at line 7228 of file bp_mod.c.

int get_bypass_slave_fn ( bpctl_dev_t pbpctl_dev,
bpctl_dev_t **  pbpctl_dev_out 
)

Definition at line 5041 of file bp_mod.c.

int get_bypass_slave_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7666 of file bp_mod.c.

int get_bypass_slave_sd ( int  if_index)

get_bypass_slave - get second port participate in the Bypass pair : network device index

Output: network device index of the slave device -1 - on failure (device not support Bypass or it's a slave device)

Definition at line 7454 of file bp_mod.c.

int get_bypass_tpl_auto ( bpctl_dev_t pbpctl_dev)

Definition at line 5217 of file bp_mod.c.

int get_bypass_wd_auto ( bpctl_dev_t pbpctl_dev)

Definition at line 4418 of file bp_mod.c.

int get_bypass_wd_fn ( bpctl_dev_t pbpctl_dev,
int timeout 
)

Definition at line 4636 of file bp_mod.c.

int get_bypass_wd_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7995 of file bp_mod.c.

int get_bypass_wd_sd ( int  if_index,
int ms_timeout_set 
)

get_bypass_wd - Get watchdog state : network device index of the controlling device (output): WDT timeout (in ms units), -1 for unknown wdt status 0 if WDT is disabled Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7283 of file bp_mod.c.

int get_dev_idx_bsf ( int  bus,
int  slot,
int  func 
)

Definition at line 5350 of file bp_mod.c.

int get_dis_bypass_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4555 of file bp_mod.c.

int get_dis_bypass_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8218 of file bp_mod.c.

int get_dis_bypass_sd ( int  if_index)

get_dis_bypass - Get Disable Bypass mode state : network device index of the controlling device Output: 0/1 - on success (normal Bypass mode/ Disable bypass) -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7245 of file bp_mod.c.

int get_dis_disc_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4881 of file bp_mod.c.

int get_dis_disc_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8258 of file bp_mod.c.

int get_dis_tap_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4789 of file bp_mod.c.

int get_dis_tap_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8238 of file bp_mod.c.

int get_dis_tap_sd ( int  if_index)

get_dis_tap - Get Disable TAP mode state : network device index of the controlling device Output: 0/1 - on success (normal TAP mode/ Disable TAP) -1 - on failure (device is not capable of the operation ordevice not support TAP or it's a slave device)

Definition at line 7354 of file bp_mod.c.

int get_disc_change_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4853 of file bp_mod.c.

int get_disc_change_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7950 of file bp_mod.c.

int get_disc_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4814 of file bp_mod.c.

int get_disc_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7890 of file bp_mod.c.

int get_disc_port_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4906 of file bp_mod.c.

int get_disc_port_pwup_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4928 of file bp_mod.c.

int get_disc_pwup_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4843 of file bp_mod.c.

int get_disc_pwup_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8466 of file bp_mod.c.

int get_std_nic_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4703 of file bp_mod.c.

int get_std_nic_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8518 of file bp_mod.c.

int get_std_nic_sd ( int  if_index)

get_std_nic - Get Standard NIC mode setting : network device index of the controlling device

Output: 0/1 (Default Bypass mode / Standard NIC mode) on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7312 of file bp_mod.c.

int get_tap_change_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4764 of file bp_mod.c.

int get_tap_change_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7930 of file bp_mod.c.

int get_tap_change_sd ( int  if_index)

get_tap_change - Get change of TAP mode state from last status check : network device index of the controlling device Output: 0/1 - (off/on) on success -1 - on failure (device not support TAP or it's a slave device)

Definition at line 7342 of file bp_mod.c.

int get_tap_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4727 of file bp_mod.c.

int get_tap_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7870 of file bp_mod.c.

int get_tap_pwup_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4753 of file bp_mod.c.

int get_tap_pwup_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8446 of file bp_mod.c.

int get_tap_pwup_sd ( int  if_index)

get_tap_pwup - Get TAP mode state at power-up state : network device index of the controlling device Output: 0/1 - on success (Disable TAP at power up state / normal TAP mode) -1 - on failure (device is not capable of the operation ordevice not support TAP or it's a slave device)

Definition at line 7336 of file bp_mod.c.

int get_tap_sd ( int  if_index)

get_tap - Get TAP mode state : network device index of the controlling device Output: 0/1 - (off/on) on success -1 - on failure (device not support TAP or it's a slave device)

Definition at line 7324 of file bp_mod.c.

int get_tpl_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 5256 of file bp_mod.c.

int get_tpl_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8039 of file bp_mod.c.

int get_tpl_sd ( int  if_index)

get_tpl - Get TPL mode state : network device index of the controlling device Output: 0/1 - (off/on) on success -1 - on failure (device not support TPL or it's a slave device)

Definition at line 7470 of file bp_mod.c.

int get_tx_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 5084 of file bp_mod.c.

int get_tx_sd ( int  if_index)

get_std_nic - get transmitter state (disable / enable) : network device index of the controlling device

Output: 0/1 (ransmit Disable / Transmit Enable) on success -1 - on failure (device is not capable of the operation ordevice not support Bypass)

Definition at line 7464 of file bp_mod.c.

int get_wd_autoreset_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 5005 of file bp_mod.c.

int get_wd_autoreset_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8595 of file bp_mod.c.

int get_wd_autoreset_sd ( int  if_index)

set_wd_autoreset - reset WDT periodically. : network device index of the controlling device : adapter mode (1=tap mode, 0=bypass mode) Output: 1 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device or unknown wdt status)

Definition at line 7443 of file bp_mod.c.

int get_wd_exp_mode_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4939 of file bp_mod.c.

int get_wd_exp_mode_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8538 of file bp_mod.c.

int get_wd_exp_mode_sd ( int  if_index)

get_wd_exp_mode - Get adapter state when WDT expired. : network device index of the controlling device Output: 0/1 - (bypass/tap) on success -1 - on failure (device not support Bypass or it's a slave device)

Definition at line 7402 of file bp_mod.c.

int get_wd_expire_time_fn ( bpctl_dev_t pbpctl_dev,
int time_left 
)

Definition at line 4644 of file bp_mod.c.

int get_wd_expire_time_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8017 of file bp_mod.c.

int get_wd_expire_time_sd ( int  if_index,
int ms_time_left 
)

get_wd_expire_time - Get watchdog expire : network device index of the controlling device (output): time left till watchdog time expire, -1 if WDT has expired 0 if WDT is disabled Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device or unknown wdt status)

Definition at line 7289 of file bp_mod.c.

int get_wd_set_caps_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4660 of file bp_mod.c.

int get_wd_set_caps_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 7737 of file bp_mod.c.

int get_wd_set_caps_sd ( int  if_index)

get_wd_set_caps - Obtain watchdog timer setting capabilities : network device index

Output:

Set of numbers defining the various parameters of the watchdog capable to be set to as described bellow. -1 - on failure (device not support Bypass or it's a slave device)

Bit feature description

0-3 WD_MIN_TIME The interface WD minimal time period in 100mS units

4 WD_STEP_TIME The steps of the WD timer in 0 - for linear steps (WD_MIN_TIME * X) 1 - for multiply by 2 from previous step (WD_MIN_TIME * 2^X)

5-8 WD_STEP_COUNT Number of steps the WD timer supports in 2^X (X bit available for defining the value)

Definition at line 7300 of file bp_mod.c.

int init_bypass_tpl_auto ( bpctl_dev_t pbpctl_dev)

Definition at line 5186 of file bp_mod.c.

int init_bypass_wd_auto ( bpctl_dev_t pbpctl_dev)

Definition at line 4352 of file bp_mod.c.

int is_bypass ( bpctl_dev_t pbpctl_dev)

Definition at line 5073 of file bp_mod.c.

int is_bypass_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4499 of file bp_mod.c.

int is_bypass_sd ( int  if_index)

is_bypass - check if device is a Bypass controlling device : network device index

Output: 1 - if device is bypass controlling device, 0 - if device is bypass slave device -1 - device not support Bypass

Definition at line 7217 of file bp_mod.c.

MODULE_AUTHOR ( "Anna  Lukin,
annal @silicom.co.il"   
)
MODULE_DESCRIPTION ( BP_MOD_DESCR  )
module_exit ( bypass_cleanup_module  )
module_init ( bypass_init_module  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( BP_MOD_VER  )
int normal_port_state_pwron ( bpctl_dev_t pbpctl_dev)

Definition at line 2825 of file bp_mod.c.

int normal_state_pwroff ( bpctl_dev_t pbpctl_dev)

Definition at line 2729 of file bp_mod.c.

int normal_state_pwron ( bpctl_dev_t pbpctl_dev)

Definition at line 2703 of file bp_mod.c.

int normal_support ( bpctl_dev_t pbpctl_dev)

Definition at line 3613 of file bp_mod.c.

void remove_bypass_tpl_auto ( bpctl_dev_t pbpctl_dev)

Definition at line 5168 of file bp_mod.c.

void remove_bypass_wd_auto ( bpctl_dev_t pbpctl_dev)

Definition at line 4311 of file bp_mod.c.

int reset_bypass_wd_pfs ( char page,
char **  start,
off_t  off,
int  count,
int eof,
void data 
)

Definition at line 8102 of file bp_mod.c.

int reset_bypass_wd_timer_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4652 of file bp_mod.c.

int reset_bypass_wd_timer_sd ( int  if_index)

reset_bypass_wd_timer - Reset watchdog timer : network device index of the controlling device

Output: 1 - on success 0 - watchdog is not configured -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device or unknown wdt status)

Definition at line 7294 of file bp_mod.c.

int reset_cont ( bpctl_dev_t pbpctl_dev)

Definition at line 2637 of file bp_mod.c.

int reset_cont_fn ( bpctl_dev_t pbpctl_dev)

Definition at line 4955 of file bp_mod.c.

int reset_cont_sd ( int  ifindex)

Definition at line 7413 of file bp_mod.c.

void send_bypass_clear_pulse ( bpctl_dev_t pbpctl_dev,
unsigned int  value 
)

Definition at line 1576 of file bp_mod.c.

int set_bp_dis_disc_sd ( int  if_index,
int  dis_disc 
)

set_bp_dis_disc - Set Disable Disconnect mode : network device index of the controlling device : disable tap(1=dis, 0=en) Output: 0 - on success -1 - on failure (device is not capable ofthe operation ordevice not support Disconnect or it's a slave device)

Definition at line 7390 of file bp_mod.c.

int set_bp_disc_pwup_sd ( int  if_index,
int  disc_mode 
)

set_bp_disc_pwup - Set Disconnect mode at power-up state : network device index of the controlling device : tap mode setting at power up state (1=Disc en, 0=Disc Dis) Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Disconnect or it's a slave device)

Definition at line 7372 of file bp_mod.c.

int set_bp_disc_sd ( int  if_index,
int  disc_mode 
)

set_bp_disc - set Disconnect state : network device index of the controlling device : 1 disc mode , 0 non-disc mode Output: 0 - on success -1 - on failure (device not support Disconnect or it's a slave device)

Definition at line 7360 of file bp_mod.c.

int set_bp_force_link_fn ( int  dev_num,
int  tx_state 
)

Definition at line 4985 of file bp_mod.c.

int set_bp_hw_reset_fn ( bpctl_dev_t pbpctl_dev,
int  tap_mode 
)

Definition at line 5303 of file bp_mod.c.

int set_bp_hw_reset_sd ( int  ifindex,
int  status 
)

Definition at line 7431 of file bp_mod.c.

int set_bp_wait_at_pwup_fn ( bpctl_dev_t pbpctl_dev,
int  tap_mode 
)

Definition at line 5270 of file bp_mod.c.

int set_bypass_fn ( bpctl_dev_t pbpctl_dev,
int  bypass_mode 
)

Definition at line 4507 of file bp_mod.c.

int set_bypass_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 7754 of file bp_mod.c.

int set_bypass_pwoff_fn ( bpctl_dev_t pbpctl_dev,
int  bypass_mode 
)

Definition at line 4563 of file bp_mod.c.

int set_bypass_pwoff_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8310 of file bp_mod.c.

int set_bypass_pwoff_sd ( int  if_index,
int  bypass_mode 
)

set_bypass_pwoff - Set Bypass mode at power-off state : network device index of the controlling device : bypass mode setting at power off state (1=BP en, 0=BP Dis) Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7251 of file bp_mod.c.

int set_bypass_pwup_fn ( bpctl_dev_t pbpctl_dev,
int  bypass_mode 
)

Definition at line 4589 of file bp_mod.c.

int set_bypass_pwup_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8278 of file bp_mod.c.

int set_bypass_pwup_sd ( int  if_index,
int  bypass_mode 
)

set_bypass_pwup - Set Bypass mode at power-up state : network device index of the controlling device : bypass mode setting at power up state (1=BP en, 0=BP Dis) Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7263 of file bp_mod.c.

int set_bypass_sd ( int  if_index,
int  bypass_mode 
)

set_bypass - set Bypass state : network device index of the controlling device : bypass mode (1=on, 0=off) Output: 0 - on success -1 - on failure (device not support Bypass or it's a slave device)

Definition at line 7222 of file bp_mod.c.

int set_bypass_tpl_auto ( bpctl_dev_t pbpctl_dev,
unsigned int  param 
)

Definition at line 5199 of file bp_mod.c.

int set_bypass_wd_auto ( bpctl_dev_t pbpctl_dev,
unsigned int  param 
)

Definition at line 4399 of file bp_mod.c.

int set_bypass_wd_fn ( bpctl_dev_t pbpctl_dev,
int  timeout 
)

Definition at line 4615 of file bp_mod.c.

int set_bypass_wd_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 7979 of file bp_mod.c.

int set_bypass_wd_sd ( int  if_index,
int  ms_timeout,
int ms_timeout_set 
)

set_bypass_wd - Set watchdog state : network device index of the controlling device : requested timeout (in ms units), 0 for disabling the watchdog timer (output): requested timeout (in ms units), that the adapter supports and will be used by the watchdog Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7275 of file bp_mod.c.

int set_dis_bypass_fn ( bpctl_dev_t pbpctl_dev,
int  dis_param 
)

Definition at line 4537 of file bp_mod.c.

int set_dis_bypass_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8122 of file bp_mod.c.

int set_dis_bypass_sd ( int  if_index,
int  dis_bypass 
)

set_dis_bypass - Set Disable Bypass mode : network device index of the controlling device : disable bypass(1=dis, 0=en) Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7240 of file bp_mod.c.

int set_dis_disc_fn ( bpctl_dev_t pbpctl_dev,
int  dis_param 
)

Definition at line 4863 of file bp_mod.c.

int set_dis_disc_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8186 of file bp_mod.c.

int set_dis_tap_fn ( bpctl_dev_t pbpctl_dev,
int  dis_param 
)

Definition at line 4772 of file bp_mod.c.

int set_dis_tap_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8154 of file bp_mod.c.

int set_dis_tap_sd ( int  if_index,
int  dis_tap 
)

set_dis_tap - Set Disable TAP mode : network device index of the controlling device : disable tap(1=dis, 0=en) Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support TAP or it's a slave device)

Definition at line 7348 of file bp_mod.c.

int set_disc_fn ( bpctl_dev_t pbpctl_dev,
int  disc_mode 
)

Definition at line 4797 of file bp_mod.c.

int set_disc_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 7818 of file bp_mod.c.

int set_disc_port_fn ( bpctl_dev_t pbpctl_dev,
int  disc_mode 
)

Definition at line 4892 of file bp_mod.c.

int set_disc_port_pwup_fn ( bpctl_dev_t pbpctl_dev,
int  disc_mode 
)

Definition at line 4914 of file bp_mod.c.

int set_disc_pwup_fn ( bpctl_dev_t pbpctl_dev,
int  disc_mode 
)

Definition at line 4825 of file bp_mod.c.

int set_disc_pwup_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8374 of file bp_mod.c.

int set_std_nic_fn ( bpctl_dev_t pbpctl_dev,
int  nic_mode 
)

Definition at line 4684 of file bp_mod.c.

int set_std_nic_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8486 of file bp_mod.c.

int set_std_nic_sd ( int  if_index,
int  nic_mode 
)

set_std_nic - Standard NIC mode of operation : network device index of the controlling device : 0/1 (Default Bypass mode / Standard NIC mode)

Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device)

Definition at line 7306 of file bp_mod.c.

int set_tap_fn ( bpctl_dev_t pbpctl_dev,
int  tap_mode 
)

Definition at line 4711 of file bp_mod.c.

int set_tap_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 7786 of file bp_mod.c.

int set_tap_pwup_fn ( bpctl_dev_t pbpctl_dev,
int  tap_mode 
)

Definition at line 4735 of file bp_mod.c.

int set_tap_pwup_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8342 of file bp_mod.c.

int set_tap_pwup_sd ( int  if_index,
int  tap_mode 
)

set_tap_pwup - Set TAP mode at power-up state : network device index of the controlling device : tap mode setting at power up state (1=TAP en, 0=TAP Dis) Output: 0 - on success -1 - on failure (device is not capable of the operation ordevice not support TAP or it's a slave device)

Definition at line 7330 of file bp_mod.c.

int set_tap_sd ( int  if_index,
int  tap_mode 
)

set_tap - set TAP state : network device index of the controlling device : 1 tap mode , 0 normal nic mode Output: 0 - on success -1 - on failure (device not support TAP or it's a slave device)

Definition at line 7318 of file bp_mod.c.

int set_tpl_fn ( bpctl_dev_t pbpctl_dev,
int  tpl_mode 
)

Definition at line 5227 of file bp_mod.c.

int set_tpl_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8629 of file bp_mod.c.

int set_tpl_sd ( int  if_index,
int  tpl_mode 
)

set_tpl - set TPL state : network device index of the controlling device : 1 tpl mode , 0 normal nic mode Output: 0 - on success -1 - on failure (device not support TPL)

Definition at line 7425 of file bp_mod.c.

int set_tx_fn ( bpctl_dev_t pbpctl_dev,
int  tx_state 
)

Definition at line 4966 of file bp_mod.c.

int set_tx_sd ( int  if_index,
int  tx_state 
)

set_tx - set transmitter enable/disable : network device index of the controlling device : 0/1 (Transmit Disable / Transmit Enable)

Output: 0 - on success -1 - on failure (device is not capable of the operation )

Definition at line 7419 of file bp_mod.c.

int set_wd_autoreset_fn ( bpctl_dev_t pbpctl_dev,
int  param 
)

Definition at line 4997 of file bp_mod.c.

int set_wd_autoreset_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8613 of file bp_mod.c.

int set_wd_autoreset_sd ( int  if_index,
int  time 
)

set_wd_autoreset - reset WDT periodically. : network device index of the controlling device : adapter mode (1=tap mode, 0=bypass mode) Output: 1 - on success -1 - on failure (device is not capable of the operation ordevice not support Bypass or it's a slave device or unknown wdt status)

Definition at line 7437 of file bp_mod.c.

int set_wd_exp_mode_fn ( bpctl_dev_t pbpctl_dev,
int  param 
)

Definition at line 4947 of file bp_mod.c.

int set_wd_exp_mode_pfs ( struct file file,
const char buffer,
unsigned long  count,
void data 
)

Definition at line 8561 of file bp_mod.c.

int set_wd_exp_mode_sd ( int  if_index,
int  bypass_mode 
)

set_wd_exp_mode - Set adapter state when WDT expired. : network device index of the controlling device : adapter mode (1=tap mode, 0=bypass mode) Output: 0 - on success -1 - on failure (device not support Bypass or it's a slave device)

Definition at line 7407 of file bp_mod.c.

int std_nic_off ( bpctl_dev_t pbpctl_dev)

Definition at line 2917 of file bp_mod.c.

int std_nic_on ( bpctl_dev_t pbpctl_dev)

Definition at line 2863 of file bp_mod.c.

int std_nic_status ( bpctl_dev_t pbpctl_dev)

Definition at line 4027 of file bp_mod.c.

int tap_change_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3664 of file bp_mod.c.

int tap_flag_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3638 of file bp_mod.c.

int tap_flag_status_clear ( bpctl_dev_t pbpctl_dev)

Definition at line 3650 of file bp_mod.c.

int tap_off ( bpctl_dev_t pbpctl_dev)

Definition at line 1938 of file bp_mod.c.

int tap_off_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3681 of file bp_mod.c.

int tap_on ( bpctl_dev_t pbpctl_dev)

Definition at line 1951 of file bp_mod.c.

int tap_state_pwron ( bpctl_dev_t pbpctl_dev)

Definition at line 2740 of file bp_mod.c.

int tap_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3691 of file bp_mod.c.

int tap_support ( bpctl_dev_t pbpctl_dev)

Definition at line 3597 of file bp_mod.c.

int tpl2_flag_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3977 of file bp_mod.c.

int tpl_hw_off ( bpctl_dev_t pbpctl_dev)

Definition at line 2068 of file bp_mod.c.

int tpl_hw_on ( bpctl_dev_t pbpctl_dev)

Definition at line 2041 of file bp_mod.c.

int tpl_hw_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3988 of file bp_mod.c.

int wdt_en_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3542 of file bp_mod.c.

int wdt_exp_mode ( bpctl_dev_t pbpctl_dev,
int  mode 
)

Definition at line 3143 of file bp_mod.c.

int wdt_exp_mode_status ( bpctl_dev_t pbpctl_dev)

Definition at line 3954 of file bp_mod.c.

int wdt_off ( bpctl_dev_t pbpctl_dev)

Definition at line 2093 of file bp_mod.c.

int wdt_on ( bpctl_dev_t pbpctl_dev,
unsigned int  timeout 
)

Definition at line 2116 of file bp_mod.c.

int wdt_programmed ( bpctl_dev_t pbpctl_dev,
int timeout 
)

Definition at line 3554 of file bp_mod.c.

int wdt_time_left ( bpctl_dev_t pbpctl_dev)

Definition at line 2969 of file bp_mod.c.

Variable Documentation

spinlock_t bpvm_lock

Definition at line 46 of file bp_mod.c.

dev_desc_t dev_desc[]

Definition at line 6107 of file bp_mod.c.

Initial value:
= {
.owner = THIS_MODULE,
.unlocked_ioctl = device_ioctl,
.open = device_open,
.release = device_release,
}

Definition at line 5912 of file bp_mod.c.