e1000_erase_...bank_ich8lan(9)
๐ e1000_erase_flash_bank_ich8lan โ the manual page bestie
okay so this is a page from the Kernel API Manual, and it's about e1000_erase_flash_bank_ich8lan. no cap, it does exactly one thing and it does it slayfully: it wipes a whole 4k bank of NVM. let's get into it ๐ซถ
โจ NAME โจ
e1000_erase_flash_bank_ich8lan โ literally just "Erase a bank (4k) from NVM". that's the whole vibe. one job, iconic. ๐
๐ธ SYNOPSIS ๐ธ
s32 e1000_erase_flash_bank_ich8lan (struct e1000_hw *hw , u32 bank );
returns an s32, takes your hw pointer and the bank number, and goes to town. that's it, that's the function ๐
๐ฆ ARGUMENTS ๐ฆ
hwโ pointer to theHWstructure. you know the one. the big struct. the main character of every e1000e function honestly ๐bankโ0for the first bank,1for the second bank, etc. zero-indexed bestie, so don't come at it with a1expecting the first one, you will be off by one ๐ญ
๐ฅ DESCRIPTION ๐ฅ
So it erases the bank you specified. each bank is a 4k block โ as in 4096 bytes of flash, gone, poof, bye ๐
banks are 0 based (already said it, saying it again, it matters). and the mapping is:
bank N is at 4096 * N + flash_reg_addr.
so like, bank 0 starts at flash_reg_addr, bank 1 starts at 4096 + flash_reg_addr, bank 2 at 8192 + flash_reg_addr, you get the picture, the math is mathing ๐งฎโจ
ngl that's the entire description. she's concise. she's efficient. we respect her.
๐ SEE ALSO ๐
okay this list is long long, but every single one of these is fam and they all live in the same file, so buckle up buttercup ๐
The kernel file: ./drivers/net/ethernet/intel/e1000e/ich8lan.c
e1000_phy_is_accessible_pchlan(9)e1000_toggle_lanphypc_pch_lpt(9)e1000_reconfigure_k1_params(9)e1000_init_phy_workarounds_pchlan(9)e1000_init_phy_params_pchlan(9)e1000_init_phy_params_ich8lan(9)e1000_init_nvm_params_ich8lan(9)e1000_init_mac_params_ich8lan(9)__e1000_access_emi_reg_locked(9)e1000_read_emi_reg_locked(9)e1000_write_emi_reg_locked(9)e1000_set_eee_pchlan(9)e1000_k1_workaround_lpt_lp(9)e1000_platform_pm_pch_lpt(9)e1000e_force_smbus(9)e1000_enable_ulp_lpt_lp(9)e1000_disable_ulp_lpt_lp(9)e1000_check_for_copper_link_ich8lan(9)e1000_acquire_nvm_ich8lan(9)e1000_release_nvm_ich8lan(9)e1000_acquire_swflag_ich8lan(9)e1000_release_swflag_ich8lan(9)e1000_check_mng_mode_ich8lan(9)e1000_check_mng_mode_pchlan(9)e1000_rar_set_pch2lan(9)e1000_rar_get_count_pch_lpt(9)e1000_rar_set_pch_lpt(9)e1000_check_reset_block_ich8lan(9)e1000_write_smbus_addr(9)e1000_sw_lcd_config_ich8lan(9)e1000_k1_gig_workaround_hv(9)e1000_configure_k1_ich8lan(9)e1000_oem_bits_config_ich8lan(9)e1000_set_mdio_slow_mode_hv(9)e1000_hv_phy_workarounds_ich8lan(9)e1000_copy_rx_addrs_to_phy_ich8lan(9)e1000_lv_jumbo_workaround_ich8lan(9)e1000_lv_phy_workarounds_ich8lan(9)e1000_k1_workaround_lv(9)e1000_gate_hw_phy_config_ich8lan(9)e1000_lan_init_done_ich8lan(9)e1000_post_phy_reset_ich8lan(9)e1000_phy_hw_reset_ich8lan(9)e1000_set_lplu_state_pchlan(9)e1000_set_d0_lplu_state_ich8lan(9)e1000_set_d3_lplu_state_ich8lan(9)e1000_valid_nvm_bank_detect_ich8lan(9)e1000_read_nvm_spt(9)e1000_read_nvm_ich8lan(9)e1000_flash_cycle_init_ich8lan(9)e1000_flash_cycle_ich8lan(9)e1000_read_flash_dword_ich8lan(9)e1000_read_flash_word_ich8lan(9)e1000_read_flash_byte_ich8lan(9)e1000_read_flash_data_ich8lan(9)e1000_read_flash_data32_ich8lan(9)e1000_write_nvm_ich8lan(9)e1000_update_nvm_checksum_spt(9)e1000_update_nvm_checksum_ich8lan(9)e1000_validate_nvm_checksum_ich8lan(9)e1000e_write_protect_nvm_ich8lan(9)e1000_write_flash_data_ich8lan(9)e1000_write_flash_data32_ich8lan(9)e1000_write_flash_byte_ich8lan(9)e1000_retry_write_flash_dword_ich8lan(9)e1000_retry_write_flash_byte_ich8lan(9)e1000_valid_led_default_ich8lan(9)e1000_id_led_init_pchlan(9)e1000_get_bus_info_ich8lan(9)e1000_reset_hw_ich8lan(9)e1000_init_hw_ich8lan(9)e1000_initialize_hw_bits_ich8lan(9)e1000_setup_link_ich8lan(9)e1000_setup_copper_link_ich8lan(9)e1000_setup_copper_link_pch_lpt(9)e1000_get_link_up_info_ich8lan(9)e1000_kmrn_lock_loss_workaround_ich8lan(9)e1000e_set_kmrn_lock_loss_workaround_ich8lan(9)e1000e_igp3_phy_powerdown_workaround_ich8lan(9)e1000e_gig_downshift_workaround_ich8lan(9)e1000_suspend_workarounds_ich8lan(9)e1000_resume_workarounds_pchlan(9)e1000_cleanup_led_ich8lan(9)e1000_led_on_ich8lan(9)e1000_led_off_ich8lan(9)e1000_setup_led_pchlan(9)e1000_cleanup_led_pchlan(9)e1000_led_on_pchlan(9)e1000_led_off_pchlan(9)e1000_get_cfg_done_ich8lan(9)e1000_power_down_phy_copper_ich8lan(9)e1000_clear_hw_cntrs_ich8lan(9)
like, ninety-something functions. she knows everybody. the social butterfly of ich8lan.c fr fr ๐ฆ๐
and that's the page!! sign-off time: this lil beauty comes from ./drivers/net/ethernet/intel/e... and it's dated October 2026 ๐ธ go erase a bank responsibly bestie, and remember โ banks are 0 based, iykyk ๐
โจ
๐ฆ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms