diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2021-08-30 22:56:26 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2021-08-30 22:56:26 +0000 |
| commit | d023deb89ec32bb7d3f34e1f05d4dedc199cdb74 (patch) | |
| tree | b81572f7812f25395920a9b1cdb571146120ed42 /sys/arch/arm/include | |
| parent | b600f5c3e59e2111d5f9a8d2685510a8ad0066f5 (diff) | |
Add storage for an iommu cookie in bus_dmamap_t and store untranslated CPU
address in bus_dma_segment_t.
Diffstat (limited to 'sys/arch/arm/include')
| -rw-r--r-- | sys/arch/arm/include/bus_defs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm/include/bus_defs.h b/sys/arch/arm/include/bus_defs.h index 93f7fb7b335..6e1ac424b5f 100644 --- a/sys/arch/arm/include/bus_defs.h +++ b/sys/arch/arm/include/bus_defs.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus_defs.h,v 1.16 2021/04/23 06:02:48 skrll Exp $ */ +/* $NetBSD: bus_defs.h,v 1.17 2021/08/30 22:56:26 jmcneill Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc. @@ -377,6 +377,7 @@ struct arm32_bus_dma_segment { * PRIVATE MEMBERS: */ uint32_t _ds_flags; /* _BUS_DMAMAP_COHERENT */ + paddr_t _ds_paddr; /* CPU address */ }; typedef struct arm32_bus_dma_segment bus_dma_segment_t; @@ -481,6 +482,7 @@ struct arm32_bus_dmamap { struct vmspace *_dm_vmspace; /* vmspace that owns the mapping */ void *_dm_cookie; /* cookie for bus-specific functions */ + void *_dm_iommu; /* cookie for iommu functions */ /* * PUBLIC MEMBERS: these are used by machine-independent code. |
