1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2015-2016 Freescale Semiconductor, Inc. All rights reserved.
13 #define DPAA2_MC_DPNI_DEVID 7
14 #define DPAA2_MC_DPSECI_DEVID 3
15 #define DPAA2_MC_DPCON_DEVID 5
16 #define DPAA2_MC_DPIO_DEVID 9
17 #define DPAA2_MC_DPBP_DEVID 10
18 #define DPAA2_MC_DPCI_DEVID 11
20 typedef struct fslmc_vfio_device {
21 int fd; /* fslmc root container device ?? */
22 int index; /*index of child object */
23 struct fslmc_vfio_device *child; /* Child object */
26 typedef struct fslmc_vfio_group {
27 int fd; /* /dev/vfio/"groupid" */
29 struct fslmc_vfio_container *container;
31 struct fslmc_vfio_device *vfio_device;
34 typedef struct fslmc_vfio_container {
35 int fd; /* /dev/vfio/vfio */
37 int index; /* index in group list */
38 struct fslmc_vfio_group *group;
39 } fslmc_vfio_container;
41 int rte_dpaa2_intr_enable(struct rte_intr_handle *intr_handle, int index);
42 int rte_dpaa2_intr_disable(struct rte_intr_handle *intr_handle, int index);
44 int rte_dpaa2_vfio_setup_intr(struct rte_intr_handle *intr_handle,
48 int fslmc_vfio_setup_group(void);
49 int fslmc_vfio_process_group(void);
50 char *fslmc_get_container(void);
51 int fslmc_get_container_group(int *gropuid);
52 int rte_fslmc_vfio_dmamap(void);
54 #endif /* _FSLMC_VFIO_H_ */