diff --git a/drivers/include/ddk.h b/drivers/include/ddk.h index 59733f2cd8..c152fc94d6 100644 --- a/drivers/include/ddk.h +++ b/drivers/include/ddk.h @@ -14,7 +14,7 @@ #define PG_SW 0x003 #define PG_UW 0x007 -#define PG_NOCACHE 0x010 +#define PG_NOCACHE 0x018 #define PG_SHARED 0x200 diff --git a/drivers/include/linux/mm.h b/drivers/include/linux/mm.h index 62864e2a1b..34aafa7703 100644 --- a/drivers/include/linux/mm.h +++ b/drivers/include/linux/mm.h @@ -12,4 +12,6 @@ /* to align the pointer to the (next) page boundary */ #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE) +#define offset_in_page(p) ((unsigned long)(p) & ~PAGE_MASK) + #endif diff --git a/drivers/include/linux/uapi/drm/i915_drm.h b/drivers/include/linux/uapi/drm/i915_drm.h index 55bb5729bd..45887236e7 100644 --- a/drivers/include/linux/uapi/drm/i915_drm.h +++ b/drivers/include/linux/uapi/drm/i915_drm.h @@ -1030,4 +1030,22 @@ struct drm_i915_reg_read { __u64 offset; __u64 val; /* Return value */ }; + +struct drm_i915_mask { + __u32 handle; + __u32 width; + __u32 height; + __u32 bo_size; + __u32 bo_pitch; + __u32 bo_map; +}; + +struct drm_i915_fb_info { + __u32 name; + __u32 width; + __u32 height; + __u32 pitch; + __u32 tiling; +}; + #endif /* _UAPI_I915_DRM_H_ */