--- zzzz-none-000/linux-4.4.271/include/linux/mod_devicetable.h 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/include/linux/mod_devicetable.h 2023-12-20 10:37:36.000000000 +0000 @@ -437,6 +437,18 @@ 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 */ +}; + #define SPMI_NAME_SIZE 32 #define SPMI_MODULE_PREFIX "spmi:" @@ -445,6 +457,16 @@ kernel_ulong_t driver_data; /* Data private to the driver */ }; +/* soundwire */ + +#define SOUNDWIRE_NAME_SIZE 32 +#define SOUNDWIRE_MODULE_PREFIX "swr:" + +struct swr_device_id { + char name[SOUNDWIRE_NAME_SIZE]; + kernel_ulong_t driver_data; /* Data private to the driver */ +}; + /* dmi */ enum dmi_field { DMI_NONE, @@ -481,6 +503,16 @@ struct dmi_strmatch matches[4]; void *driver_data; }; + +#define SLIMBUS_NAME_SIZE 32 +#define SLIMBUS_MODULE_PREFIX "slim:" + +struct slim_device_id { + char name[SLIMBUS_NAME_SIZE]; + kernel_ulong_t driver_data /* Data private to the driver */ + __attribute__((aligned(sizeof(kernel_ulong_t)))); +}; + /* * struct dmi_device_id appears during expansion of * "MODULE_DEVICE_TABLE(dmi, x)". Compiler doesn't look inside it @@ -663,4 +695,17 @@ kernel_ulong_t driver_data; }; +#define MHI_NAME_SIZE 32 + +/** + * struct mhi_device_id - MHI device identification + * @chan: MHI channel name + * @driver_data: driver data; + */ + +struct mhi_device_id { + const char chan[MHI_NAME_SIZE]; + kernel_ulong_t driver_data; +}; + #endif /* LINUX_MOD_DEVICETABLE_H */