Revision bea42280
b/hw/sun4m.c | ||
---|---|---|
472 | 472 |
} |
473 | 473 |
} |
474 | 474 |
|
475 |
static qemu_irq slavio_system_powerdown; |
|
476 |
|
|
477 |
static void slavio_powerdown_req(Notifier *n, void *opaque) |
|
478 |
{ |
|
479 |
qemu_irq_raise(slavio_system_powerdown); |
|
480 |
} |
|
481 |
|
|
482 |
static Notifier slavio_system_powerdown_notifier = { |
|
483 |
.notify = slavio_powerdown_req |
|
484 |
}; |
|
485 |
|
|
475 | 486 |
#define MISC_LEDS 0x01600000 |
476 | 487 |
#define MISC_CFG 0x01800000 |
477 | 488 |
#define MISC_DIAG 0x01a00000 |
... | ... | |
514 | 525 |
} |
515 | 526 |
sysbus_connect_irq(s, 0, irq); |
516 | 527 |
sysbus_connect_irq(s, 1, fdc_tc); |
517 |
qemu_system_powerdown = qdev_get_gpio_in(dev, 0); |
|
528 |
slavio_system_powerdown = qdev_get_gpio_in(dev, 0); |
|
529 |
qemu_register_powerdown_notifier(&slavio_system_powerdown_notifier); |
|
518 | 530 |
} |
519 | 531 |
|
520 | 532 |
static void ecc_init(target_phys_addr_t base, qemu_irq irq, uint32_t version) |
Also available in: Unified diff