From 77c7ea5ebbcf494f36f243d786e5f8409d7a4b85 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 26 May 2011 11:52:45 +0200 Subject: spapr: prepare for qdevification of irq Restructure common properties for sPAPR devices so that IRQ definitions can be added in one place. Signed-off-by: Paolo Bonzini Cc: Alexander Graf Cc: David Gibson Signed-off-by: Alexander Graf --- hw/spapr_vio.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hw/spapr_vio.h') diff --git a/hw/spapr_vio.h b/hw/spapr_vio.h index faa5d94d7a..7eb5367653 100644 --- a/hw/spapr_vio.h +++ b/hw/spapr_vio.h @@ -60,6 +60,11 @@ typedef struct VIOsPAPRDevice { VIOsPAPR_CRQ crq; } VIOsPAPRDevice; +#define DEFINE_SPAPR_PROPERTIES(type, field, default_reg, default_dma_window) \ + DEFINE_PROP_UINT32("reg", type, field.reg, default_reg), \ + DEFINE_PROP_UINT32("dma-window", type, field.rtce_window_size, \ + default_dma_window) + typedef struct VIOsPAPRBus { BusState bus; int irq; -- cgit v1.2.3