1
0
Fork 0
linux/drivers/net/ethernet/intel/ice/ice_sf_eth.h
Daniel Baumann 79d69e5050
Adding upstream version 6.12.33.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 12:14:28 +02:00

33 lines
785 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/* Copyright (c) 2024, Intel Corporation. */
#ifndef _ICE_SF_ETH_H_
#define _ICE_SF_ETH_H_
#include <linux/auxiliary_bus.h>
#include "ice.h"
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_ */