drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c- Extension
.c- Size
- 2355 bytes
- Lines
- 100
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/etherdevice.hlinux/iopoll.hlinux/pci.h../libwx/wx_type.h../libwx/wx_hw.hngbe_type.hngbe_hw.h
Detected Declarations
function ngbe_eeprom_chksum_hostiffunction ngbe_reset_miscfunction ngbe_sfp_modules_txrx_powerctlfunction ngbe_reset_hw
Annotated Snippet
if (ret) {
wx_err(wx, "Lan reset exceed s maximum times.\n");
return ret;
}
}
ngbe_reset_misc(wx);
wx_clear_hw_cntrs(wx);
/* Store the permanent mac address */
wx_get_mac_addr(wx, wx->mac.perm_addr);
/* reset num_rar_entries to 128 */
wx->mac.num_rar_entries = NGBE_RAR_ENTRIES;
wx_init_rx_addrs(wx);
pci_set_master(wx->pdev);
return 0;
}
Annotation
- Immediate include surface: `linux/etherdevice.h`, `linux/iopoll.h`, `linux/pci.h`, `../libwx/wx_type.h`, `../libwx/wx_hw.h`, `ngbe_type.h`, `ngbe_hw.h`.
- Detected declarations: `function ngbe_eeprom_chksum_hostif`, `function ngbe_reset_misc`, `function ngbe_sfp_modules_txrx_powerctl`, `function ngbe_reset_hw`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.