mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 22:14:41 +08:00
dce730f178
Add a devlink region for exposing the device's Non Volatime Memory flash contents. Support the recently added .snapshot operation, enabling userspace to request a snapshot of the NVM contents via DEVLINK_CMD_REGION_NEW. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
18 lines
512 B
C
18 lines
512 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2019, Intel Corporation. */
|
|
|
|
#ifndef _ICE_DEVLINK_H_
|
|
#define _ICE_DEVLINK_H_
|
|
|
|
struct ice_pf *ice_allocate_pf(struct device *dev);
|
|
|
|
int ice_devlink_register(struct ice_pf *pf);
|
|
void ice_devlink_unregister(struct ice_pf *pf);
|
|
int ice_devlink_create_port(struct ice_pf *pf);
|
|
void ice_devlink_destroy_port(struct ice_pf *pf);
|
|
|
|
void ice_devlink_init_regions(struct ice_pf *pf);
|
|
void ice_devlink_destroy_regions(struct ice_pf *pf);
|
|
|
|
#endif /* _ICE_DEVLINK_H_ */
|