Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 2018 19:46:57 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r329527 - in stable/11/sys: dev/agp modules/agp
Message-ID:  <201802181946.w1IJkvnq046436@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sun Feb 18 19:46:57 2018
New Revision: 329527
URL: https://svnweb.freebsd.org/changeset/base/329527

Log:
  MFC r320851:
  Add a helper function to agp(4) which installs a single GTT entry.

Modified:
  stable/11/sys/dev/agp/agp_i810.c
  stable/11/sys/dev/agp/agp_i810.h
  stable/11/sys/modules/agp/Makefile
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/agp/agp_i810.c
==============================================================================
--- stable/11/sys/dev/agp/agp_i810.c	Sun Feb 18 19:33:28 2018	(r329526)
+++ stable/11/sys/dev/agp/agp_i810.c	Sun Feb 18 19:46:57 2018	(r329527)
@@ -2244,6 +2244,16 @@ agp_intel_gtt_map_memory(device_t dev, vm_page_t *page
 	return (0);
 }
 
+static void
+agp_intel_gtt_install_pte(device_t dev, u_int index, vm_paddr_t addr,
+    u_int flags)
+{
+	struct agp_i810_softc *sc;
+
+	sc = device_get_softc(dev);
+	sc->match->driver->install_gtt_pte(dev, index, addr, flags);
+}
+
 void
 agp_intel_gtt_insert_sg_entries(device_t dev, struct sglist *sg_list,
     u_int first_entry, u_int flags)
@@ -2320,6 +2330,13 @@ intel_gtt_insert_sg_entries(struct sglist *sg_list, u_
 {
 
 	agp_intel_gtt_insert_sg_entries(intel_agp, sg_list, first_entry, flags);
+}
+
+void
+intel_gtt_install_pte(u_int index, vm_paddr_t addr, u_int flags)
+{
+
+	agp_intel_gtt_install_pte(intel_agp, index, addr, flags);
 }
 
 device_t

Modified: stable/11/sys/dev/agp/agp_i810.h
==============================================================================
--- stable/11/sys/dev/agp/agp_i810.h	Sun Feb 18 19:33:28 2018	(r329526)
+++ stable/11/sys/dev/agp/agp_i810.h	Sun Feb 18 19:46:57 2018	(r329527)
@@ -87,6 +87,7 @@ struct intel_gtt *intel_gtt_get(void);
 int intel_gtt_chipset_flush(void);
 void intel_gtt_unmap_memory(struct sglist *sg_list);
 void intel_gtt_clear_range(u_int first_entry, u_int num_entries);
+void intel_gtt_install_pte(u_int index, vm_paddr_t addr, u_int flags);
 int intel_gtt_map_memory(vm_page_t *pages, u_int num_entries,
     struct sglist **sg_list);
 void intel_gtt_insert_sg_entries(struct sglist *sg_list, u_int pg_start,

Modified: stable/11/sys/modules/agp/Makefile
==============================================================================
--- stable/11/sys/modules/agp/Makefile	Sun Feb 18 19:33:28 2018	(r329526)
+++ stable/11/sys/modules/agp/Makefile	Sun Feb 18 19:46:57 2018	(r329527)
@@ -35,6 +35,7 @@ EXPORT_SYMS=	agp_find_device		\
 .if ${MACHINE_CPUARCH} == "i386"  || ${MACHINE_CPUARCH} == "amd64"
 EXPORT_SYMS+=	intel_gtt_clear_range	\
 		intel_gtt_insert_pages	\
+		intel_gtt_install_pte	\
 		intel_gtt_get		\
 		intel_gtt_chipset_flush	\
 		intel_gtt_unmap_memory	\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802181946.w1IJkvnq046436>