Here is the big set of char/misc and other small driver subsystem changes for 6.7-rc1. Included in here are: - IIO subsystem driver updates and additions (largest part of this pull request) - FPGA subsystem driver updates - Counter subsystem driver updates - ICC subsystem driver updates - extcon subsystem driver updates - mei driver updates and additions - nvmem subsystem driver updates and additions - comedi subsystem dependency fixes - parport driver fixups - cdx subsystem driver and core updates - splice support for /dev/zero and /dev/full - other smaller driver cleanups All of these have been in linux-next for a while with no reported issues. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -----BEGIN PGP SIGNATURE----- iG0EABECAC0WIQT0tgzFv3jCIUoxPcsxR9QN2y37KQUCZUTSzg8cZ3JlZ0Brcm9h aC5jb20ACgkQMUfUDdst+ylH3QCfbZuG8MiglEZUd4slRLUNqcRQ5tQAn1yKpDFo l3KLkxo1UTLMXbJBWe+b =gafK -----END PGP SIGNATURE----- Merge tag 'char-misc-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc Pull char/misc updates from Greg KH: "Here is the big set of char/misc and other small driver subsystem changes for 6.7-rc1. Included in here are: - IIO subsystem driver updates and additions (largest part of this pull request) - FPGA subsystem driver updates - Counter subsystem driver updates - ICC subsystem driver updates - extcon subsystem driver updates - mei driver updates and additions - nvmem subsystem driver updates and additions - comedi subsystem dependency fixes - parport driver fixups - cdx subsystem driver and core updates - splice support for /dev/zero and /dev/full - other smaller driver cleanups All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (326 commits) cdx: add sysfs for subsystem, class and revision cdx: add sysfs for bus reset cdx: add support for bus enable and disable cdx: Register cdx bus as a device on cdx subsystem cdx: Create symbol namespaces for cdx subsystem cdx: Introduce lock to protect controller ops cdx: Remove cdx controller list from cdx bus system dts: ti: k3-am625-beagleplay: Add beaglecc1352 greybus: Add BeaglePlay Linux Driver dt-bindings: net: Add ti,cc1352p7 dt-bindings: eeprom: at24: allow NVMEM cells based on old syntax dt-bindings: nvmem: SID: allow NVMEM cells based on old syntax Revert "nvmem: add new config option" MAINTAINERS: coresight: Add missing Coresight files misc: pci_endpoint_test: Add deviceID for J721S2 PCIe EP device support firmware: xilinx: Move EXPORT_SYMBOL_GPL next to zynqmp_pm_feature definition uacce: make uacce_class constant ocxl: make ocxl_class constant cxl: make cxl_class constant misc: phantom: make phantom_class constant ...
93 lines
2.5 KiB
C
93 lines
2.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* Header file for MCDI FW interaction for CDX bus.
|
|
*
|
|
* Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
|
|
*/
|
|
|
|
#ifndef CDX_MCDI_FUNCTIONS_H
|
|
#define CDX_MCDI_FUNCTIONS_H
|
|
|
|
#include "mcdi.h"
|
|
#include "../cdx.h"
|
|
|
|
/**
|
|
* cdx_mcdi_get_num_buses - Get the total number of buses on
|
|
* the controller.
|
|
* @cdx: pointer to MCDI interface.
|
|
*
|
|
* Return: total number of buses available on the controller,
|
|
* <0 on failure
|
|
*/
|
|
int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx);
|
|
|
|
/**
|
|
* cdx_mcdi_get_num_devs - Get the total number of devices on
|
|
* a particular bus of the controller.
|
|
* @cdx: pointer to MCDI interface.
|
|
* @bus_num: Bus number.
|
|
*
|
|
* Return: total number of devices available on the bus, <0 on failure
|
|
*/
|
|
int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num);
|
|
|
|
/**
|
|
* cdx_mcdi_get_dev_config - Get configuration for a particular
|
|
* bus_num:dev_num
|
|
* @cdx: pointer to MCDI interface.
|
|
* @bus_num: Bus number.
|
|
* @dev_num: Device number.
|
|
* @dev_params: Pointer to cdx_dev_params, this is populated by this
|
|
* device with the configuration corresponding to the provided
|
|
* bus_num:dev_num.
|
|
*
|
|
* Return: 0 total number of devices available on the bus, <0 on failure
|
|
*/
|
|
int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx,
|
|
u8 bus_num, u8 dev_num,
|
|
struct cdx_dev_params *dev_params);
|
|
|
|
/**
|
|
* cdx_mcdi_bus_enable - Enable CDX bus represented by bus_num
|
|
* @cdx: pointer to MCDI interface.
|
|
* @bus_num: Bus number.
|
|
*
|
|
* Return: 0 on success, <0 on failure
|
|
*/
|
|
int cdx_mcdi_bus_enable(struct cdx_mcdi *cdx, u8 bus_num);
|
|
|
|
/**
|
|
* cdx_mcdi_bus_disable - Disable CDX bus represented by bus_num
|
|
* @cdx: pointer to MCDI interface.
|
|
* @bus_num: Bus number.
|
|
*
|
|
* Return: 0 on success, <0 on failure
|
|
*/
|
|
int cdx_mcdi_bus_disable(struct cdx_mcdi *cdx, u8 bus_num);
|
|
|
|
/**
|
|
* cdx_mcdi_reset_device - Reset cdx device represented by bus_num:dev_num
|
|
* @cdx: pointer to MCDI interface.
|
|
* @bus_num: Bus number.
|
|
* @dev_num: Device number.
|
|
*
|
|
* Return: 0 on success, <0 on failure
|
|
*/
|
|
int cdx_mcdi_reset_device(struct cdx_mcdi *cdx,
|
|
u8 bus_num, u8 dev_num);
|
|
|
|
/**
|
|
* cdx_mcdi_bus_master_enable - Set/Reset bus mastering for cdx device
|
|
* represented by bus_num:dev_num
|
|
* @cdx: pointer to MCDI interface.
|
|
* @bus_num: Bus number.
|
|
* @dev_num: Device number.
|
|
* @enable: Enable bus mastering if set, disable otherwise.
|
|
*
|
|
* Return: 0 on success, <0 on failure
|
|
*/
|
|
int cdx_mcdi_bus_master_enable(struct cdx_mcdi *cdx, u8 bus_num,
|
|
u8 dev_num, bool enable);
|
|
|
|
#endif /* CDX_MCDI_FUNCTIONS_H */
|