drivers/staging/octeon/ethernet-sgmii.c
Source file repositories/reference/linux-study-clean/drivers/staging/octeon/ethernet-sgmii.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/octeon/ethernet-sgmii.c- Extension
.c- Size
- 627 bytes
- Lines
- 31
- Domain
- Driver Families
- Bucket
- drivers/staging
- 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/phy.hlinux/kernel.hlinux/netdevice.hlinux/ratelimit.hnet/dst.hocteon-ethernet.hethernet-defines.hethernet-util.hethernet-mdio.h
Detected Declarations
function Copyrightfunction cvm_oct_sgmii_init
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* This file is based on code from OCTEON SDK by Cavium Networks.
*
* Copyright (c) 2003-2007 Cavium Networks
*/
#include <linux/phy.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/ratelimit.h>
#include <net/dst.h>
#include "octeon-ethernet.h"
#include "ethernet-defines.h"
#include "ethernet-util.h"
#include "ethernet-mdio.h"
int cvm_oct_sgmii_open(struct net_device *dev)
{
return cvm_oct_common_open(dev, cvm_oct_link_poll);
}
int cvm_oct_sgmii_init(struct net_device *dev)
{
cvm_oct_common_init(dev);
/* FIXME: Need autoneg logic */
return 0;
}
Annotation
- Immediate include surface: `linux/phy.h`, `linux/kernel.h`, `linux/netdevice.h`, `linux/ratelimit.h`, `net/dst.h`, `octeon-ethernet.h`, `ethernet-defines.h`, `ethernet-util.h`.
- Detected declarations: `function Copyright`, `function cvm_oct_sgmii_init`.
- Atlas domain: Driver Families / drivers/staging.
- 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.