aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 1f9e9516e2b7..92f0981b5fb8 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -820,7 +820,7 @@ struct drm_driver {
820 * Specifically, the timestamp in @vblank_time should correspond as 820 * Specifically, the timestamp in @vblank_time should correspond as
821 * closely as possible to the time when the first video scanline of 821 * closely as possible to the time when the first video scanline of
822 * the video frame after the end of VBLANK will start scanning out, 822 * the video frame after the end of VBLANK will start scanning out,
823 * the time immmediately after end of the VBLANK interval. If the 823 * the time immediately after end of the VBLANK interval. If the
824 * @crtc is currently inside VBLANK, this will be a time in the future. 824 * @crtc is currently inside VBLANK, this will be a time in the future.
825 * If the @crtc is currently scanning out a frame, this will be the 825 * If the @crtc is currently scanning out a frame, this will be the
826 * past start time of the current scanout. This is meant to adhere 826 * past start time of the current scanout. This is meant to adhere
@@ -918,7 +918,7 @@ struct drm_driver {
918 int dev_priv_size; 918 int dev_priv_size;
919 struct drm_ioctl_desc *ioctls; 919 struct drm_ioctl_desc *ioctls;
920 int num_ioctls; 920 int num_ioctls;
921 struct file_operations fops; 921 const struct file_operations *fops;
922 union { 922 union {
923 struct pci_driver *pci; 923 struct pci_driver *pci;
924 struct platform_device *platform_device; 924 struct platform_device *platform_device;
@@ -1328,6 +1328,7 @@ extern int drm_getmagic(struct drm_device *dev, void *data,
1328 struct drm_file *file_priv); 1328 struct drm_file *file_priv);
1329extern int drm_authmagic(struct drm_device *dev, void *data, 1329extern int drm_authmagic(struct drm_device *dev, void *data,
1330 struct drm_file *file_priv); 1330 struct drm_file *file_priv);
1331extern int drm_remove_magic(struct drm_master *master, drm_magic_t magic);
1331 1332
1332/* Cache management (drm_cache.c) */ 1333/* Cache management (drm_cache.c) */
1333void drm_clflush_pages(struct page *pages[], unsigned long num_pages); 1334void drm_clflush_pages(struct page *pages[], unsigned long num_pages);
@@ -1696,5 +1697,13 @@ extern void drm_platform_exit(struct drm_driver *driver, struct platform_device
1696extern int drm_get_platform_dev(struct platform_device *pdev, 1697extern int drm_get_platform_dev(struct platform_device *pdev,
1697 struct drm_driver *driver); 1698 struct drm_driver *driver);
1698 1699
1700/* returns true if currently okay to sleep */
1701static __inline__ bool drm_can_sleep(void)
1702{
1703 if (in_atomic() || in_dbg_master() || irqs_disabled())
1704 return false;
1705 return true;
1706}
1707
1699#endif /* __KERNEL__ */ 1708#endif /* __KERNEL__ */
1700#endif 1709#endif