/* AUTOMATICALLY GENERATED by qapi-gen.py DO NOT MODIFY */

/*
 * Schema-defined QAPI types
 *
 * Copyright IBM, Corp. 2011
 * Copyright (c) 2013-2018 Red Hat Inc.
 *
 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
 * See the COPYING.LIB file in the top-level directory.
 */

#include "qemu/osdep.h"
#include "qapi/dealloc-visitor.h"
#include "qapi-types-machine-common.h"
#include "qapi-visit-machine-common.h"
#include "qapi-features.h"

const QEnumLookup S390CpuEntitlement_lookup = {
    .array = (const char *const[]) {
        [S390_CPU_ENTITLEMENT_AUTO] = "auto",
        [S390_CPU_ENTITLEMENT_LOW] = "low",
        [S390_CPU_ENTITLEMENT_MEDIUM] = "medium",
        [S390_CPU_ENTITLEMENT_HIGH] = "high",
    },
    .size = S390_CPU_ENTITLEMENT__MAX
};

const QEnumLookup CpuTopologyLevel_lookup = {
    .array = (const char *const[]) {
        [CPU_TOPOLOGY_LEVEL_THREAD] = "thread",
        [CPU_TOPOLOGY_LEVEL_CORE] = "core",
        [CPU_TOPOLOGY_LEVEL_MODULE] = "module",
        [CPU_TOPOLOGY_LEVEL_CLUSTER] = "cluster",
        [CPU_TOPOLOGY_LEVEL_DIE] = "die",
        [CPU_TOPOLOGY_LEVEL_SOCKET] = "socket",
        [CPU_TOPOLOGY_LEVEL_BOOK] = "book",
        [CPU_TOPOLOGY_LEVEL_DRAWER] = "drawer",
        [CPU_TOPOLOGY_LEVEL_DEFAULT] = "default",
    },
    .size = CPU_TOPOLOGY_LEVEL__MAX
};

const QEnumLookup CacheLevelAndType_lookup = {
    .array = (const char *const[]) {
        [CACHE_LEVEL_AND_TYPE_L1D] = "l1d",
        [CACHE_LEVEL_AND_TYPE_L1I] = "l1i",
        [CACHE_LEVEL_AND_TYPE_L2] = "l2",
        [CACHE_LEVEL_AND_TYPE_L3] = "l3",
    },
    .size = CACHE_LEVEL_AND_TYPE__MAX
};

void qapi_free_SmpCacheProperties(SmpCacheProperties *obj)
{
    Visitor *v;

    if (!obj) {
        return;
    }

    v = qapi_dealloc_visitor_new();
    visit_type_SmpCacheProperties(v, NULL, &obj, NULL);
    visit_free(v);
}

void qapi_free_SmpCachePropertiesList(SmpCachePropertiesList *obj)
{
    Visitor *v;

    if (!obj) {
        return;
    }

    v = qapi_dealloc_visitor_new();
    visit_type_SmpCachePropertiesList(v, NULL, &obj, NULL);
    visit_free(v);
}

void qapi_free_SmpCachePropertiesWrapper(SmpCachePropertiesWrapper *obj)
{
    Visitor *v;

    if (!obj) {
        return;
    }

    v = qapi_dealloc_visitor_new();
    visit_type_SmpCachePropertiesWrapper(v, NULL, &obj, NULL);
    visit_free(v);
}

/* Dummy declaration to prevent empty .o file */
char qapi_dummy_qapi_types_machine_common_c;
