Module Name: src Committed By: riastradh Date: Sun Dec 19 11:15:49 UTC 2021
Modified Files: src/sys/external/bsd/drm2/dist/drm/i915/gt: intel_gtt.h src/sys/external/bsd/drm2/dist/drm/i915/gvt: gtt.h Log Message: i915: Move page table bits from gvt/gtt.h to gt/intel_gtt.h. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/dist/drm/i915/gvt/gtt.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h diff -u src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h:1.8 src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h:1.9 --- src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h:1.8 Sun Dec 19 11:15:33 2021 +++ src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_gtt.h Sun Dec 19 11:15:49 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: intel_gtt.h,v 1.8 2021/12/19 11:15:33 riastradh Exp $ */ +/* $NetBSD: intel_gtt.h,v 1.9 2021/12/19 11:15:49 riastradh Exp $ */ /* SPDX-License-Identifier: MIT */ /* @@ -33,6 +33,17 @@ #include "i915_selftest.h" #include "i915_vma_types.h" +#ifdef __NetBSD__ +#include <drm/bus_dma_hacks.h> +#include <x86/machdep.h> +#include <x86/pte.h> +#define _PAGE_PRESENT PG_V /* 0x01 PTE is present / valid */ +#define _PAGE_RW PG_RW /* 0x02 read/write */ +#define _PAGE_PWT PG_WT /* 0x08 write-through */ +#define _PAGE_PCD PG_N /* 0x10 page cache disabled / non-cacheable */ +#define _PAGE_PAT PG_PAT /* 0x80 page attribute table on PTE */ +#endif + #define I915_GFP_ALLOW_FAIL (GFP_KERNEL | __GFP_RETRY_MAYFAIL | __GFP_NOWARN) #if IS_ENABLED(CONFIG_DRM_I915_TRACE_GTT) Index: src/sys/external/bsd/drm2/dist/drm/i915/gvt/gtt.h diff -u src/sys/external/bsd/drm2/dist/drm/i915/gvt/gtt.h:1.3 src/sys/external/bsd/drm2/dist/drm/i915/gvt/gtt.h:1.4 --- src/sys/external/bsd/drm2/dist/drm/i915/gvt/gtt.h:1.3 Sun Dec 19 01:24:25 2021 +++ src/sys/external/bsd/drm2/dist/drm/i915/gvt/gtt.h Sun Dec 19 11:15:49 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: gtt.h,v 1.3 2021/12/19 01:24:25 riastradh Exp $ */ +/* $NetBSD: gtt.h,v 1.4 2021/12/19 11:15:49 riastradh Exp $ */ /* * Copyright(c) 2011-2016 Intel Corporation. All rights reserved. @@ -36,17 +36,6 @@ #ifndef _GVT_GTT_H_ #define _GVT_GTT_H_ -#ifdef __NetBSD__ -#include <drm/bus_dma_hacks.h> -#include <x86/machdep.h> -#include <x86/pte.h> -#define _PAGE_PRESENT PG_V /* 0x01 PTE is present / valid */ -#define _PAGE_RW PG_RW /* 0x02 read/write */ -#define _PAGE_PWT PG_WT /* 0x08 write-through */ -#define _PAGE_PCD PG_N /* 0x10 page cache disabled / non-cacheable */ -#define _PAGE_PAT PG_PAT /* 0x80 page attribute table on PTE */ -#endif - #define I915_GTT_PAGE_SHIFT 12 struct intel_vgpu_mm;