summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/include/linux
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2019-08-28 10:18:00 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2019-08-28 10:18:00 +0000
commit643e8a8d7412654fad92f18485171b0ace6da791 (patch)
tree3d8dc383842d3d36fb036412f881eeb7ec3c5297 /sys/dev/pci/drm/include/linux
parentb0f06aa9fda008c15e37a3a987dd5095a011b525 (diff)
Build and enable amdgpu(4) on arm64. The DCN1.0 support has been made
optional and will only be compiled for amd64/i386. Apparently this is only needed on Raven Ridge APUs. ok jsg@, patrick@, deraadt@
Diffstat (limited to 'sys/dev/pci/drm/include/linux')
-rw-r--r--sys/dev/pci/drm/include/linux/pci.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/include/linux/pci.h b/sys/dev/pci/drm/include/linux/pci.h
index 635463a40a3..4ec8881f8ca 100644
--- a/sys/dev/pci/drm/include/linux/pci.h
+++ b/sys/dev/pci/drm/include/linux/pci.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.h,v 1.3 2019/08/18 13:11:47 kettenis Exp $ */
+/* $OpenBSD: pci.h,v 1.4 2019/08/28 10:17:59 kettenis Exp $ */
/*
* Copyright (c) 2015 Mark Kettenis
*
@@ -290,7 +290,7 @@ pci_get_class(pcireg_t class, struct pci_dev *pdev)
#define PCI_CLASS_DISPLAY_OTHER \
(PCI_CLASS_DISPLAY | PCI_SUBCLASS_DISPLAY_MISC)
-#if defined(__amd64__) || defined(__i386__)
+#if defined(__amd64__) || defined(__arm64__) || defined(__i386__)
#define PCI_DMA_BIDIRECTIONAL 0
@@ -314,6 +314,6 @@ pci_dma_mapping_error(struct pci_dev *pdev, dma_addr_t dma_addr)
#define pci_set_dma_mask(x, y) 0
#define pci_set_consistent_dma_mask(x, y) 0
-#endif /* defined(__amd64__) || defined(__i386__) */
+#endif /* defined(__amd64__) || defined(__arm64__) || defined(__i386__) */
#endif