Skip to content

Commit

Permalink
Add riscv64 support. From Mickael Torres.
Browse files Browse the repository at this point in the history
ok matthieu@, jsg@
  • Loading branch information
kettenis committed Jun 26, 2021
1 parent 24c86b1 commit c1a0e5c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions sys/dev/pci/drm/include/linux/pci.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: pci.h,v 1.5 2020/06/08 04:48:15 jsg Exp $ */
/* $OpenBSD: pci.h,v 1.6 2021/06/26 09:24:51 kettenis Exp $ */
/*
* Copyright (c) 2015 Mark Kettenis
*
Expand All @@ -15,8 +15,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#ifndef _LINUX_PCI_H
#define _LINUX_PCI_H
#ifndef _LINUX_PCI_H_
#define _LINUX_PCI_H_

#include <sys/types.h>
/* sparc64 cpu.h needs time.h and siginfo.h (indirect via param.h) */
Expand Down Expand Up @@ -395,7 +395,8 @@ 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(__arm64__) || defined(__i386__)
#if defined(__amd64__) || defined(__arm64__) || \
defined(__i386__) || defined(__riscv64__)

#define PCI_DMA_BIDIRECTIONAL 0

Expand All @@ -419,6 +420,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(__arm64__) || defined(__i386__) */

#endif

#endif /* _LINUX_PCI_H_ */

0 comments on commit c1a0e5c

Please sign in to comment.