FreeBSD kernel IXGBE device code
|
#include "ixgbe.h"
Go to the source code of this file.
Functions | |
static void | ixgbe_bypass_mutex_enter (struct ixgbe_softc *sc) |
static void | ixgbe_bypass_mutex_clear (struct ixgbe_softc *sc) |
static void | ixgbe_bypass_wd_mutex_enter (struct ixgbe_softc *sc) |
static void | ixgbe_bypass_wd_mutex_clear (struct ixgbe_softc *sc) |
static void | ixgbe_get_bypass_time (u32 *year, u32 *sec) |
static int | ixgbe_bp_version (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_set_state (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_timeout (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_main_on (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_main_off (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_aux_on (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_aux_off (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_wd_set (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_wd_reset (SYSCTL_HANDLER_ARGS) |
static int | ixgbe_bp_log (SYSCTL_HANDLER_ARGS) |
void | ixgbe_bypass_init (struct ixgbe_softc *sc) |
|
static |
Definition at line 387 of file if_bypass.c.
References BYPASS_AUX_OFF_M, BYPASS_AUX_OFF_SHIFT, BYPASS_BYPASS, BYPASS_ISOLATE, BYPASS_NOP, BYPASS_NORM, BYPASS_PAGE_CTL0, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, ixgbe_mac_info::ops, and usec_delay.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 345 of file if_bypass.c.
References BYPASS_AUX_ON_M, BYPASS_AUX_ON_SHIFT, BYPASS_BYPASS, BYPASS_ISOLATE, BYPASS_NOP, BYPASS_NORM, BYPASS_PAGE_CTL0, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, ixgbe_mac_info::ops, and usec_delay.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 552 of file if_bypass.c.
References ixgbe_bypass_eeprom::actions, ixgbe_softc::bypass, BYPASS_CTL2_DATA_M, BYPASS_CTL2_HEAD_M, BYPASS_CTL2_HEAD_SHIFT, BYPASS_CTL2_OFFSET_M, BYPASS_CTL2_OFFSET_SHIFT, BYPASS_CTL2_RW, BYPASS_EVENT_USR, BYPASS_LOG_ACTION_M, BYPASS_LOG_CLEAR_M, BYPASS_LOG_EVENT_M, BYPASS_LOG_EVENT_SHIFT, BYPASS_LOG_TIME_M, BYPASS_MAX_LOGS, BYPASS_PAGE_CTL2, ixgbe_mac_operations::bypass_rd_eep, ixgbe_mac_operations::bypass_rw, BYPASS_WE, ixgbe_bypass_eeprom::clear_off, ixgbe_softc::dev, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_get_bypass_time(), LEAP_YR, ixgbe_bp_data::log, ixgbe_bypass_eeprom::logs, ixgbe_hw::mac, msec_delay, ixgbe_mac_info::ops, SEC_PER_DAY, and usec_delay.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 303 of file if_bypass.c.
References BYPASS_BYPASS, BYPASS_ISOLATE, BYPASS_MAIN_OFF_M, BYPASS_MAIN_OFF_SHIFT, BYPASS_NOP, BYPASS_NORM, BYPASS_PAGE_CTL0, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, ixgbe_mac_info::ops, and usec_delay.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 261 of file if_bypass.c.
References BYPASS_BYPASS, BYPASS_ISOLATE, BYPASS_MAIN_ON_M, BYPASS_MAIN_ON_SHIFT, BYPASS_NOP, BYPASS_NORM, BYPASS_PAGE_CTL0, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, ixgbe_mac_info::ops, and usec_delay.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 156 of file if_bypass.c.
References BYPASS_AUTO, BYPASS_BYPASS, BYPASS_ISOLATE, BYPASS_MODE_OFF_M, BYPASS_NORM, BYPASS_PAGE_CTL0, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, BYPASS_STATUS_OFF_SHIFT, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, ixgbe_mac_info::ops, and usec_delay.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 218 of file if_bypass.c.
References BYPASS_BYPASS, BYPASS_ISOLATE, BYPASS_NOP, BYPASS_NORM, BYPASS_PAGE_CTL0, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, BYPASS_WDTIMEOUT_M, BYPASS_WDTIMEOUT_SHIFT, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, ixgbe_mac_info::ops, and usec_delay.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 116 of file if_bypass.c.
References BYPASS_CTL2_DATA_M, BYPASS_CTL2_OFFSET_M, BYPASS_CTL2_OFFSET_SHIFT, BYPASS_EEPROM_VER_ADD, BYPASS_PAGE_CTL2, ixgbe_mac_operations::bypass_rw, BYPASS_WE, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, msec_delay, and ixgbe_mac_info::ops.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 505 of file if_bypass.c.
References BYPASS_CTL1_OFFTRST, BYPASS_CTL1_TIME_M, BYPASS_CTL1_VALID, BYPASS_CTL1_WDT_PET, BYPASS_PAGE_CTL1, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_valid_rd, BYPASS_WE, ixgbe_softc::hw, IXGBE_BYPASS_FW_WRITE_FAILURE, ixgbe_bypass_wd_mutex_clear(), ixgbe_bypass_wd_mutex_enter(), IXGBE_ERR_INVALID_ARGUMENT, ixgbe_get_bypass_time(), ixgbe_hw::mac, and ixgbe_mac_info::ops.
Referenced by ixgbe_bypass_init().
|
static |
Definition at line 434 of file if_bypass.c.
References BYPASS_PAGE_CTL0, ixgbe_mac_operations::bypass_rw, ixgbe_mac_operations::bypass_set, BYPASS_WDT_16, BYPASS_WDT_1_5, BYPASS_WDT_2, BYPASS_WDT_3, BYPASS_WDT_32, BYPASS_WDT_4, BYPASS_WDT_8, BYPASS_WDT_ENABLE_M, BYPASS_WDT_ENABLE_SHIFT, BYPASS_WDT_TIME_SHIFT, BYPASS_WDT_VALUE_M, ixgbe_softc::hw, ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), ixgbe_hw::mac, and ixgbe_mac_info::ops.
Referenced by ixgbe_bypass_init().
void ixgbe_bypass_init | ( | struct ixgbe_softc * | sc | ) |
Definition at line 714 of file if_bypass.c.
References BYPASS_CTL1_OFFTRST, BYPASS_CTL1_OFFTRST_M, BYPASS_CTL1_TIME_M, BYPASS_CTL1_VALID, BYPASS_CTL1_VALID_M, BYPASS_PAGE_CTL1, ixgbe_mac_operations::bypass_set, ixgbe_softc::dev, ixgbe_softc::feat_cap, ixgbe_softc::feat_en, ixgbe_softc::hw, ixgbe_bp_aux_off(), ixgbe_bp_aux_on(), ixgbe_bp_log(), ixgbe_bp_main_off(), ixgbe_bp_main_on(), ixgbe_bp_set_state(), ixgbe_bp_timeout(), ixgbe_bp_version(), ixgbe_bp_wd_reset(), ixgbe_bp_wd_set(), ixgbe_bypass_mutex_clear(), ixgbe_bypass_mutex_enter(), IXGBE_FEATURE_BYPASS, ixgbe_get_bypass_time(), ixgbe_hw::mac, and ixgbe_mac_info::ops.
Referenced by ixgbe_if_attach_post().
|
static |
Definition at line 59 of file if_bypass.c.
References ixgbe_softc::bypass, ixgbe_bp_data::high, ixgbe_bp_data::low, and usec_delay.
Referenced by ixgbe_bp_aux_off(), ixgbe_bp_aux_on(), ixgbe_bp_log(), ixgbe_bp_main_off(), ixgbe_bp_main_on(), ixgbe_bp_set_state(), ixgbe_bp_timeout(), ixgbe_bp_version(), ixgbe_bp_wd_set(), and ixgbe_bypass_init().
|
static |
Definition at line 46 of file if_bypass.c.
References ixgbe_softc::bypass, ixgbe_bp_data::high, ixgbe_bp_data::low, and usec_delay.
Referenced by ixgbe_bp_aux_off(), ixgbe_bp_aux_on(), ixgbe_bp_log(), ixgbe_bp_main_off(), ixgbe_bp_main_on(), ixgbe_bp_set_state(), ixgbe_bp_timeout(), ixgbe_bp_version(), ixgbe_bp_wd_set(), and ixgbe_bypass_init().
|
static |
Definition at line 85 of file if_bypass.c.
References ixgbe_softc::bypass, ixgbe_bp_data::high, and usec_delay.
Referenced by ixgbe_bp_wd_reset().
|
static |
Definition at line 74 of file if_bypass.c.
References ixgbe_softc::bypass, ixgbe_bp_data::high, and usec_delay.
Referenced by ixgbe_bp_wd_reset().
Definition at line 96 of file if_bypass.c.
References SEC_THIS_YEAR.
Referenced by ixgbe_bp_log(), ixgbe_bp_wd_reset(), and ixgbe_bypass_init().