提交 05623b7f 编写于 作者: M Mikko Rapeli 提交者: Gabriel Laskar

drm_mode.h: use __u32 and __u64 from linux/types.h

Fixes userspace compilation error:

drm/drm_mode.h:472:2: error: unknown type name ‘uint32_t’
Signed-off-by: NMikko Rapeli <mikko.rapeli@iki.fi>
上级 1a2a42c8
...@@ -526,14 +526,14 @@ struct drm_mode_crtc_page_flip { ...@@ -526,14 +526,14 @@ struct drm_mode_crtc_page_flip {
/* create a dumb scanout buffer */ /* create a dumb scanout buffer */
struct drm_mode_create_dumb { struct drm_mode_create_dumb {
uint32_t height; __u32 height;
uint32_t width; __u32 width;
uint32_t bpp; __u32 bpp;
uint32_t flags; __u32 flags;
/* handle, pitch, size will be returned */ /* handle, pitch, size will be returned */
uint32_t handle; __u32 handle;
uint32_t pitch; __u32 pitch;
uint64_t size; __u64 size;
}; };
/* set up for mmap of a dumb scanout buffer */ /* set up for mmap of a dumb scanout buffer */
...@@ -550,7 +550,7 @@ struct drm_mode_map_dumb { ...@@ -550,7 +550,7 @@ struct drm_mode_map_dumb {
}; };
struct drm_mode_destroy_dumb { struct drm_mode_destroy_dumb {
uint32_t handle; __u32 handle;
}; };
/* page-flip flags are valid, plus: */ /* page-flip flags are valid, plus: */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册