mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
Check correctness of the wedged_mode parameter input to ensure only supported values are accepted. Additionally, replace magic numbers with a clearly defined enum. Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20260107174741.29163-2-lukasz.laguna@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
32 lines
548 B
C
32 lines
548 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_MODULE_H_
|
|
#define _XE_MODULE_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
/* Module modprobe variables */
|
|
struct xe_modparam {
|
|
bool force_execlist;
|
|
bool probe_display;
|
|
u32 force_vram_bar_size;
|
|
int guc_log_level;
|
|
char *guc_firmware_path;
|
|
char *huc_firmware_path;
|
|
char *gsc_firmware_path;
|
|
char *force_probe;
|
|
#ifdef CONFIG_PCI_IOV
|
|
unsigned int max_vfs;
|
|
#endif
|
|
unsigned int wedged_mode;
|
|
u32 svm_notifier_size;
|
|
};
|
|
|
|
extern struct xe_modparam xe_modparam;
|
|
|
|
#endif
|
|
|