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/nvkm/engine/device Fi...
details: https://anonhg.NetBSD.org/src/rev/30ba9a280915
branches: trunk
changeset: 992755:30ba9a280915
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:42:13 2018 +0000
description:
Fix typos in pci bus dma tag acquisition.
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r e54ca9ca72bc -r 30ba9a280915 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c Mon Aug 27 07:42:02 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_pci.c Mon Aug 27 07:42:13 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.2 2018/08/27 04:58:31 riastradh Exp $ */
+/* $NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.3 2018/08/27 07:42:13 riastradh Exp $ */
/*
* Copyright 2015 Red Hat Inc.
@@ -24,7 +24,7 @@
* Authors: Ben Skeggs <bskeggs%redhat.com@localhost>
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.2 2018/08/27 04:58:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_pci.c,v 1.3 2018/08/27 07:42:13 riastradh Exp $");
#include <core/pci.h>
#include "priv.h"
@@ -1566,13 +1566,14 @@
}
#ifdef __NetBSD__
+#include <dev/pci/pcivar.h>
static bus_dma_tag_t
nvkm_device_pci_dma_tag(struct nvkm_device *device)
{
struct nvkm_device_pci *pdev = nvkm_device_pci(device);
- const struct pci_attach_args *pa = &pdev->pd_pa;
+ const struct pci_attach_args *pa = &pdev->pdev->pd_pa;
- return pci_dma64_avaliable(pa) ? pa->pa_dmat64 : pa->pa_dmat;
+ return pci_dma64_available(pa) ? pa->pa_dmat64 : pa->pa_dmat;
}
static bus_space_tag_t
Home |
Main Index |
Thread Index |
Old Index