audio_mod_devicetable.h 712 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020 The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef AUDIO_MOD_DEVICETABLE_H
  6. #define AUDIO_MOD_DEVICETABLE_H
  7. #include <linux/mod_devicetable.h>
  8. /* soundwire */
  9. #define SOUNDWIRE_NAME_SIZE 32
  10. #define SOUNDWIRE_MODULE_PREFIX "swr:"
  11. struct swr_device_id {
  12. char name[SOUNDWIRE_NAME_SIZE];
  13. kernel_ulong_t driver_data; /* Data private to the driver */
  14. };
  15. /* gpr */
  16. #define GPR_NAME_SIZE 32
  17. #define GPR_MODULE_PREFIX "gpr:"
  18. struct gpr_device_id {
  19. char name[GPR_NAME_SIZE];
  20. __u32 domain_id;
  21. __u32 svc_id;
  22. __u32 svc_version;
  23. kernel_ulong_t driver_data; /* Data private to the driver */
  24. };
  25. #endif /* AUDIO_MOD_DEVICETABLE_H */