On Tue, Jul 23, 2013 at 06:23:02PM +0200, Igor Mammedov wrote:
> From: Vasilis Liaskovitis <vasilis.liaskovi...@profitbricks.com>

<...>

> +
> +/**
> + * 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