avr_power.c (d34498309cff7560ac90c422c56e3137e6a64b19) avr_power.c (e3d0814368d00e7985c31edf5d0cfce45972d4be)
1/*
2 * AVR Power Reduction Management
3 *
4 * Copyright (c) 2019-2020 Michael Rolnik
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

89 }
90 s->val = 0x00;
91}
92
93static void avr_mask_class_init(ObjectClass *klass, void *data)
94{
95 DeviceClass *dc = DEVICE_CLASS(klass);
96
1/*
2 * AVR Power Reduction Management
3 *
4 * Copyright (c) 2019-2020 Michael Rolnik
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

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

89 }
90 s->val = 0x00;
91}
92
93static void avr_mask_class_init(ObjectClass *klass, void *data)
94{
95 DeviceClass *dc = DEVICE_CLASS(klass);
96
97 dc->reset = avr_mask_reset;
97 device_class_set_legacy_reset(dc, avr_mask_reset);
98}
99
100static const TypeInfo avr_mask_info = {
101 .name = TYPE_AVR_MASK,
102 .parent = TYPE_SYS_BUS_DEVICE,
103 .instance_size = sizeof(AVRMaskState),
104 .class_init = avr_mask_class_init,
105 .instance_init = avr_mask_init,
106};
107
108static void avr_mask_register_types(void)
109{
110 type_register_static(&avr_mask_info);
111}
112
113type_init(avr_mask_register_types)
98}
99
100static const TypeInfo avr_mask_info = {
101 .name = TYPE_AVR_MASK,
102 .parent = TYPE_SYS_BUS_DEVICE,
103 .instance_size = sizeof(AVRMaskState),
104 .class_init = avr_mask_class_init,
105 .instance_init = avr_mask_init,
106};
107
108static void avr_mask_register_types(void)
109{
110 type_register_static(&avr_mask_info);
111}
112
113type_init(avr_mask_register_types)