Linux Kernel
3.7.1
|
Go to the source code of this file.
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)
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
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)
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)
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)
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)