diff options
| author | Daniel Vetter <[email protected]> | 2016-01-11 22:40:56 +0100 | 
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2016-01-25 08:40:09 +0100 | 
| commit | 2dd500f1870e3d852488c9b30c4ecec91c6e2eea (patch) | |
| tree | ab58eb47a5003abad8f12d03d4a1b40a1c12292f /include/drm/drmP.h | |
| parent | bcb877e4dcf21c3ba486fd7cc563126f08c39b8a (diff) | |
drm: Add functions to setup/tear down drm_events.
An attempt at not spreading out the file_priv->event_space stuff out
quite so far and wide.  And I think fixes something in ipp_get_event()
that is broken (or if they are doing something more weird/subtle, then
breaks it in a fun way).
Based upon a patch from Rob Clark, rebased and polished.
v2: Spelling fixes (Alex).
Cc: Alex Deucher <[email protected]>
Acked-by: Daniel Stone <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Cc: Rob Clark <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'include/drm/drmP.h')
| -rw-r--r-- | include/drm/drmP.h | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/include/drm/drmP.h b/include/drm/drmP.h index a46a34fc67b3..04a66468e6e0 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -925,8 +925,13 @@ ssize_t drm_read(struct file *filp, char __user *buffer,  		 size_t count, loff_t *offset);  int drm_release(struct inode *inode, struct file *filp);  int drm_new_set_master(struct drm_device *dev, struct drm_file *fpriv); -  unsigned int drm_poll(struct file *filp, struct poll_table_struct *wait); +int drm_event_reserve_init(struct drm_device *dev, +			   struct drm_file *file_priv, +			   struct drm_pending_event *p, +			   struct drm_event *e); +void drm_event_cancel_free(struct drm_device *dev, +			   struct drm_pending_event *p);  /* Misc. IOCTL support (drm_ioctl.c) */  int drm_noop(struct drm_device *dev, void *data, |