diff options
author | 2020-10-10 13:19:50 +0000 | |
---|---|---|
committer | 2020-10-10 13:19:50 +0000 | |
commit | 1cb5dd39c48605239c5d6d6507570064ed2fefeb (patch) | |
tree | 5af2e7804f3e43f793e0d6de7389dcf38f2d91b1 | |
parent | Don't leak bundle_file and cert_file paths at the end. (diff) | |
download | wireguard-openbsd-1cb5dd39c48605239c5d6d6507570064ed2fefeb.tar.xz wireguard-openbsd-1cb5dd39c48605239c5d6d6507570064ed2fefeb.zip |
Add OPAL_PCI_MAP_PE_DMA_WINDOW.
-rw-r--r-- | sys/arch/powerpc64/include/opal.h | 5 | ||||
-rw-r--r-- | sys/arch/powerpc64/powerpc64/locore.S | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/powerpc64/include/opal.h b/sys/arch/powerpc64/include/opal.h index 5d4bbe07e9c..35158983020 100644 --- a/sys/arch/powerpc64/include/opal.h +++ b/sys/arch/powerpc64/include/opal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: opal.h,v 1.16 2020/08/23 13:46:15 kettenis Exp $ */ +/* $OpenBSD: opal.h,v 1.17 2020/10/10 13:19:50 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -43,6 +43,7 @@ #define OPAL_GET_MSI_32 39 #define OPAL_GET_MSI_64 40 #define OPAL_START_CPU 41 +#define OPAL_PCI_MAP_PE_DMA_WINDOW 44 #define OPAL_PCI_MAP_PE_DMA_WINDOW_REAL 45 #define OPAL_PCI_RESET 49 #define OPAL_REINIT_CPUS 70 @@ -186,6 +187,8 @@ int64_t opal_get_msi_32(uint64_t, uint32_t, uint32_t, uint8_t, int64_t opal_get_msi_64(uint64_t, uint32_t, uint32_t, uint8_t, uint64_t *, uint32_t *); int64_t opal_start_cpu(uint64_t, uint64_t); +int64_t opal_pci_map_pe_dma_window(uint64_t, uint64_t, uint16_t, uint16_t, + uint64_t, uint64_t, uint64_t); int64_t opal_pci_map_pe_dma_window_real(uint64_t, uint64_t, uint16_t, uint64_t, uint64_t); int64_t opal_pci_reset(uint64_t, uint8_t, uint8_t); diff --git a/sys/arch/powerpc64/powerpc64/locore.S b/sys/arch/powerpc64/powerpc64/locore.S index 924086caea4..d9aa3e82c83 100644 --- a/sys/arch/powerpc64/powerpc64/locore.S +++ b/sys/arch/powerpc64/powerpc64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.38 2020/10/04 20:22:22 kettenis Exp $ */ +/* $OpenBSD: locore.S,v 1.39 2020/10/10 13:19:50 kettenis Exp $ */ /* * Copyright (c) 2020 Mark Kettenis <kettenis@openbsd.org> @@ -330,6 +330,7 @@ OPAL_CALL(OPAL_PCI_SET_XIVE_PE, opal_pci_set_xive_pe) OPAL_CALL(OPAL_GET_MSI_32, opal_get_msi_32) OPAL_CALL(OPAL_GET_MSI_64, opal_get_msi_64) OPAL_CALL(OPAL_START_CPU, opal_start_cpu) +OPAL_CALL(OPAL_PCI_MAP_PE_DMA_WINDOW, opal_pci_map_pe_dma_window) OPAL_CALL(OPAL_PCI_MAP_PE_DMA_WINDOW_REAL, opal_pci_map_pe_dma_window_real) OPAL_CALL(OPAL_PCI_RESET, opal_pci_reset) OPAL_CALL(OPAL_REINIT_CPUS, opal_reinit_cpus) |