Patchwork [02/11] isa: move ISABus structure definition to header file

login
register
mail settings
Submitter Hervé Poussineau
Date Oct. 24, 2011, 8:18 p.m.
Message ID <1319487505-5915-3-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/121402/
State New
Headers show

Comments

Hervé Poussineau - Oct. 24, 2011, 8:18 p.m.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/isa-bus.c |    5 -----
 hw/isa.h     |    6 ++++++
 2 files changed, 6 insertions(+), 5 deletions(-)
Anthony Liguori - Dec. 12, 2011, 4:39 p.m.
On 10/24/2011 03:18 PM, Hervé Poussineau wrote:
>
> Signed-off-by: Hervé Poussineau<hpoussin@reactos.org>

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>

Regards,

Anthony Liguori

> ---
>   hw/isa-bus.c |    5 -----
>   hw/isa.h     |    6 ++++++
>   2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/hw/isa-bus.c b/hw/isa-bus.c
> index dcbb134..7c94f0b 100644
> --- a/hw/isa-bus.c
> +++ b/hw/isa-bus.c
> @@ -22,11 +22,6 @@
>   #include "isa.h"
>   #include "exec-memory.h"
>
> -struct ISABus {
> -    BusState qbus;
> -    MemoryRegion *address_space_io;
> -    qemu_irq *irqs;
> -};
>   static ISABus *isabus;
>   target_phys_addr_t isa_mem_base = 0;
>
> diff --git a/hw/isa.h b/hw/isa.h
> index 4b58e37..0462521 100644
> --- a/hw/isa.h
> +++ b/hw/isa.h
> @@ -13,6 +13,12 @@ typedef struct ISABus ISABus;
>   typedef struct ISADevice ISADevice;
>   typedef struct ISADeviceInfo ISADeviceInfo;
>
> +struct ISABus {
> +    BusState qbus;
> +    MemoryRegion *address_space_io;
> +    qemu_irq *irqs;
> +};
> +
>   struct ISADevice {
>       DeviceState qdev;
>       uint32_t isairq[2];

Patch

diff --git a/hw/isa-bus.c b/hw/isa-bus.c
index dcbb134..7c94f0b 100644
--- a/hw/isa-bus.c
+++ b/hw/isa-bus.c
@@ -22,11 +22,6 @@ 
 #include "isa.h"
 #include "exec-memory.h"
 
-struct ISABus {
-    BusState qbus;
-    MemoryRegion *address_space_io;
-    qemu_irq *irqs;
-};
 static ISABus *isabus;
 target_phys_addr_t isa_mem_base = 0;
 
diff --git a/hw/isa.h b/hw/isa.h
index 4b58e37..0462521 100644
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -13,6 +13,12 @@  typedef struct ISABus ISABus;
 typedef struct ISADevice ISADevice;
 typedef struct ISADeviceInfo ISADeviceInfo;
 
+struct ISABus {
+    BusState qbus;
+    MemoryRegion *address_space_io;
+    qemu_irq *irqs;
+};
+
 struct ISADevice {
     DeviceState qdev;
     uint32_t isairq[2];