drivers/net/ethernet/ti/netcp_ethss.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/ti/netcp_ethss.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/ti/netcp_ethss.c- Extension
.c- Size
- 108767 bytes
- Lines
- 3880
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/io.hlinux/module.hlinux/of_mdio.hlinux/of_net.hlinux/of_address.hlinux/if_vlan.hlinux/ptp_classify.hlinux/net_tstamp.hlinux/ethtool.hcpsw.hcpsw_ale.hnetcp.hcpts.h
Detected Declarations
struct xgbe_ss_regsstruct xgbe_switch_regsstruct xgbe_port_regsstruct xgbe_host_port_regsstruct xgbe_emac_regsstruct xgbe_host_hw_statsstruct xgbe_hw_statsstruct gbenu_ss_regsstruct gbenu_switch_regsstruct gbenu_port_regsstruct gbenu_host_port_regsstruct gbenu_emac_regsstruct gbenu_hw_statsstruct gbe_ss_regsstruct gbe_ss_regs_ofsstruct gbe_switch_regsstruct gbe_switch_regs_ofsstruct gbe_port_regsstruct gbe_port_regs_ofsstruct gbe_host_port_regsstruct gbe_host_port_regs_ofsstruct gbe_emac_regsstruct gbe_emac_regs_ofsstruct gbe_hw_statsstruct ts_ctlstruct gbe_slavestruct gbe_privstruct gbe_intfstruct netcp_ethtool_statfunction keystone_get_drvinfofunction keystone_get_msglevelfunction keystone_set_msglevelfunction keystone_get_stat_stringsfunction keystone_get_sset_countfunction gbe_reset_mod_statsfunction gbe_update_hw_stats_entryfunction gbe_update_statsfunction gbe_stats_mod_visible_ver14function gbe_reset_mod_stats_ver14function gbe_update_stats_ver14function keystone_get_ethtool_statsfunction keystone_get_link_ksettingsfunction keystone_set_link_ksettingsfunction keystone_get_ts_infofunction keystone_get_ts_infofunction gbe_set_slave_macfunction gbe_get_slave_portfunction netcp_ethss_link_state_action
Annotated Snippet
module_init(keystone_gbe_init);
static void __exit keystone_gbe_exit(void)
{
netcp_unregister_module(&gbe_module);
netcp_unregister_module(&xgbe_module);
}
module_exit(keystone_gbe_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("TI NETCP ETHSS driver for Keystone SOCs");
MODULE_AUTHOR("Sandeep Nair <sandeep_n@ti.com");
Annotation
- Immediate include surface: `linux/io.h`, `linux/module.h`, `linux/of_mdio.h`, `linux/of_net.h`, `linux/of_address.h`, `linux/if_vlan.h`, `linux/ptp_classify.h`, `linux/net_tstamp.h`.
- Detected declarations: `struct xgbe_ss_regs`, `struct xgbe_switch_regs`, `struct xgbe_port_regs`, `struct xgbe_host_port_regs`, `struct xgbe_emac_regs`, `struct xgbe_host_hw_stats`, `struct xgbe_hw_stats`, `struct gbenu_ss_regs`, `struct gbenu_switch_regs`, `struct gbenu_port_regs`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.