Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/ice_lib.h
Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | enum ice_state { | ||||
ICE_STATE_RESET_FAILED, | ICE_STATE_RESET_FAILED, | ||||
ICE_STATE_DRIVER_INITIALIZED, | ICE_STATE_DRIVER_INITIALIZED, | ||||
ICE_STATE_NO_MEDIA, | ICE_STATE_NO_MEDIA, | ||||
ICE_STATE_RECOVERY_MODE, | ICE_STATE_RECOVERY_MODE, | ||||
ICE_STATE_ROLLBACK_MODE, | ICE_STATE_ROLLBACK_MODE, | ||||
ICE_STATE_LINK_STATUS_REPORTED, | ICE_STATE_LINK_STATUS_REPORTED, | ||||
ICE_STATE_DETACHING, | ICE_STATE_DETACHING, | ||||
ICE_STATE_LINK_DEFAULT_OVERRIDE_PENDING, | ICE_STATE_LINK_DEFAULT_OVERRIDE_PENDING, | ||||
ICE_STATE_LLDP_RX_FLTR_FROM_DRIVER, | |||||
/* This entry must be last */ | /* This entry must be last */ | ||||
ICE_STATE_LAST, | ICE_STATE_LAST, | ||||
}; | }; | ||||
/* Functions for setting and checking driver state. Note the functions take | /* Functions for setting and checking driver state. Note the functions take | ||||
* bit positions, not bitmasks. The atomic_testandset_32 and | * bit positions, not bitmasks. The atomic_testandset_32 and | ||||
* atomic_testandclear_32 operations require bit positions, while the | * atomic_testandclear_32 operations require bit positions, while the | ||||
* atomic_set_32 and atomic_clear_32 require bitmasks. This can easily lead to | * atomic_set_32 and atomic_clear_32 require bitmasks. This can easily lead to | ||||
▲ Show 20 Lines • Show All 264 Lines • ▼ Show 20 Lines | |||||
void ice_apply_saved_phy_cfg(struct ice_softc *sc); | void ice_apply_saved_phy_cfg(struct ice_softc *sc); | ||||
void ice_set_link_management_mode(struct ice_softc *sc); | void ice_set_link_management_mode(struct ice_softc *sc); | ||||
int ice_module_event_handler(module_t mod, int what, void *arg); | int ice_module_event_handler(module_t mod, int what, void *arg); | ||||
int ice_handle_nvm_access_ioctl(struct ice_softc *sc, struct ifdrv *ifd); | int ice_handle_nvm_access_ioctl(struct ice_softc *sc, struct ifdrv *ifd); | ||||
int ice_handle_i2c_req(struct ice_softc *sc, struct ifi2creq *req); | int ice_handle_i2c_req(struct ice_softc *sc, struct ifi2creq *req); | ||||
int ice_read_sff_eeprom(struct ice_softc *sc, u16 dev_addr, u16 offset, u8* data, u16 length); | int ice_read_sff_eeprom(struct ice_softc *sc, u16 dev_addr, u16 offset, u8* data, u16 length); | ||||
int ice_alloc_intr_tracking(struct ice_softc *sc); | int ice_alloc_intr_tracking(struct ice_softc *sc); | ||||
void ice_free_intr_tracking(struct ice_softc *sc); | void ice_free_intr_tracking(struct ice_softc *sc); | ||||
void ice_set_default_local_lldp_mib(struct ice_softc *sc); | |||||
#endif /* _ICE_LIB_H_ */ | #endif /* _ICE_LIB_H_ */ |