drivers/net/ethernet/intel/ice/ice_sf_eth.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/intel/ice/ice_sf_eth.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/intel/ice/ice_sf_eth.h
Extension
.h
Size
785 bytes
Lines
34
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

struct ice_sf_dev {
	struct auxiliary_device adev;
	struct ice_dynamic_port *dyn_port;
	struct ice_sf_priv *priv;
};

struct ice_sf_priv {
	struct ice_sf_dev *dev;
	struct devlink_port devlink_port;
};

static inline struct
ice_sf_dev *ice_adev_to_sf_dev(struct auxiliary_device *adev)
{
	return container_of(adev, struct ice_sf_dev, adev);
}

int ice_sf_driver_register(void);
void ice_sf_driver_unregister(void);

int ice_sf_eth_activate(struct ice_dynamic_port *dyn_port,
			struct netlink_ext_ack *extack);
void ice_sf_eth_deactivate(struct ice_dynamic_port *dyn_port);
#endif /* _ICE_SF_ETH_H_ */

Annotation

Implementation Notes