diff --git a/include/ipc/gpr-lite.h b/include/ipc/gpr-lite.h index 3432cbc3a2..591ed81663 100644 --- a/include/ipc/gpr-lite.h +++ b/include/ipc/gpr-lite.h @@ -17,7 +17,7 @@ #include #include -#include +#include "soc/audio_mod_devicetable.h" #include extern struct bus_type gprbus; diff --git a/include/soc/audio_mod_devicetable.h b/include/soc/audio_mod_devicetable.h index 06120345c4..8b8efb4c1e 100644 --- a/include/soc/audio_mod_devicetable.h +++ b/include/soc/audio_mod_devicetable.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2020 The Linux Foundation. All rights reserved. */ #ifndef AUDIO_MOD_DEVICETABLE_H @@ -17,5 +17,18 @@ struct swr_device_id { char name[SOUNDWIRE_NAME_SIZE]; kernel_ulong_t driver_data; /* Data private to the driver */ }; + +/* gpr */ +#define GPR_NAME_SIZE 32 +#define GPR_MODULE_PREFIX "gpr:" + +struct gpr_device_id { + char name[GPR_NAME_SIZE]; + __u32 domain_id; + __u32 svc_id; + __u32 svc_version; + kernel_ulong_t driver_data; /* Data private to the driver */ +}; + #endif /* AUDIO_MOD_DEVICETABLE_H */