dell-wmi-descriptor.h 780 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Dell WMI descriptor driver
  3. *
  4. * Copyright (c) 2017 Dell Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef _DELL_WMI_DESCRIPTOR_H_
  11. #define _DELL_WMI_DESCRIPTOR_H_
  12. #include <linux/wmi.h>
  13. /* possible return values:
  14. * -ENODEV: Descriptor GUID missing from WMI bus
  15. * -EPROBE_DEFER: probing for dell-wmi-descriptor not yet run
  16. * 0: valid descriptor, successfully probed
  17. * < 0: invalid descriptor, don't probe dependent devices
  18. */
  19. int dell_wmi_get_descriptor_valid(void);
  20. bool dell_wmi_get_interface_version(u32 *version);
  21. bool dell_wmi_get_size(u32 *size);
  22. bool dell_wmi_get_hotfix(u32 *hotfix);
  23. #endif