qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 06/16] dimm: implement dimm device abstraction


From: Hu Tao
Subject: Re: [Qemu-devel] [PATCH 06/16] dimm: implement dimm device abstraction
Date: Thu, 25 Jul 2013 14:52:48 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jul 23, 2013 at 06:23:02PM +0200, Igor Mammedov wrote:
> From: Vasilis Liaskovitis <address@hidden>

<...>

> +
> +/**
> + * DimmBus:

DimmDevice

> + * @start: starting physical address, where @DimmDevice is mapped.
> + * @size: amount of memory mapped at @start.
> + * @node: numa node to which @DimmDevice is attached.
> + * @slot: slot number into which @DimmDevice is plugged in.
> + */
> +typedef struct DimmDevice {
> +    DeviceState qdev;
> +    ram_addr_t start;
> +    ram_addr_t size;
> +    uint32_t node;
> +    int32_t slot;
> +    MemoryRegion mr;
> +} DimmDevice;
> +
> +typedef struct DimmDeviceClass {
> +    DeviceClass parent_class;
> +} DimmDeviceClass;
> +
> +#define TYPE_DIMM_BUS "dimmbus"
> +#define DIMM_BUS(obj) OBJECT_CHECK(DimmBus, (obj), TYPE_DIMM_BUS)
> +#define DIMM_BUS_CLASS(klass) \
> +    OBJECT_CLASS_CHECK(DimmBusClass, (klass), TYPE_DIMM_BUS)
> +#define DIMM_BUS_GET_CLASS(obj) \
> +    OBJECT_GET_CLASS(DimmBusClass, (obj), TYPE_DIMM_BUS)
> +
> +/**
> + * DimmBus:
> + */
> +typedef struct DimmBus {
> +    BusState qbus;
> +} DimmBus;
> +
> +#endif
> -- 
> 1.7.1



reply via email to

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