Upstream release 5.0.65.1
This commit is contained in:
parent
fd37f9f9d6
commit
355206db20
14
COPYING_bsd
Normal file
14
COPYING_bsd
Normal file
|
@ -0,0 +1,14 @@
|
|||
bp_ctl and its command line tools are licensed under the BSD 2-clause license
|
||||
|
||||
* The BSD 2-clause license
|
||||
|
||||
Copyright (c) 2010-2014, Silicom Ltd.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
7
Makefile
Normal file → Executable file
7
Makefile
Normal file → Executable file
|
@ -1,8 +1,6 @@
|
|||
|
||||
MOD_VER=5.0.50
|
||||
MOD_VER=5.0.65.1
|
||||
|
||||
MOD_VER=5.0.40.29-rb
|
||||
INSTALL_MOD_PATH=/opt/rb
|
||||
|
||||
# core driver files
|
||||
CFILES = bp_mod.c
|
||||
|
@ -57,6 +55,7 @@ endif
|
|||
VSP := $(KOBJ)/include/generated/utsrelease.h \
|
||||
$(KOBJ)/include/linux/utsrelease.h \
|
||||
$(KOBJ)/include/linux/version.h \
|
||||
$(KOBJ)/include/generated/uapi/linux/version.h \
|
||||
/boot/vmlinuz.version.h
|
||||
|
||||
# Config file Search Path
|
||||
|
@ -132,7 +131,7 @@ EXTRA_CFLAGS += -DDRIVER_NAME=$(DRIVER_NAME)
|
|||
EXTRA_CFLAGS += -DDRIVER_NAME_CAPS=$(shell echo $(DRIVER_NAME) | tr '[a-z]' '[A-Z]')
|
||||
# standard flags for module builds
|
||||
EXTRA_CFLAGS += -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall
|
||||
EXTRA_CFLAGS += -I$(KSRC)/include -I.
|
||||
EXTRA_CFLAGS += -I$(KSRC)/generated/uapi -I$(KSRC)/include -I.
|
||||
EXTRA_CFLAGS += $(shell [ -f $(KSRC)/include/linux/modversions.h ] && \
|
||||
echo "-DMODVERSIONS -DEXPORT_SYMTAB \
|
||||
-include $(KSRC)/include/linux/modversions.h")
|
||||
|
|
32
bits.h
Normal file → Executable file
32
bits.h
Normal file → Executable file
|
@ -1,3 +1,35 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the Silicom nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef BITS_H
|
||||
#define BITS_H
|
||||
|
|
32
bnx2x_reg.h
Normal file → Executable file
32
bnx2x_reg.h
Normal file → Executable file
|
@ -1,3 +1,35 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the Silicom nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
/* [R 19] Interrupt register #0 read */
|
||||
|
|
2
bp_ioctl.h
Normal file → Executable file
2
bp_ioctl.h
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
50
bp_mod.h
Normal file → Executable file
50
bp_mod.h
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -55,20 +55,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#endif
|
||||
|
||||
|
||||
#define usec_delay(x) udelay(x)
|
||||
#ifndef msec_delay_bp
|
||||
#define msec_delay_bp(x) do { \
|
||||
int i; \
|
||||
if(1) { \
|
||||
for(i = 0; i < 1000; i++) \
|
||||
{ \
|
||||
udelay(x) ; \
|
||||
} \
|
||||
} else { \
|
||||
msleep(x); \
|
||||
} } while(0)
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef jiffies_to_msecs
|
||||
|
@ -185,6 +171,8 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
#define SILICOM_PE210G2DBi9LR_SSID 0x0189
|
||||
#define SILICOM_PE210G2DBi9LRRB_SSID 0x0189
|
||||
#define SILICOM_PE310G4DBi940SR_SSID 0x018C
|
||||
#define SILICOM_PE310G4DBi940LR_SSID 0x018D
|
||||
#define SILICOM_PE310G4DBi940T_SSID 0x018e
|
||||
|
||||
#define SILICOM_PE310G4DBi9T_SSID 0x18e
|
||||
|
||||
|
@ -196,6 +184,12 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
#define SILICOM_PE310G4BPi9SR_SSID 0x132
|
||||
#define SILICOM_PE310G4BPi9LR_SSID 0x133
|
||||
|
||||
#define SILICOM_PE310G4BPi9SRD_SSID 0x134
|
||||
#define SILICOM_PE310G4BPi9LRD_SSID 0x135
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define SILICOM_M6E310G4BPi9SR_SSID 0x0492
|
||||
#define SILICOM_M6E310G4BPi9LR_SSID 0x0493
|
||||
|
@ -279,6 +273,7 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
|
||||
#define SILICOM_PE2G4BPi35L_SSID 0x03D0
|
||||
#define SILICOM_PE2G4BPFi35_SSID 0x03D1
|
||||
#define SILICOM_PE2G4BPFi35CS_SSID 0x0b80
|
||||
#define SILICOM_PE2G4BPFi35LX_SSID 0x03D2
|
||||
#define SILICOM_PE2G4BPFi35ZX_SSID 0x03D3
|
||||
|
||||
|
@ -334,9 +329,11 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
#define SILICOM_M6E2G8BPi80_SSID 0x0470
|
||||
#define SILICOM_PE210G2BPi40_SSID 0x01a0
|
||||
#define SILICOM_M1E210G2BPI40T_SSID 0x0480
|
||||
#define SILICOM_PE310G4BPi40_SSID 0x01a4
|
||||
|
||||
#define PEG540_IF_SERIES(pid) \
|
||||
((pid==SILICOM_PE210G2BPi40_SSID) || \
|
||||
(pid==SILICOM_PE310G4BPi40_SSID) || \
|
||||
(pid==SILICOM_M1E210G2BPI40T_SSID))
|
||||
|
||||
|
||||
|
@ -484,8 +481,19 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
#define SILICOM_PE210G2BPI9CX4_SSID 0x121
|
||||
#define SILICOM_PE210G2BPI9SR_SSID 0x122
|
||||
#define SILICOM_PE210G2BPI9LR_SSID 0x123
|
||||
#define SILICOM_PE210G2BPI9LRD_SSID 0x125
|
||||
#define SILICOM_PE210G2BPI9SRD_SSID 0x124
|
||||
#define SILICOM_PE210G2BPI9T_SSID 0x120
|
||||
|
||||
#define SILICOM_M1E210G2BPI9SRDJP_SSID 0x1E00
|
||||
#define SILICOM_M1E210G2BPI9SRDJP1_SSID 0x1E10
|
||||
#define SILICOM_M1E210G2BPI9LRDJP_SSID 0x1F00
|
||||
#define SILICOM_M1E210G2BPI9LRDJP1_SSID 0x1F10
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define DBI_IF_SERIES(pid) \
|
||||
((pid==SILICOM_PE10GDBISR_SSID)|| \
|
||||
(pid==SILICOM_PE10GDBILR_SSID)|| \
|
||||
|
@ -574,6 +582,7 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
(pid==SILICOM_M1E2G4BPFi35LX_SSID)|| \
|
||||
(pid==SILICOM_M1E2G4BPFi35ZX_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35CS_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35LX_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35ZX_SSID))
|
||||
|
||||
|
@ -596,6 +605,7 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
(pid==SILICOM_M1E2G4BPFi35LX_SSID)|| \
|
||||
(pid==SILICOM_M1E2G4BPFi35ZX_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35CS_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35LX_SSID)|| \
|
||||
(pid==SILICOM_PE2G4BPFi35ZX_SSID))
|
||||
|
||||
|
@ -612,17 +622,27 @@ static inline unsigned int jiffies_to_msecs(const unsigned long j)
|
|||
(pid==SILICOM_PE210G2BPI9CX4_SSID)|| \
|
||||
(pid==SILICOM_PE210G2BPI9SR_SSID)|| \
|
||||
(pid==SILICOM_PE210G2BPI9LR_SSID)|| \
|
||||
(pid==SILICOM_PE210G2BPI9LRD_SSID)|| \
|
||||
(pid==SILICOM_PE210G2BPI9SRD_SSID)|| \
|
||||
(pid==SILICOM_PE210G2DBi9SR_SSID)|| \
|
||||
(pid==SILICOM_PE210G2DBi9SRRB_SSID)|| \
|
||||
(pid==SILICOM_PE210G2DBi9LR_SSID)|| \
|
||||
(pid==SILICOM_PE210G2DBi9LRRB_SSID)|| \
|
||||
(pid==SILICOM_PE310G4DBi940SR_SSID)|| \
|
||||
(pid==SILICOM_PE310G4DBi940LR_SSID)|| \
|
||||
(pid==SILICOM_PE310G4DBi940T_SSID)|| \
|
||||
(pid==SILICOM_PE310G4DBi9T_SSID)|| \
|
||||
(pid==SILICOM_PE310G4BPi9T_SSID)|| \
|
||||
(pid==SILICOM_PE310G4BPi9SR_SSID)|| \
|
||||
(pid==SILICOM_PE310G4BPi9SRD_SSID)|| \
|
||||
(pid==SILICOM_M6E310G4BPi9SR_SSID)|| \
|
||||
(pid==SILICOM_M6E310G4BPi9LR_SSID)|| \
|
||||
(pid==SILICOM_PE310G4BPi9LR_SSID)|| \
|
||||
(pid==SILICOM_PE310G4BPi9LRD_SSID)|| \
|
||||
(pid==SILICOM_M1E210G2BPI9SRDJP_SSID)|| \
|
||||
(pid==SILICOM_M1E210G2BPI9SRDJP1_SSID)|| \
|
||||
(pid==SILICOM_M1E210G2BPI9LRDJP_SSID)|| \
|
||||
(pid==SILICOM_M1E210G2BPI9LRDJP1_SSID)|| \
|
||||
(pid==SILICOM_PE210G2BPI9T_SSID))
|
||||
|
||||
|
||||
|
|
2
bp_msg.h
Normal file → Executable file
2
bp_msg.h
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
1513
bp_proc.c
1513
bp_proc.c
|
@ -1,1513 +0,0 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the Silicom nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
#include <linux/smp_lock.h>
|
||||
#include "bp_mod.h"
|
||||
|
||||
#define BP_PROC_DIR "bypass"
|
||||
|
||||
#ifdef BYPASS_SUPPORT
|
||||
|
||||
#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"
|
||||
|
||||
/*COMMANDS*/
|
||||
#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"
|
||||
|
||||
|
||||
|
||||
|
||||
#endif //bypass_support
|
||||
|
||||
|
||||
static struct proc_dir_entry *bp_procfs_dir;
|
||||
|
||||
static struct proc_dir_entry *
|
||||
proc_getdir(char *name, struct proc_dir_entry *proc_dir) {
|
||||
struct proc_dir_entry *pde = proc_dir;
|
||||
#ifdef CONFIG_LOCK_KERNEL
|
||||
lock_kernel();
|
||||
#endif
|
||||
for (pde=pde->subdir; pde; pde = pde->next) {
|
||||
if (pde->namelen && (strcmp(name, pde->name) == 0)) {
|
||||
/* directory exists */
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (pde == (struct proc_dir_entry *) 0) {
|
||||
/* create the directory */
|
||||
#if (LINUX_VERSION_CODE > 0x20300)
|
||||
pde = proc_mkdir(name, proc_dir);
|
||||
#else
|
||||
pde = create_proc_entry(name, S_IFDIR, proc_dir);
|
||||
#endif
|
||||
if (pde == (struct proc_dir_entry *) 0) {
|
||||
#ifdef CONFIG_LOCK_KERNEL
|
||||
unlock_kernel();
|
||||
#endif
|
||||
return(pde);
|
||||
}
|
||||
}
|
||||
#ifdef CONFIG_LOCK_KERNEL
|
||||
unlock_kernel();
|
||||
#endif
|
||||
return(pde);
|
||||
}
|
||||
|
||||
int
|
||||
bp_proc_create(void)
|
||||
{
|
||||
#if ( LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) )
|
||||
bp_procfs_dir = proc_getdir(BP_PROC_DIR, proc_net);
|
||||
#else
|
||||
bp_procfs_dir = proc_getdir(BP_PROC_DIR, init_net.proc_net);
|
||||
#endif
|
||||
|
||||
if (bp_procfs_dir == (struct proc_dir_entry *) 0) {
|
||||
printk(KERN_DEBUG "Could not create procfs nicinfo directory %s\n", BP_PROC_DIR);
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef BYPASS_SUPPORT
|
||||
|
||||
|
||||
int
|
||||
bypass_proc_create_entry_sd(struct pfs_unit *pfs_unit_curr,
|
||||
char* proc_name,
|
||||
write_proc_t *write_proc,
|
||||
read_proc_t *read_proc,
|
||||
struct proc_dir_entry *parent_pfs,
|
||||
void *data
|
||||
)
|
||||
{
|
||||
strcpy(pfs_unit_curr->proc_name,proc_name);
|
||||
pfs_unit_curr->proc_entry= create_proc_entry(pfs_unit_curr->proc_name,
|
||||
S_IFREG|S_IRUSR|S_IWUSR|
|
||||
S_IRGRP|S_IWGRP|
|
||||
S_IROTH|S_IWOTH, parent_pfs);
|
||||
if (pfs_unit_curr->proc_entry == 0) {
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
pfs_unit_curr->proc_entry->read_proc = read_proc;
|
||||
pfs_unit_curr->proc_entry->write_proc = write_proc;
|
||||
pfs_unit_curr->proc_entry->data = data;
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
get_bypass_info_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
int len=0;
|
||||
|
||||
len += sprintf(page, "Name\t\t\t%s\n", pbp_device_block->bp_name);
|
||||
len += sprintf(page+len, "Firmware version\t0x%x\n", pbp_device_block->bp_fw_ver);
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_bypass_slave_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
struct pci_dev *pci_slave_dev=pbp_device_block->bp_slave;
|
||||
struct net_device *net_slave_dev;
|
||||
int len=0;
|
||||
|
||||
if (is_bypass_fn(pbp_device_block)) {
|
||||
net_slave_dev=pci_get_drvdata(pci_slave_dev);
|
||||
if (net_slave_dev)
|
||||
len = sprintf(page, "%s\n", net_slave_dev->name);
|
||||
else
|
||||
len=sprintf(page, "fail\n");
|
||||
} else
|
||||
len=sprintf(page, "fail\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_bypass_caps_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_bypass_caps_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "-1\n");
|
||||
else
|
||||
len=sprintf(page, "0x%x\n", ret);
|
||||
*eof = 1;
|
||||
return len;
|
||||
|
||||
|
||||
}
|
||||
|
||||
int
|
||||
get_wd_set_caps_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_wd_set_caps_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "-1\n");
|
||||
else
|
||||
len=sprintf(page, "0x%x\n", ret);
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
set_bypass_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int bypass_param=0, length=0;
|
||||
|
||||
if (count>(sizeof(kbuf)-1))
|
||||
return -1;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
bypass_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
bypass_param=0;
|
||||
|
||||
|
||||
set_bypass_fn (pbp_device_block, bypass_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
set_tap_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tap_param=0, length=0;
|
||||
|
||||
if (count>(sizeof(kbuf)-1))
|
||||
return -1;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tap_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tap_param=0;
|
||||
|
||||
set_tap_fn(pbp_device_block, tap_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
set_disc_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tap_param=0, length=0;
|
||||
|
||||
if (count>(sizeof(kbuf)-1))
|
||||
return -1;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tap_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tap_param=0;
|
||||
|
||||
set_disc_fn(pbp_device_block, tap_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int
|
||||
get_bypass_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_bypass_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_tap_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_tap_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_disc_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_disc_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_bypass_change_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_bypass_change_fn (pbp_device_block);
|
||||
if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else len=sprintf(page, "fail\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_tap_change_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_tap_change_fn (pbp_device_block);
|
||||
if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else len=sprintf(page, "fail\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_disc_change_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_disc_change_fn (pbp_device_block);
|
||||
if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else len=sprintf(page, "fail\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int
|
||||
set_bypass_wd_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
unsigned int timeout=0;
|
||||
char *timeout_ptr=kbuf;
|
||||
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
timeout_ptr=kbuf;
|
||||
timeout=atoi(&timeout_ptr);
|
||||
|
||||
set_bypass_wd_fn(pbp_device_block, timeout) ;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
get_bypass_wd_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0, timeout=0;
|
||||
|
||||
ret=get_bypass_wd_fn (pbp_device_block, &timeout);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (timeout==-1)
|
||||
len=sprintf(page, "unknown\n");
|
||||
else if (timeout==0)
|
||||
len=sprintf(page, "disable\n");
|
||||
else
|
||||
len=sprintf(page, "%d\n", timeout);
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_wd_expire_time_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0, timeout=0;
|
||||
|
||||
ret=get_wd_expire_time_fn (pbp_device_block, &timeout);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (timeout==-1)
|
||||
len=sprintf(page, "expire\n");
|
||||
else if (timeout==0)
|
||||
len=sprintf(page, "disable\n");
|
||||
|
||||
else
|
||||
len=sprintf(page, "%d\n", timeout);
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_tpl_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_tpl_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
#ifdef PMC_FIX_FLAG
|
||||
int
|
||||
get_wait_at_pwup_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_bp_wait_at_pwup_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_hw_reset_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_bp_hw_reset_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==1)
|
||||
len=sprintf(page, "on\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
#endif /*PMC_WAIT_FLAG*/
|
||||
|
||||
|
||||
int
|
||||
reset_bypass_wd_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=reset_bypass_wd_timer_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "disable\n");
|
||||
else if (ret==1)
|
||||
len=sprintf(page, "success\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
set_dis_bypass_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int bypass_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
bypass_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
bypass_param=0;
|
||||
|
||||
set_dis_bypass_fn (pbp_device_block, bypass_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
set_dis_tap_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tap_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tap_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tap_param=0;
|
||||
|
||||
set_dis_tap_fn (pbp_device_block, tap_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
set_dis_disc_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tap_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tap_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tap_param=0;
|
||||
|
||||
set_dis_disc_fn (pbp_device_block, tap_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_dis_bypass_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_dis_bypass_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_dis_tap_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_dis_tap_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_dis_disc_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_dis_disc_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
set_bypass_pwup_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int bypass_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
bypass_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
bypass_param=0;
|
||||
|
||||
set_bypass_pwup_fn (pbp_device_block, bypass_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
set_bypass_pwoff_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int bypass_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
bypass_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
bypass_param=0;
|
||||
|
||||
set_bypass_pwoff_fn (pbp_device_block, bypass_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
set_tap_pwup_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tap_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tap_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tap_param=0;
|
||||
|
||||
set_tap_pwup_fn (pbp_device_block, tap_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
int
|
||||
set_disc_pwup_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tap_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tap_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tap_param=0;
|
||||
|
||||
set_disc_pwup_fn (pbp_device_block, tap_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_bypass_pwup_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_bypass_pwup_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_bypass_pwoff_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_bypass_pwoff_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_tap_pwup_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_tap_pwup_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_disc_pwup_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_disc_pwup_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int
|
||||
set_std_nic_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int bypass_param=0, length=0;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
bypass_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
bypass_param=0;
|
||||
|
||||
set_std_nic_fn (pbp_device_block, bypass_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
get_std_nic_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_std_nic_fn (pbp_device_block);
|
||||
if (ret==BP_NOT_CAP)
|
||||
len=sprintf(page, "fail\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "off\n");
|
||||
else
|
||||
len=sprintf(page, "on\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
get_wd_exp_mode_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_wd_exp_mode_fn (pbp_device_block);
|
||||
if (ret==1)
|
||||
len=sprintf(page, "tap\n");
|
||||
else if (ret==0)
|
||||
len=sprintf(page, "bypass\n");
|
||||
else if (ret==2)
|
||||
len=sprintf(page, "disc\n");
|
||||
|
||||
else len=sprintf(page, "fail\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
int
|
||||
set_wd_exp_mode_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int bypass_param=0, length=0;
|
||||
|
||||
if (count>(sizeof(kbuf)-1))
|
||||
return -1;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
|
||||
if (strcmp(kbuf,"tap")==0)
|
||||
bypass_param=1;
|
||||
else if (strcmp(kbuf,"bypass")==0)
|
||||
bypass_param=0;
|
||||
else if (strcmp(kbuf,"disc")==0)
|
||||
bypass_param=2;
|
||||
|
||||
set_wd_exp_mode_fn(pbp_device_block, bypass_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int
|
||||
get_wd_autoreset_pfs (char *page, char **start, off_t off, int count,
|
||||
int *eof, void *data)
|
||||
{
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int len=0, ret=0;
|
||||
|
||||
ret=get_wd_autoreset_fn (pbp_device_block);
|
||||
if (ret>=0)
|
||||
len=sprintf(page, "%d\n",ret);
|
||||
else len=sprintf(page, "fail\n");
|
||||
|
||||
*eof = 1;
|
||||
return len;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
set_wd_autoreset_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
u32 timeout=0;
|
||||
char *timeout_ptr=kbuf;
|
||||
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
timeout_ptr=kbuf;
|
||||
timeout=atoi(&timeout_ptr);
|
||||
|
||||
set_wd_autoreset_fn(pbp_device_block, timeout) ;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
set_tpl_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tpl_param=0, length=0;
|
||||
|
||||
if (count>(sizeof(kbuf)-1))
|
||||
return -1;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tpl_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tpl_param=0;
|
||||
|
||||
set_tpl_fn(pbp_device_block, tpl_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
#ifdef PMC_FIX_FLAG
|
||||
int
|
||||
set_wait_at_pwup_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tpl_param=0, length=0;
|
||||
|
||||
if (count>(sizeof(kbuf)-1))
|
||||
return -1;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tpl_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tpl_param=0;
|
||||
|
||||
set_bp_wait_at_pwup_fn(pbp_device_block, tpl_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
int
|
||||
set_hw_reset_pfs(struct file *file, const char *buffer,
|
||||
unsigned long count, void *data)
|
||||
{
|
||||
|
||||
char kbuf[256];
|
||||
bpctl_dev_t * pbp_device_block= (bpctl_dev_t *) data;
|
||||
|
||||
int tpl_param=0, length=0;
|
||||
|
||||
if (count>(sizeof(kbuf)-1))
|
||||
return -1;
|
||||
|
||||
if (copy_from_user(&kbuf,buffer,count)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
kbuf[count]='\0';
|
||||
length=strlen(kbuf);
|
||||
if (kbuf[length-1]=='\n')
|
||||
kbuf[--length]='\0';
|
||||
|
||||
if (strcmp(kbuf,"on")==0)
|
||||
tpl_param=1;
|
||||
else if (strcmp(kbuf,"off")==0)
|
||||
tpl_param=0;
|
||||
|
||||
set_bp_hw_reset_fn(pbp_device_block, tpl_param);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
#endif /*PMC_FIX_FLAG*/
|
||||
|
||||
|
||||
int
|
||||
bypass_proc_create_dev_sd(bpctl_dev_t * pbp_device_block){
|
||||
struct bypass_pfs_sd *current_pfs = &(pbp_device_block->bypass_pfs_set);
|
||||
static struct proc_dir_entry *procfs_dir=NULL;
|
||||
int ret=0;
|
||||
|
||||
|
||||
sprintf(current_pfs->dir_name,"bypass_%s",dev->name);
|
||||
|
||||
if (!bp_procfs_dir)
|
||||
return -1;
|
||||
|
||||
/* create device proc dir */
|
||||
procfs_dir = proc_getdir(current_pfs->dir_name,bp_procfs_dir);
|
||||
if (procfs_dir == 0) {
|
||||
printk(KERN_DEBUG "Could not create procfs directory %s\n",
|
||||
current_pfs->dir_name);
|
||||
return -1;
|
||||
}
|
||||
current_pfs->bypass_entry= procfs_dir;
|
||||
|
||||
if (bypass_proc_create_entry(&(current_pfs->bypass_info),
|
||||
BYPASS_INFO_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_bypass_info_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (pbp_device_block->bp_caps & SW_CTL_CAP) {
|
||||
|
||||
|
||||
/* Create set param proc's */
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->bypass_slave),
|
||||
BYPASS_SLAVE_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_bypass_slave_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->bypass_caps),
|
||||
BYPASS_CAPS_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_bypass_caps_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->wd_set_caps),
|
||||
WD_SET_CAPS_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_wd_set_caps_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->bypass_wd),
|
||||
BYPASS_WD_ENTRY_SD,
|
||||
set_bypass_wd_pfs, /* write */
|
||||
get_bypass_wd_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->wd_expire_time),
|
||||
WD_EXPIRE_TIME_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_wd_expire_time_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->reset_bypass_wd),
|
||||
RESET_BYPASS_WD_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
reset_bypass_wd_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->std_nic),
|
||||
STD_NIC_ENTRY_SD,
|
||||
set_std_nic_pfs, /* write */
|
||||
get_std_nic_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
|
||||
if (pbp_device_block->bp_caps & BP_CAP) {
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->bypass),
|
||||
BYPASS_ENTRY_SD,
|
||||
set_bypass_pfs, /* write */
|
||||
get_bypass_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->dis_bypass),
|
||||
DIS_BYPASS_ENTRY_SD,
|
||||
set_dis_bypass_pfs, /* write */
|
||||
get_dis_bypass_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->bypass_pwup),
|
||||
BYPASS_PWUP_ENTRY_SD,
|
||||
set_bypass_pwup_pfs, /* write */
|
||||
get_bypass_pwup_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->bypass_pwoff),
|
||||
BYPASS_PWOFF_ENTRY_SD,
|
||||
set_bypass_pwoff_pfs, /* write */
|
||||
get_bypass_pwoff_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->bypass_change),
|
||||
BYPASS_CHANGE_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_bypass_change_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
}
|
||||
|
||||
if (pbp_device_block->bp_caps & TAP_CAP) {
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tap),
|
||||
TAP_ENTRY_SD,
|
||||
set_tap_pfs, /* write */
|
||||
get_tap_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->dis_tap),
|
||||
DIS_TAP_ENTRY_SD,
|
||||
set_dis_tap_pfs, /* write */
|
||||
get_dis_tap_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tap_pwup),
|
||||
TAP_PWUP_ENTRY_SD,
|
||||
set_tap_pwup_pfs, /* write */
|
||||
get_tap_pwup_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tap_change),
|
||||
TAP_CHANGE_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_tap_change_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
}
|
||||
if (pbp_device_block->bp_caps & DISC_CAP) {
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tap),
|
||||
DISC_ENTRY_SD,
|
||||
set_disc_pfs, /* write */
|
||||
get_disc_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
#if 1
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->dis_tap),
|
||||
DIS_DISC_ENTRY_SD,
|
||||
set_dis_disc_pfs, /* write */
|
||||
get_dis_disc_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
#endif
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tap_pwup),
|
||||
DISC_PWUP_ENTRY_SD,
|
||||
set_disc_pwup_pfs, /* write */
|
||||
get_disc_pwup_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tap_change),
|
||||
DISC_CHANGE_ENTRY_SD,
|
||||
NULL, /* write */
|
||||
get_disc_change_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
}
|
||||
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->wd_exp_mode),
|
||||
WD_EXP_MODE_ENTRY_SD,
|
||||
set_wd_exp_mode_pfs, /* write */
|
||||
get_wd_exp_mode_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->wd_autoreset),
|
||||
WD_AUTORESET_ENTRY_SD,
|
||||
set_wd_autoreset_pfs, /* write */
|
||||
get_wd_autoreset_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tpl),
|
||||
TPL_ENTRY_SD,
|
||||
set_tpl_pfs, /* write */
|
||||
get_tpl_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
#ifdef PMC_FIX_FLAG
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tpl),
|
||||
WAIT_AT_PWUP_ENTRY_SD,
|
||||
set_wait_at_pwup_pfs, /* write */
|
||||
get_wait_at_pwup_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
if (bypass_proc_create_entry_sd(&(current_pfs->tpl),
|
||||
HW_RESET_ENTRY_SD,
|
||||
set_hw_reset_pfs, /* write */
|
||||
get_hw_reset_pfs, /* read */
|
||||
procfs_dir,
|
||||
pbp_device_block))
|
||||
ret= -1;
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
if (ret<0)
|
||||
printk(KERN_DEBUG "Create proc entry failed\n");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
bypass_proc_remove_dev_sd(bpctl_dev_t * pbp_device_block){
|
||||
|
||||
struct bypass_pfs_sd *current_pfs = &pbp_device_block->bypass_pfs_set;
|
||||
struct proc_dir_entry *pde = current_pfs->bypass_entry, *pde_curr=NULL;
|
||||
char name[256];
|
||||
|
||||
|
||||
for (pde=pde->subdir; pde; ) {
|
||||
strcpy(name,pde->name);
|
||||
pde_curr=pde;
|
||||
pde=pde->next;
|
||||
remove_proc_entry(name,current_pfs->bypass_entry);
|
||||
}
|
||||
if (!pde)
|
||||
remove_proc_entry(current_pfs->dir_name,bp_procfs_dir);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
4
bp_util.c
Normal file → Executable file
4
bp_util.c
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
@ -1234,7 +1234,7 @@ void get_bypass_caps_cmd(int file_desc,int if_index, int bus, int slot, int func
|
|||
|
||||
for (i=0;bp_cap_array[i].flag;i++) {
|
||||
if (bpctl_cmd.status & bp_cap_array[i].flag)
|
||||
printf("%s", bp_cap_array[i].desc);
|
||||
printf(bp_cap_array[i].desc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
bp_util.h
Normal file → Executable file
2
bp_util.h
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
33
bpctl_start
Normal file → Executable file
33
bpctl_start
Normal file → Executable file
|
@ -1,3 +1,36 @@
|
|||
#**************************************************************************
|
||||
#
|
||||
# Copyright (c) 2006-2013, Silicom
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the following disclaimer.
|
||||
#
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
#
|
||||
# 3. Neither the name of the Silicom nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#***************************************************************************
|
||||
|
||||
#!/bin/sh
|
||||
drv_name="bpctl_mod"
|
||||
dev_node="bpctl"
|
||||
|
|
33
bpctl_stop
Normal file → Executable file
33
bpctl_stop
Normal file → Executable file
|
@ -1,3 +1,36 @@
|
|||
#**************************************************************************
|
||||
#
|
||||
# Copyright (c) 2006-2013, Silicom
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of source code must retain the above copyright notice,
|
||||
# this list of conditions and the following disclaimer.
|
||||
#
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
#
|
||||
# 3. Neither the name of the Silicom nor the names of its
|
||||
# contributors may be used to endorse or promote products derived from
|
||||
# this software without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
#***************************************************************************
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
/sbin/rmmod bpctl_mod $* || exit 1
|
||||
|
|
2
bypass.h
Normal file → Executable file
2
bypass.h
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
2
libbp_sd.h
Normal file → Executable file
2
libbp_sd.h
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
/**************************************************************************
|
||||
|
||||
Copyright (c) 2005-2013, Silicom
|
||||
Copyright (c) 2006-2013, Silicom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
290
license
290
license
|
@ -1,290 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
|
0
readme.txt
Normal file → Executable file
0
readme.txt
Normal file → Executable file
77
release.txt
Normal file → Executable file
77
release.txt
Normal file → Executable file
|
@ -1,7 +1,80 @@
|
|||
Release Notes
|
||||
Silicom Linux Bypass-SD Control Utility
|
||||
Version 5.0.49
|
||||
17/03/2013
|
||||
Version 5.0.65
|
||||
09/06/2014
|
||||
|
||||
v5.0.65
|
||||
- Fixed problem with event notifier
|
||||
(kernel 3.13 problem)
|
||||
|
||||
|
||||
v5.0.64.1
|
||||
- Fixed problem with pci alloc failed
|
||||
devices
|
||||
|
||||
v5.0.64
|
||||
- Added support for
|
||||
PEG2BPFI6-FLXM-SD-RB2
|
||||
|
||||
|
||||
v5.0.63
|
||||
- Added support for
|
||||
PE2G2BPFi35A-SD-RB2
|
||||
PE2G2BPFi35A-LX-SD-RB2
|
||||
PE2G4BPi35LA-SD-RB2
|
||||
PE2G4BPFi35A-SD-RB2
|
||||
PE2G4BPFi35A-LX-SD-RB2
|
||||
PE10G2DBi-SR-SD-RB2
|
||||
PE10G2DBi-LR-SD-RB2
|
||||
PE310G4DBi9-SR-SD-RB2
|
||||
PE310G4DBi9-LR-SD-RB2
|
||||
PE310G4DBi9-T-SD-RB2
|
||||
|
||||
|
||||
v5.0.62
|
||||
- Added support for
|
||||
M1E210G2BPi9-SRD-SD-JP
|
||||
M1E210G2BPi9-SRDSD-JP1
|
||||
M1E210G2BPi9-LRD-SD-JP
|
||||
M1E210G2BPi9-LRDSD-JP1
|
||||
|
||||
|
||||
|
||||
v5.0.61
|
||||
- Added support for PE310G4BPi9SRD, PE310G4BPi9LRD.
|
||||
|
||||
v5.0.60
|
||||
- Fixed support for kernel 3.8.
|
||||
|
||||
v5.0.59
|
||||
- Added support for kernel 3.10.
|
||||
|
||||
v5.0.58
|
||||
- Fixed BP_PROC_SUPPORT flag.
|
||||
|
||||
v5.0.57
|
||||
- Added support for PE210G2BPI9LRD, PE210G2BPI9SRD.
|
||||
|
||||
v5.0.56
|
||||
- Added support for PE210G2BPi40.
|
||||
|
||||
v5.0.55
|
||||
- Added support for PE2G4BPFi35-SD-CS.
|
||||
|
||||
v5.0.54
|
||||
- Changed to BSD license
|
||||
|
||||
v5.0.53
|
||||
- Fixed delay routine.
|
||||
|
||||
v5.0.52
|
||||
- Added support for 3.8.0.
|
||||
|
||||
v5.0.51
|
||||
- Fixed bypass_caps for 82599 group.
|
||||
- Added workaround for abnormal delay issue.
|
||||
- Fixed tpl clean routine.
|
||||
|
||||
v5.0.50
|
||||
- Fixed bypass_caps for sc fiber group.
|
||||
|
||||
|
|
Loading…
Reference in a new issue