| 1 |
/* SPDX-License-Identifier: GPL-2.0 */ |
| 2 |
/* Copyright (c) 2023, Intel Corporation. */ |
| 3 |
|
| 4 |
#ifndef _I40E_DEVLINK_H_ |
| 5 |
#define _I40E_DEVLINK_H_ |
| 6 |
|
| 7 |
#include <linux/device.h> |
| 8 |
|
| 9 |
struct i40e_pf; |
| 10 |
|
| 11 |
struct i40e_pf *i40e_alloc_pf(struct device *dev); |
| 12 |
void i40e_free_pf(struct i40e_pf *pf); |
| 13 |
void i40e_devlink_register(struct i40e_pf *pf); |
| 14 |
void i40e_devlink_unregister(struct i40e_pf *pf); |
| 15 |
int i40e_devlink_create_port(struct i40e_pf *pf); |
| 16 |
void i40e_devlink_destroy_port(struct i40e_pf *pf); |
| 17 |
|
| 18 |
#endif /* _I40E_DEVLINK_H_ */ |