diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2006-01-02 00:23:01 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-01-02 00:23:01 -0500 |
commit | 269dc51296f4e985741d2fd567e7be4e7a0a9f29 (patch) | |
tree | 88589ce8ddc51a48f691a2c078863682e645293b /drivers/char/drm/drmP.h | |
parent | 3528af1b189d0fbb4c7a3f121f46d9987b9af5b6 (diff) |
drm: bring savage inline with latest CVS
apply some whitespace cleanup and add wrappers for MTRR for OS calls
From: Eric Anholt <anholt@freebsd.org> + Dave Airlie <airlied@linux.ie>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r-- | drivers/char/drm/drmP.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 295de65b7088..a3ad85e05bd3 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h | |||
@@ -750,6 +750,21 @@ static inline int drm_core_has_MTRR(struct drm_device *dev) | |||
750 | { | 750 | { |
751 | return drm_core_check_feature(dev, DRIVER_USE_MTRR); | 751 | return drm_core_check_feature(dev, DRIVER_USE_MTRR); |
752 | } | 752 | } |
753 | |||
754 | #define DRM_MTRR_WC MTRR_TYPE_WRCOMB | ||
755 | |||
756 | static inline int drm_mtrr_add(unsigned long offset, unsigned long size, | ||
757 | unsigned int flags) | ||
758 | { | ||
759 | return mtrr_add(offset, size, flags, 1); | ||
760 | } | ||
761 | |||
762 | static inline int drm_mtrr_del(int handle, unsigned long offset, | ||
763 | unsigned long size, unsigned int flags) | ||
764 | { | ||
765 | return mtrr_del(handle, offset, size); | ||
766 | } | ||
767 | |||
753 | #else | 768 | #else |
754 | #define drm_core_has_MTRR(dev) (0) | 769 | #define drm_core_has_MTRR(dev) (0) |
755 | #endif | 770 | #endif |