diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-11-12 21:52:46 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-11-12 21:52:46 +1100 |
commit | 925142431bd653175b80ae153bd7a8bc13628bde (patch) | |
tree | 594c1e65d3bf25b10961ea2b97dee5704b4f6cb5 /drivers/char/drm/drm_os_linux.h | |
parent | 792d2b9a12594522111fbe2a7f17460a4d7edff7 (diff) | |
download | op-kernel-dev-925142431bd653175b80ae153bd7a8bc13628bde.zip op-kernel-dev-925142431bd653175b80ae153bd7a8bc13628bde.tar.gz |
drm: update VIA driver to 2.7.2
Add PCI DMA blitengine to VIA DRM
Add portability code for porting VIA to FreeBSD.
Sync via_drm.h with 3d driver
From: Thomas Hellstrom <unichrome@shipmail.org>, Eric Anholt <anholt@freebsd.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm_os_linux.h')
-rw-r--r-- | drivers/char/drm/drm_os_linux.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_os_linux.h b/drivers/char/drm/drm_os_linux.h index d51aeb4..695115d 100644 --- a/drivers/char/drm/drm_os_linux.h +++ b/drivers/char/drm/drm_os_linux.h @@ -13,6 +13,7 @@ #define DRM_ERR(d) -(d) /** Current process ID */ #define DRM_CURRENTPID current->pid +#define DRM_SUSER(p) capable(CAP_SYS_ADMIN) #define DRM_UDELAY(d) udelay(d) /** Read a byte from a MMIO region */ #define DRM_READ8(map, offset) readb(((void __iomem *)(map)->handle) + (offset)) |