wdt_ib700.c (c3ab4c9cf24ec9efb9c6d82b6027c0587d3081fa) wdt_ib700.c (125ee0ed9cad04307498ac2b7b0d51ad8a807360)
1/*
2 * Virtual hardware watchdog.
3 *
4 * Copyright (C) 2009 Red Hat Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

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

132
133static void wdt_ib700_class_init(ObjectClass *klass, void *data)
134{
135 DeviceClass *dc = DEVICE_CLASS(klass);
136
137 dc->realize = wdt_ib700_realize;
138 dc->reset = wdt_ib700_reset;
139 dc->vmsd = &vmstate_ib700;
1/*
2 * Virtual hardware watchdog.
3 *
4 * Copyright (C) 2009 Red Hat Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

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

132
133static void wdt_ib700_class_init(ObjectClass *klass, void *data)
134{
135 DeviceClass *dc = DEVICE_CLASS(klass);
136
137 dc->realize = wdt_ib700_realize;
138 dc->reset = wdt_ib700_reset;
139 dc->vmsd = &vmstate_ib700;
140 set_bit(DEVICE_CATEGORY_MISC, dc->categories);
140}
141
142static const TypeInfo wdt_ib700_info = {
143 .name = TYPE_IB700,
144 .parent = TYPE_ISA_DEVICE,
145 .instance_size = sizeof(IB700State),
146 .class_init = wdt_ib700_class_init,
147};
148
149static void wdt_ib700_register_types(void)
150{
151 watchdog_add_model(&model);
152 type_register_static(&wdt_ib700_info);
153}
154
155type_init(wdt_ib700_register_types)
141}
142
143static const TypeInfo wdt_ib700_info = {
144 .name = TYPE_IB700,
145 .parent = TYPE_ISA_DEVICE,
146 .instance_size = sizeof(IB700State),
147 .class_init = wdt_ib700_class_init,
148};
149
150static void wdt_ib700_register_types(void)
151{
152 watchdog_add_model(&model);
153 type_register_static(&wdt_ib700_info);
154}
155
156type_init(wdt_ib700_register_types)