26b7dbae67
Add VFIO support for BCMFS PMD. The BCMFS PMD functionality is dependent on the VFIO_PRESENT flag, which gets enabled in the rte_vfio.h. If this flag is not enabled in the compiling platform driver will silently return with error, when executed. Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com> Signed-off-by: Raveendra Padasalagi <raveendra.padasalagi@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
18 lines
356 B
C
18 lines
356 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2020 Broadcom
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef _BCMFS_VFIO_H_
|
|
#define _BCMFS_VFIO_H_
|
|
|
|
/* Attach the bcmfs device to vfio */
|
|
int
|
|
bcmfs_attach_vfio(struct bcmfs_device *dev);
|
|
|
|
/* Release the bcmfs device from vfio */
|
|
void
|
|
bcmfs_release_vfio(struct bcmfs_device *dev);
|
|
|
|
#endif /* _BCMFS_VFIO_H_ */
|