2 * Non-Volatile Dual In-line Memory Module Virtualization Implementation
4 * Copyright(C) 2015 Intel Corporation.
7 * Xiao Guangrong <guangrong.xiao@linux.intel.com>
9 * Currently, it only supports PMEM Virtualization.
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, see <http://www.gnu.org/licenses/>
25 #include "hw/mem/nvdimm.h"
27 static void nvdimm_class_init(ObjectClass
*oc
, void *data
)
29 DeviceClass
*dc
= DEVICE_CLASS(oc
);
31 /* nvdimm hotplug has not been supported yet. */
32 dc
->hotpluggable
= false;
35 static TypeInfo nvdimm_info
= {
37 .parent
= TYPE_PC_DIMM
,
38 .class_init
= nvdimm_class_init
,
41 static void nvdimm_register_types(void)
43 type_register_static(&nvdimm_info
);
46 type_init(nvdimm_register_types
)