Lines Matching +full:versal +full:- +full:net +full:- +full:cdx

1 /* SPDX-License-Identifier: GPL-2.0
3 * Header file for MCDI FW interaction for CDX bus.
5 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
12 #include "../cdx.h"
15 * cdx_mcdi_get_num_buses - Get the total number of buses on
17 * @cdx: pointer to MCDI interface.
22 int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx);
25 * cdx_mcdi_get_num_devs - Get the total number of devices on
27 * @cdx: pointer to MCDI interface.
32 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num);
35 * cdx_mcdi_get_dev_config - Get configuration for a particular
37 * @cdx: pointer to MCDI interface.
46 int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx,
51 * cdx_mcdi_bus_enable - Enable CDX bus represented by bus_num
52 * @cdx: pointer to MCDI interface.
57 int cdx_mcdi_bus_enable(struct cdx_mcdi *cdx, u8 bus_num);
60 * cdx_mcdi_bus_disable - Disable CDX bus represented by bus_num
61 * @cdx: pointer to MCDI interface.
66 int cdx_mcdi_bus_disable(struct cdx_mcdi *cdx, u8 bus_num);
69 * cdx_mcdi_write_msi - Write MSI configuration for CDX device
70 * @cdx: pointer to MCDI interface.
73 * @msi_vector: Device-relative MSI vector number.
79 * @msi_data: MSI data to be used by the hardware. On versal-net, only the
80 * lower 16-bits are used, the remaining bits are ignored and should be
85 int cdx_mcdi_write_msi(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num,
89 * cdx_mcdi_reset_device - Reset cdx device represented by bus_num:dev_num
90 * @cdx: pointer to MCDI interface.
96 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx,
100 * cdx_mcdi_bus_master_enable - Set/Reset bus mastering for cdx device
102 * @cdx: pointer to MCDI interface.
109 int cdx_mcdi_bus_master_enable(struct cdx_mcdi *cdx, u8 bus_num,
113 * cdx_mcdi_msi_enable - Enable/Disable MSIs for cdx device represented
115 * @cdx: pointer to MCDI interface.
122 int cdx_mcdi_msi_enable(struct cdx_mcdi *cdx, u8 bus_num,