drivers/net/dsa/xrs700x/xrs700x.h
Source file repositories/reference/linux-study-clean/drivers/net/dsa/xrs700x/xrs700x.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/dsa/xrs700x/xrs700x.h- Extension
.h- Size
- 1176 bytes
- Lines
- 44
- 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/device.hlinux/mutex.hlinux/regmap.hlinux/workqueue.hlinux/u64_stats_sync.huapi/linux/if_link.h
Detected Declarations
struct xrs700x_infostruct xrs700x_portstruct xrs700x
Annotated Snippet
struct xrs700x_info {
unsigned int id;
const char *name;
size_t num_ports;
};
extern const struct xrs700x_info xrs7003e_info;
extern const struct xrs700x_info xrs7003f_info;
extern const struct xrs700x_info xrs7004e_info;
extern const struct xrs700x_info xrs7004f_info;
struct xrs700x_port {
struct mutex mib_mutex; /* protects mib_data */
u64 *mib_data;
struct rtnl_link_stats64 stats64;
struct u64_stats_sync syncp;
};
struct xrs700x {
struct dsa_switch *ds;
struct device *dev;
void *priv;
struct regmap *regmap;
struct regmap_field *ps_forward;
struct regmap_field *ps_management;
struct regmap_field *ps_sel_speed;
struct regmap_field *ps_cur_speed;
struct delayed_work mib_work;
struct xrs700x_port *ports;
};
struct xrs700x *xrs700x_switch_alloc(struct device *base, void *devpriv);
int xrs700x_switch_register(struct xrs700x *priv);
void xrs700x_switch_remove(struct xrs700x *priv);
void xrs700x_switch_shutdown(struct xrs700x *priv);
Annotation
- Immediate include surface: `linux/device.h`, `linux/mutex.h`, `linux/regmap.h`, `linux/workqueue.h`, `linux/u64_stats_sync.h`, `uapi/linux/if_link.h`.
- Detected declarations: `struct xrs700x_info`, `struct xrs700x_port`, `struct xrs700x`.
- 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.