Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/i915drm Kludgey attempt to fi...
details: https://anonhg.NetBSD.org/src/rev/ebb29b31a575
branches: riastradh-drm2
changeset: 788646:ebb29b31a575
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Mar 05 22:17:59 2014 +0000
description:
Kludgey attempt to fill in intel_gtt stubs.
diffstat:
sys/external/bsd/drm2/i915drm/intel_gtt.c | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diffs (48 lines):
diff -r 80efabf3b242 -r ebb29b31a575 sys/external/bsd/drm2/i915drm/intel_gtt.c
--- a/sys/external/bsd/drm2/i915drm/intel_gtt.c Wed Mar 05 15:08:00 2014 +0000
+++ b/sys/external/bsd/drm2/i915drm/intel_gtt.c Wed Mar 05 22:17:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intel_gtt.c,v 1.1.2.1 2013/09/08 15:52:20 riastradh Exp $ */
+/* $NetBSD: intel_gtt.c,v 1.1.2.2 2014/03/05 22:17:59 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,17 +32,36 @@
/* Intel GTT stubs */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_gtt.c,v 1.1.2.1 2013/09/08 15:52:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_gtt.c,v 1.1.2.2 2014/03/05 22:17:59 riastradh Exp $");
+
+#include <sys/types.h> /* XXX pcivar.h needs...@!&#^ */
+
+#include <dev/pci/pcivar.h> /* XXX agpvar.h needs... */
+#include <dev/pci/agpvar.h>
+#include <dev/pci/agp_i810var.h>
#include "drm/intel-gtt.h"
bool
intel_enable_gtt(void)
{
- return false;
+
+ /*
+ * The agp_i810 initialization code already enables the GTT, as
+ * far as I can tell.
+ *
+ * XXX That might not be correct.
+ */
+ return (agp_i810_sc != NULL);
}
void
intel_gtt_chipset_flush(void)
{
+
+ /*
+ * XXX If the Linux code is any indication, this is not
+ * sufficient...but it'll probably do for now.
+ */
+ agp_flush_cache();
}
Home |
Main Index |
Thread Index |
Old Index