qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/7] hw/ide: Move IDE device related definitions to ide-dev.h


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 3/7] hw/ide: Move IDE device related definitions to ide-dev.h
Date: Mon, 19 Feb 2024 12:32:04 +0100
User-agent: Mozilla Thunderbird

On 19/2/24 11:49, Thomas Huth wrote:
Let's start to unentangle internal.h by moving public IDE device
related definitions to ide-dev.h.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
  include/hw/ide/ide-dev.h  | 145 +++++++++++++++++++++++++++++++++++++-
  include/hw/ide/internal.h | 145 +-------------------------------------
  hw/ide/ide-dev.c          |   1 +
  3 files changed, 146 insertions(+), 145 deletions(-)

diff --git a/include/hw/ide/ide-dev.h b/include/hw/ide/ide-dev.h
index 7e9663cda9..de88784a25 100644
--- a/include/hw/ide/ide-dev.h
+++ b/include/hw/ide/ide-dev.h
@@ -20,9 +20,152 @@
  #ifndef IDE_DEV_H
  #define IDE_DEV_H
+#include "sysemu/dma.h"

Not required.

  #include "hw/qdev-properties.h"
  #include "hw/block/block.h"
-#include "hw/ide/internal.h"
+
+typedef struct IDEDevice IDEDevice;
+typedef struct IDEState IDEState;

+typedef struct IDEDMA IDEDMA;
+typedef struct IDEDMAOps IDEDMAOps;
+typedef struct IDEBus IDEBus;

Looking at next patches, better forward-declare IDEBus and
IDEDMA in "qemu/typedefs.h".

IDEDMAOps and "sysemu/dma.h" belong to "hw/ide/ide-dma.h.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]