aspeed_peci.c (d495e432c04a6394126c35cf96517749708b410f) | aspeed_peci.c (e3d0814368d00e7985c31edf5d0cfce45972d4be) |
---|---|
1/* 2 * Aspeed PECI Controller 3 * 4 * Copyright (c) Meta Platforms, Inc. and affiliates. (http://www.meta.com) 5 * 6 * This code is licensed under the GPL version 2 or later. See the COPYING 7 * file in the top-level directory. 8 */ --- 121 unchanged lines hidden (view full) --- 130 memset(s->regs, 0, sizeof(s->regs)); 131} 132 133static void aspeed_peci_class_init(ObjectClass *klass, void *data) 134{ 135 DeviceClass *dc = DEVICE_CLASS(klass); 136 137 dc->realize = aspeed_peci_realize; | 1/* 2 * Aspeed PECI Controller 3 * 4 * Copyright (c) Meta Platforms, Inc. and affiliates. (http://www.meta.com) 5 * 6 * This code is licensed under the GPL version 2 or later. See the COPYING 7 * file in the top-level directory. 8 */ --- 121 unchanged lines hidden (view full) --- 130 memset(s->regs, 0, sizeof(s->regs)); 131} 132 133static void aspeed_peci_class_init(ObjectClass *klass, void *data) 134{ 135 DeviceClass *dc = DEVICE_CLASS(klass); 136 137 dc->realize = aspeed_peci_realize; |
138 dc->reset = aspeed_peci_reset; | 138 device_class_set_legacy_reset(dc, aspeed_peci_reset); |
139 dc->desc = "Aspeed PECI Controller"; 140} 141 142static const TypeInfo aspeed_peci_types[] = { 143 { 144 .name = TYPE_ASPEED_PECI, 145 .parent = TYPE_SYS_BUS_DEVICE, 146 .instance_size = sizeof(AspeedPECIState), 147 .class_init = aspeed_peci_class_init, 148 .abstract = false, 149 }, 150}; 151 152DEFINE_TYPES(aspeed_peci_types); | 139 dc->desc = "Aspeed PECI Controller"; 140} 141 142static const TypeInfo aspeed_peci_types[] = { 143 { 144 .name = TYPE_ASPEED_PECI, 145 .parent = TYPE_SYS_BUS_DEVICE, 146 .instance_size = sizeof(AspeedPECIState), 147 .class_init = aspeed_peci_class_init, 148 .abstract = false, 149 }, 150}; 151 152DEFINE_TYPES(aspeed_peci_types); |