mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 08:13:56 -04:00
Device configuration using configfs could be prepared long time prior the driver load. Currently all the xe configfs entries are for things that are important to have in the log if a non-default value is being used. Add a info-level message about that with the individual entries that are different than the default. Based on previous patch by Michal Wajdeczko. Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com> Link: https://lore.kernel.org/r/20250821-psmi-v5-12-34ab7550d3d8@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
#ifndef _XE_CONFIGFS_H_
|
|
#define _XE_CONFIGFS_H_
|
|
|
|
#include <linux/limits.h>
|
|
#include <linux/types.h>
|
|
|
|
struct pci_dev;
|
|
|
|
#if IS_ENABLED(CONFIG_CONFIGFS_FS)
|
|
int xe_configfs_init(void);
|
|
void xe_configfs_exit(void);
|
|
void xe_configfs_check_device(struct pci_dev *pdev);
|
|
bool xe_configfs_get_survivability_mode(struct pci_dev *pdev);
|
|
void xe_configfs_clear_survivability_mode(struct pci_dev *pdev);
|
|
u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev);
|
|
bool xe_configfs_get_psmi_enabled(struct pci_dev *pdev);
|
|
#else
|
|
static inline int xe_configfs_init(void) { return 0; }
|
|
static inline void xe_configfs_exit(void) { }
|
|
static inline void xe_configfs_check_device(struct pci_dev *pdev) { }
|
|
static inline bool xe_configfs_get_survivability_mode(struct pci_dev *pdev) { return false; }
|
|
static inline void xe_configfs_clear_survivability_mode(struct pci_dev *pdev) { }
|
|
static inline u64 xe_configfs_get_engines_allowed(struct pci_dev *pdev) { return U64_MAX; }
|
|
static inline bool xe_configfs_get_psmi_enabled(struct pci_dev *pdev) { return false; }
|
|
#endif
|
|
|
|
#endif
|