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/dist/drm/nouveau Update for new API to...
details: https://anonhg.NetBSD.org/src/rev/236c48bef094
branches: trunk
changeset: 366031:236c48bef094
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:37:28 2018 +0000
description:
Update for new API to get device pointer and bus dma tag.
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r e9240ad3fc1d -r 236c48bef094 sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c Mon Aug 27 07:37:17 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_nv50_display.c Mon Aug 27 07:37:28 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_nv50_display.c,v 1.7 2018/08/27 04:58:24 riastradh Exp $ */
+/* $NetBSD: nouveau_nv50_display.c,v 1.8 2018/08/27 07:37:28 riastradh Exp $ */
/*
* Copyright 2011 Red Hat Inc.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nv50_display.c,v 1.7 2018/08/27 04:58:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nv50_display.c,v 1.8 2018/08/27 07:37:28 riastradh Exp $");
#include <linux/dma-mapping.h>
#include <linux/err.h>
@@ -271,9 +271,8 @@
#ifdef __NetBSD__
{
- struct nouveau_device *device = nv_device(core);
- const bus_dma_tag_t dmat = pci_dma64_available(&device->pdev->pd_pa) ?
- device->pdev->pd_pa.pa_dmat64 : device->pdev->pd_pa.pa_dmat;
+ struct nvkm_device *nvkm_device = nvxx_device(device);
+ const bus_dma_tag_t dmat = nvkm_device->func->dma_tag(nvkm_device);
int rsegs;
Home |
Main Index |
Thread Index |
Old Index