drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.h
Extension
.h
Size
469 bytes
Lines
17
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __HBG_ETHTOOL_H
#define __HBG_ETHTOOL_H

#include <linux/netdevice.h>

#define HBG_STATS_FIELD_OFF(f) (offsetof(struct hbg_stats, f))
#define HBG_STATS_R(p, offset) (*(u64 *)((u8 *)(p) + (offset)))
#define HBG_STATS_U(p, offset, val) (HBG_STATS_R(p, offset) += (val))

void hbg_ethtool_set_ops(struct net_device *netdev);
void hbg_update_stats(struct hbg_priv *priv);

#endif

Annotation

Implementation Notes