diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2013-08-24 23:38:57 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2013-08-24 23:38:57 +0000 |
commit | 37cc37086094cdd5ca1da2de3deed324ea6e0ee7 (patch) | |
tree | 1e832d498eb34e783742c221875b80f416b35fc8 /sys/dev/drm2/drmP.h | |
parent | dc23a4a559d6b02c605d1241d83a1b10c704df6b (diff) | |
download | FreeBSD-src-37cc37086094cdd5ca1da2de3deed324ea6e0ee7.zip FreeBSD-src-37cc37086094cdd5ca1da2de3deed324ea6e0ee7.tar.gz |
drm: Import drm_dp_helper.c from Linux 3.8-rc3
While here, update drm_dp_helper.h to better match Linux one.
Diffstat (limited to 'sys/dev/drm2/drmP.h')
-rw-r--r-- | sys/dev/drm2/drmP.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h index 8a456f1..4bd7d3f 100644 --- a/sys/dev/drm2/drmP.h +++ b/sys/dev/drm2/drmP.h @@ -317,6 +317,9 @@ typedef int8_t s8; #define DRM_HZ hz #define DRM_UDELAY(udelay) DELAY(udelay) +#define DRM_MDELAY(msecs) do { int loops = (msecs); \ + while (loops--) DELAY(1000); \ + } while (0) #define DRM_TIME_SLICE (hz/20) /* Time slice for GLXContexts */ #define DRM_GET_PRIV_SAREA(_dev, _ctx, _map) do { \ |