fallback.h (5d6d1ddd27301dc85b13b794262c8bcececf88f1) | fallback.h (ceb18132248d95b2c68e30c3df78e69175c4452f) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __FIRMWARE_FALLBACK_H 3#define __FIRMWARE_FALLBACK_H 4 5#include <linux/firmware.h> 6#include <linux/device.h> 7 8/** 9 * struct firmware_fallback_config - firmware fallback configuratioon settings 10 * 11 * Helps describe and fine tune the fallback mechanism. 12 * 13 * @force_sysfs_fallback: force the sysfs fallback mechanism to be used 14 * as if one had enabled CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y. | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __FIRMWARE_FALLBACK_H 3#define __FIRMWARE_FALLBACK_H 4 5#include <linux/firmware.h> 6#include <linux/device.h> 7 8/** 9 * struct firmware_fallback_config - firmware fallback configuratioon settings 10 * 11 * Helps describe and fine tune the fallback mechanism. 12 * 13 * @force_sysfs_fallback: force the sysfs fallback mechanism to be used 14 * as if one had enabled CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y. |
15 * Useful to help debug a CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y 16 * functionality on a kernel where that config entry has been disabled. |
|
15 * @old_timeout: for internal use 16 * @loading_timeout: the timeout to wait for the fallback mechanism before 17 * giving up, in seconds. 18 */ 19struct firmware_fallback_config { | 17 * @old_timeout: for internal use 18 * @loading_timeout: the timeout to wait for the fallback mechanism before 19 * giving up, in seconds. 20 */ 21struct firmware_fallback_config { |
20 const bool force_sysfs_fallback; | 22 unsigned int force_sysfs_fallback; |
21 int old_timeout; 22 int loading_timeout; 23}; 24 25#ifdef CONFIG_FW_LOADER_USER_HELPER 26int fw_sysfs_fallback(struct firmware *fw, const char *name, 27 struct device *device, 28 unsigned int opt_flags, --- 33 unchanged lines hidden --- | 23 int old_timeout; 24 int loading_timeout; 25}; 26 27#ifdef CONFIG_FW_LOADER_USER_HELPER 28int fw_sysfs_fallback(struct firmware *fw, const char *name, 29 struct device *device, 30 unsigned int opt_flags, --- 33 unchanged lines hidden --- |