1 #ifndef __VIDEO_ADF_ADF_FOPS32_H
2 #define __VIDEO_ADF_ADF_FOPS32_H
4 #include <linux/compat.h>
5 #include <linux/ioctl.h>
9 #define ADF_POST_CONFIG32 \
10 _IOW('D', 2, struct adf_post_config32)
11 #define ADF_GET_DEVICE_DATA32 \
12 _IOR('D', 4, struct adf_device_data32)
13 #define ADF_GET_INTERFACE_DATA32 \
14 _IOR('D', 5, struct adf_interface_data32)
15 #define ADF_GET_OVERLAY_ENGINE_DATA32 \
16 _IOR('D', 6, struct adf_overlay_engine_data32)
18 struct adf_post_config32 {
19 compat_size_t n_interfaces;
20 compat_uptr_t interfaces;
25 compat_size_t custom_data_size;
26 compat_uptr_t custom_data;
31 struct adf_device_data32 {
32 char name[ADF_NAME_LEN];
34 compat_size_t n_attachments;
35 compat_uptr_t attachments;
37 compat_size_t n_allowed_attachments;
38 compat_uptr_t allowed_attachments;
40 compat_size_t custom_data_size;
41 compat_uptr_t custom_data;
44 struct adf_interface_data32 {
45 char name[ADF_NAME_LEN];
49 /* e.g. type=ADF_INTF_TYPE_DSI, id=1 => DSI.1 */
57 struct drm_mode_modeinfo current_mode;
58 compat_size_t n_available_modes;
59 compat_uptr_t available_modes;
61 compat_size_t custom_data_size;
62 compat_uptr_t custom_data;
65 struct adf_overlay_engine_data32 {
66 char name[ADF_NAME_LEN];
68 compat_size_t n_supported_formats;
69 compat_uptr_t supported_formats;
71 compat_size_t custom_data_size;
72 compat_uptr_t custom_data;
75 long adf_file_compat_ioctl(struct file *file, unsigned int cmd,
78 #endif /* __VIDEO_ADF_ADF_FOPS32_H */