Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/ttm only build ttm_agp code if __OS_HA...
details: https://anonhg.NetBSD.org/src/rev/b3a6543ce217
branches: trunk
changeset: 341076:b3a6543ce217
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Oct 17 21:05:57 2015 +0000
description:
only build ttm_agp code if __OS_HAS_AGP is defined
diffstat:
sys/external/bsd/drm2/ttm/ttm_agp_backend.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r dea2d3870c84 -r b3a6543ce217 sys/external/bsd/drm2/ttm/ttm_agp_backend.c
--- a/sys/external/bsd/drm2/ttm/ttm_agp_backend.c Sat Oct 17 19:29:48 2015 +0000
+++ b/sys/external/bsd/drm2/ttm/ttm_agp_backend.c Sat Oct 17 21:05:57 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttm_agp_backend.c,v 1.4 2015/04/25 21:00:29 riastradh Exp $ */
+/* $NetBSD: ttm_agp_backend.c,v 1.5 2015/10/17 21:05:57 jmcneill Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.4 2015/04/25 21:00:29 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttm_agp_backend.c,v 1.5 2015/10/17 21:05:57 jmcneill Exp $");
#include <sys/types.h>
#include <sys/kmem.h>
@@ -42,6 +42,8 @@
#include <ttm/ttm_bo_driver.h>
#include <ttm/ttm_page_alloc.h>
+#if __OS_HAS_AGP
+
struct ttm_agp {
struct ttm_dma_tt ttm_dma;
struct agp_softc *agp;
@@ -164,3 +166,5 @@
.unbind = &ttm_agp_unbind,
.destroy = &ttm_agp_destroy,
};
+
+#endif
Home |
Main Index |
Thread Index |
Old Index