Revision 3afe7e14 hw/timer/i8254.c
b/hw/timer/i8254.c | ||
---|---|---|
265 | 265 |
|
266 | 266 |
static void pit_reset(DeviceState *dev) |
267 | 267 |
{ |
268 |
PITCommonState *pit = DO_UPCAST(PITCommonState, dev.qdev, dev);
|
|
268 |
PITCommonState *pit = PIT_COMMON(dev);
|
|
269 | 269 |
PITChannelState *s; |
270 | 270 |
|
271 | 271 |
pit_reset_common(pit); |
... | ... | |
348 | 348 |
} |
349 | 349 |
|
350 | 350 |
static const TypeInfo pit_info = { |
351 |
.name = "isa-pit",
|
|
351 |
.name = TYPE_I8254,
|
|
352 | 352 |
.parent = TYPE_PIT_COMMON, |
353 | 353 |
.instance_size = sizeof(PITCommonState), |
354 | 354 |
.class_init = pit_class_initfn, |
Also available in: Unified diff