include/linux/smscphy.h
Source file repositories/reference/linux-study-clean/include/linux/smscphy.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/smscphy.h- Extension
.h- Size
- 3178 bytes
- Lines
- 76
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __LINUX_SMSCPHY_H__
#define __LINUX_SMSCPHY_H__
#define MII_LAN83C185_ISF 29 /* Interrupt Source Flags */
#define MII_LAN83C185_IM 30 /* Interrupt Mask */
#define MII_LAN83C185_CTRL_STATUS 17 /* Mode/Status Register */
#define MII_LAN83C185_SPECIAL_MODES 18 /* Special Modes Register */
#define MII_LAN83C185_ISF_INT1 (1<<1) /* Auto-Negotiation Page Received */
#define MII_LAN83C185_ISF_INT2 (1<<2) /* Parallel Detection Fault */
#define MII_LAN83C185_ISF_INT3 (1<<3) /* Auto-Negotiation LP Ack */
#define MII_LAN83C185_ISF_INT4 (1<<4) /* Link Down */
#define MII_LAN83C185_ISF_INT5 (1<<5) /* Remote Fault Detected */
#define MII_LAN83C185_ISF_INT6 (1<<6) /* Auto-Negotiation complete */
#define MII_LAN83C185_ISF_INT7 (1<<7) /* ENERGYON */
#define MII_LAN83C185_ISF_INT_ALL (0x0e)
#define MII_LAN83C185_ISF_INT_PHYLIB_EVENTS \
(MII_LAN83C185_ISF_INT6 | MII_LAN83C185_ISF_INT4 | \
MII_LAN83C185_ISF_INT7)
#define MII_LAN83C185_EDPWRDOWN (1 << 13) /* EDPWRDOWN */
#define MII_LAN83C185_ENERGYON (1 << 1) /* ENERGYON */
#define MII_LAN83C185_MODE_MASK 0xE0
#define MII_LAN83C185_MODE_POWERDOWN 0xC0 /* Power Down mode */
#define MII_LAN83C185_MODE_ALL 0xE0 /* All capable mode */
int smsc_phy_config_intr(struct phy_device *phydev);
irqreturn_t smsc_phy_handle_interrupt(struct phy_device *phydev);
int smsc_phy_config_init(struct phy_device *phydev);
int lan87xx_read_status(struct phy_device *phydev);
int smsc_phy_get_tunable(struct phy_device *phydev,
struct ethtool_tunable *tuna, void *data);
int smsc_phy_set_tunable(struct phy_device *phydev,
struct ethtool_tunable *tuna, const void *data);
int smsc_phy_probe(struct phy_device *phydev);
#define MII_LAN874X_PHY_MMD_WOL_WUCSR 0x8010
#define MII_LAN874X_PHY_MMD_WOL_WUF_CFGA 0x8011
#define MII_LAN874X_PHY_MMD_WOL_WUF_CFGB 0x8012
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK0 0x8021
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK1 0x8022
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK2 0x8023
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK3 0x8024
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK4 0x8025
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK5 0x8026
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK6 0x8027
#define MII_LAN874X_PHY_MMD_WOL_WUF_MASK7 0x8028
#define MII_LAN874X_PHY_MMD_WOL_RX_ADDRA 0x8061
#define MII_LAN874X_PHY_MMD_WOL_RX_ADDRB 0x8062
#define MII_LAN874X_PHY_MMD_WOL_RX_ADDRC 0x8063
#define MII_LAN874X_PHY_MMD_MCFGR 0x8064
#define MII_LAN874X_PHY_PME1_SET (2 << 13)
#define MII_LAN874X_PHY_PME2_SET (2 << 11)
#define MII_LAN874X_PHY_PME_SELF_CLEAR BIT(9)
#define MII_LAN874X_PHY_WOL_PFDA_FR BIT(7)
#define MII_LAN874X_PHY_WOL_WUFR BIT(6)
#define MII_LAN874X_PHY_WOL_MPR BIT(5)
#define MII_LAN874X_PHY_WOL_BCAST_FR BIT(4)
#define MII_LAN874X_PHY_WOL_PFDAEN BIT(3)
#define MII_LAN874X_PHY_WOL_WUEN BIT(2)
#define MII_LAN874X_PHY_WOL_MPEN BIT(1)
#define MII_LAN874X_PHY_WOL_BCSTEN BIT(0)
#define MII_LAN874X_PHY_WOL_FILTER_EN BIT(15)
#define MII_LAN874X_PHY_WOL_FILTER_MCASTTEN BIT(9)
#define MII_LAN874X_PHY_WOL_FILTER_BCSTEN BIT(8)
#define MII_LAN874X_PHY_PME_SELF_CLEAR_DELAY 0x1000 /* 81 milliseconds */
#endif /* __LINUX_SMSCPHY_H__ */
Annotation
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
- 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.