tz-msc.c (95a9457fd44ad97c518858a4e1586a5498f9773c) tz-msc.c (4f67d30b5e74e060b8dbe10528829b47345cd6e8)
1/*
2 * ARM TrustZone master security controller emulation
3 *
4 * Copyright (c) 2018 Linaro Limited
5 * Written by Peter Maydell
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 or

--- 279 unchanged lines hidden (view full) ---

288
289static void tz_msc_class_init(ObjectClass *klass, void *data)
290{
291 DeviceClass *dc = DEVICE_CLASS(klass);
292
293 dc->realize = tz_msc_realize;
294 dc->vmsd = &tz_msc_vmstate;
295 dc->reset = tz_msc_reset;
1/*
2 * ARM TrustZone master security controller emulation
3 *
4 * Copyright (c) 2018 Linaro Limited
5 * Written by Peter Maydell
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 or

--- 279 unchanged lines hidden (view full) ---

288
289static void tz_msc_class_init(ObjectClass *klass, void *data)
290{
291 DeviceClass *dc = DEVICE_CLASS(klass);
292
293 dc->realize = tz_msc_realize;
294 dc->vmsd = &tz_msc_vmstate;
295 dc->reset = tz_msc_reset;
296 dc->props = tz_msc_properties;
296 device_class_set_props(dc, tz_msc_properties);
297}
298
299static const TypeInfo tz_msc_info = {
300 .name = TYPE_TZ_MSC,
301 .parent = TYPE_SYS_BUS_DEVICE,
302 .instance_size = sizeof(TZMSC),
303 .instance_init = tz_msc_init,
304 .class_init = tz_msc_class_init,
305};
306
307static void tz_msc_register_types(void)
308{
309 type_register_static(&tz_msc_info);
310}
311
312type_init(tz_msc_register_types);
297}
298
299static const TypeInfo tz_msc_info = {
300 .name = TYPE_TZ_MSC,
301 .parent = TYPE_SYS_BUS_DEVICE,
302 .instance_size = sizeof(TZMSC),
303 .instance_init = tz_msc_init,
304 .class_init = tz_msc_class_init,
305};
306
307static void tz_msc_register_types(void)
308{
309 type_register_static(&tz_msc_info);
310}
311
312type_init(tz_msc_register_types);