mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
drm/i915/gvt: make width of mmio_attribute bigger
8 bits are all used up. extend it to 16 bits to hold more flags. Suggested-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Yan Zhao <yan.y.zhao@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20201223034545.17224-1-yan.y.zhao@intel.com Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
This commit is contained in:
parent
70add39fad
commit
1a8811930c
|
|
@ -244,7 +244,7 @@ struct gvt_mmio_block {
|
|||
#define INTEL_GVT_MMIO_HASH_BITS 11
|
||||
|
||||
struct intel_gvt_mmio {
|
||||
u8 *mmio_attribute;
|
||||
u16 *mmio_attribute;
|
||||
/* Register contains RO bits */
|
||||
#define F_RO (1 << 0)
|
||||
/* Register contains graphics address */
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ struct intel_gvt_mmio_info *intel_gvt_find_mmio_info(struct intel_gvt *gvt,
|
|||
}
|
||||
|
||||
static int new_mmio_info(struct intel_gvt *gvt,
|
||||
u32 offset, u8 flags, u32 size,
|
||||
u32 offset, u16 flags, u32 size,
|
||||
u32 addr_mask, u32 ro_mask, u32 device,
|
||||
gvt_mmio_func read, gvt_mmio_func write)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user