drivers/net/dsa/ocelot/felix_vsc9959.c
Source file repositories/reference/linux-study-clean/drivers/net/dsa/ocelot/felix_vsc9959.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/dsa/ocelot/felix_vsc9959.c- Extension
.c- Size
- 82100 bytes
- Lines
- 2758
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/fsl/enetc_mdio.hsoc/mscc/ocelot_qsys.hsoc/mscc/ocelot_vcap.hsoc/mscc/ocelot_ana.hsoc/mscc/ocelot_dev.hsoc/mscc/ocelot_ptp.hsoc/mscc/ocelot_sys.hnet/tc_act/tc_gate.hsoc/mscc/ocelot.hlinux/dsa/ocelot.hlinux/pcs-lynx.hnet/pkt_sched.hlinux/iopoll.hlinux/mdio.hlinux/of.hlinux/pci.hlinux/time.hfelix.h
Detected Declarations
struct felix_streamstruct felix_stream_filter_countersstruct felix_stream_filterstruct felix_stream_gatestruct felix_stream_gate_entryfunction vsc9959_gcb_soft_rst_statusfunction vsc9959_sys_ram_init_statusfunction vsc9959_resetfunction vsc9959_wm_encfunction vsc9959_wm_decfunction vsc9959_wm_statfunction vsc9959_mdio_bus_allocfunction vsc9959_mdio_bus_freefunction vsc9959_tas_remaining_gate_len_psfunction vsc9959_tas_min_gate_lengthsfunction vsc9959_port_qmaxsdu_setfunction vsc9959_port_qmaxsdu_getfunction vsc9959_tas_tc_max_sdufunction vsc9959_sched_speed_setfunction vsc9959_new_base_timefunction vsc9959_tas_read_cfg_statusfunction vsc9959_tas_gcl_setfunction vsc9959_qos_port_tas_setfunction vsc9959_tas_clock_adjustfunction vsc9959_qos_port_cbs_setfunction vsc9959_qos_query_capsfunction vsc9959_qos_port_mqpriofunction vsc9959_port_setup_tcfunction vsc9959_stream_identifyfunction vsc9959_mact_stream_setfunction vsc9959_stream_table_lookupfunction vsc9959_stream_table_addfunction vsc9959_stream_table_getfunction vsc9959_stream_table_delfunction vsc9959_sfi_access_statusfunction vsc9959_psfp_sfi_setfunction vsc9959_psfp_sfidmask_setfunction vsc9959_psfp_sfi_list_addfunction vsc9959_psfp_sfi_table_addfunction list_for_each_safefunction vsc9959_psfp_sfi_table_add2function list_for_each_safefunction vsc9959_psfp_sfi_table_getfunction vsc9959_psfp_sfi_table_delfunction list_for_each_entry_safefunction vsc9959_psfp_parse_gatefunction vsc9959_sgi_cfg_statusfunction vsc9959_psfp_sgi_set
Annotated Snippet
static struct pci_driver felix_vsc9959_pci_driver = {
.name = "mscc_felix",
.id_table = felix_ids,
.probe = felix_pci_probe,
.remove = felix_pci_remove,
.shutdown = felix_pci_shutdown,
};
module_pci_driver(felix_vsc9959_pci_driver);
MODULE_DESCRIPTION("Felix Switch driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/fsl/enetc_mdio.h`, `soc/mscc/ocelot_qsys.h`, `soc/mscc/ocelot_vcap.h`, `soc/mscc/ocelot_ana.h`, `soc/mscc/ocelot_dev.h`, `soc/mscc/ocelot_ptp.h`, `soc/mscc/ocelot_sys.h`, `net/tc_act/tc_gate.h`.
- Detected declarations: `struct felix_stream`, `struct felix_stream_filter_counters`, `struct felix_stream_filter`, `struct felix_stream_gate`, `struct felix_stream_gate_entry`, `function vsc9959_gcb_soft_rst_status`, `function vsc9959_sys_ram_init_status`, `function vsc9959_reset`, `function vsc9959_wm_enc`, `function vsc9959_wm_dec`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.