2019-06-04 16:11:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2017-11-02 03:25:27 +08:00
|
|
|
/*
|
|
|
|
* Dell WMI descriptor driver
|
|
|
|
*
|
|
|
|
* Copyright (c) 2017 Dell Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DELL_WMI_DESCRIPTOR_H_
|
|
|
|
#define _DELL_WMI_DESCRIPTOR_H_
|
|
|
|
|
|
|
|
#include <linux/wmi.h>
|
|
|
|
|
2017-11-10 01:49:10 +08:00
|
|
|
/* possible return values:
|
|
|
|
* -ENODEV: Descriptor GUID missing from WMI bus
|
|
|
|
* -EPROBE_DEFER: probing for dell-wmi-descriptor not yet run
|
|
|
|
* 0: valid descriptor, successfully probed
|
|
|
|
* < 0: invalid descriptor, don't probe dependent devices
|
|
|
|
*/
|
|
|
|
int dell_wmi_get_descriptor_valid(void);
|
2017-11-02 03:25:27 +08:00
|
|
|
|
|
|
|
bool dell_wmi_get_interface_version(u32 *version);
|
|
|
|
bool dell_wmi_get_size(u32 *size);
|
2017-11-17 12:13:12 +08:00
|
|
|
bool dell_wmi_get_hotfix(u32 *hotfix);
|
2017-11-02 03:25:27 +08:00
|
|
|
|
|
|
|
#endif
|