diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2006-01-12 04:44:30 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-01-12 04:44:30 -0500 |
commit | 9c7d462eda13ca211b7b4a62f191f4cfda135e2d (patch) | |
tree | 1d0107a98587191476a3d58d22e376e432828a8f /drivers/char/drm | |
parent | aab8df141fdc4c4c9587521a24b6865390eaeb79 (diff) |
drm: fix issues with systems with no MTRR
On systems with no MTRR we should still define the interface.
Original bug from apkm.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r-- | drivers/char/drm/drmP.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h index 307254da7d08..54b561e69486 100644 --- a/drivers/char/drm/drmP.h +++ b/drivers/char/drm/drmP.h | |||
@@ -767,6 +767,20 @@ static inline int drm_mtrr_del(int handle, unsigned long offset, | |||
767 | 767 | ||
768 | #else | 768 | #else |
769 | #define drm_core_has_MTRR(dev) (0) | 769 | #define drm_core_has_MTRR(dev) (0) |
770 | |||
771 | #define DRM_MTRR_WC 0 | ||
772 | |||
773 | static inline int drm_mtrr_add(unsigned long offset, unsigned long size, | ||
774 | unsigned int flags) | ||
775 | { | ||
776 | return 0; | ||
777 | } | ||
778 | |||
779 | static inline int drm_mtrr_del(int handle, unsigned long offset, | ||
780 | unsigned long size, unsigned int flags) | ||
781 | { | ||
782 | return 0; | ||
783 | } | ||
770 | #endif | 784 | #endif |
771 | 785 | ||
772 | /******************************************************************/ | 786 | /******************************************************************/ |