[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 03/10] include/hw/dma/xlnx_csu_dma: Include ptimer.h and s
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v2 03/10] include/hw/dma/xlnx_csu_dma: Include ptimer.h and stream.h in the header |
Date: |
Tue, 23 Nov 2021 11:45:45 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 |
On 11/23/21 11:34, Francisco Iglesias wrote:
> Include ptimer.h and stream.h in the header for being able to build and
> reuse the DMA model (the first usage of StreamSink, StreamCanPushNotifyFn
> and ptimer_state is in the header).
>
> Signed-off-by: Francisco Iglesias <francisco.iglesias@xilinx.com>
> ---
> include/hw/dma/xlnx_csu_dma.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/hw/dma/xlnx_csu_dma.h b/include/hw/dma/xlnx_csu_dma.h
> index 9e9dc551e9..8c39e46f58 100644
> --- a/include/hw/dma/xlnx_csu_dma.h
> +++ b/include/hw/dma/xlnx_csu_dma.h
> @@ -21,6 +21,9 @@
> #ifndef XLNX_CSU_DMA_H
> #define XLNX_CSU_DMA_H
>
> +#include "hw/ptimer.h"
Yes, but arguably ptimer_state should be forward
declared in "include/qemu/typedefs.h" IMO.
> +#include "hw/stream.h"
OK but you forgot these:
include/hw/sysbus.h (SysBusDevice)
include/exec/memory.h (MemoryRegion)
include/exec/memattrs.h (MemTxAttrs)
include/exec/memory.h (AddressSpace)
include/hw/register.h (RegisterInfo)
- [PATCH v2 00/10] Xilinx Versal's PMC SLCR and OSPI support, Francisco Iglesias, 2021/11/23
- [PATCH v2 03/10] include/hw/dma/xlnx_csu_dma: Include ptimer.h and stream.h in the header, Francisco Iglesias, 2021/11/23
- [PATCH v2 04/10] hw/dma: Add the DMA control interface, Francisco Iglesias, 2021/11/23
- [PATCH v2 05/10] hw/dma/xlnx_csu_dma: Implement the DMA control interface, Francisco Iglesias, 2021/11/23
- [PATCH v2 09/10] hw/arm/xlnx-versal-virt: Connect mt35xu01g flashes to the OSPI, Francisco Iglesias, 2021/11/23
- [PATCH v2 06/10] hw/ssi: Add a model of Xilinx Versal's OSPI flash memory controller, Francisco Iglesias, 2021/11/23
- [PATCH v2 07/10] hw/arm/xlnx-versal: Connect the OSPI flash memory controller model, Francisco Iglesias, 2021/11/23
- [PATCH v2 08/10] hw/block/m25p80: Add support for Micron Xccela flash mt35xu01g, Francisco Iglesias, 2021/11/23