|
@@ -280,11 +280,21 @@ struct media_links_enum {
|
|
|
* MC next gen API definitions
|
|
|
*/
|
|
|
|
|
|
+/*
|
|
|
+ * Appeared in 4.19.0.
|
|
|
+ *
|
|
|
+ * The media_version argument comes from the media_version field in
|
|
|
+ * struct media_device_info.
|
|
|
+ */
|
|
|
+#define MEDIA_V2_ENTITY_HAS_FLAGS(media_version) \
|
|
|
+ ((media_version) >= ((4 << 16) | (19 << 8) | 0))
|
|
|
+
|
|
|
struct media_v2_entity {
|
|
|
__u32 id;
|
|
|
char name[64];
|
|
|
__u32 function; /* Main function of the entity */
|
|
|
- __u32 reserved[6];
|
|
|
+ __u32 flags;
|
|
|
+ __u32 reserved[5];
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
/* Should match the specific fields at media_intf_devnode */
|