Revision ca77089d hw/eepro100.c
b/hw/eepro100.c | ||
---|---|---|
539 | 539 |
if (e100_device->power_management) { |
540 | 540 |
/* Power Management Capabilities */ |
541 | 541 |
int cfg_offset = 0xdc; |
542 |
int r = pci_add_capability_at_offset(&s->dev, PCI_CAP_ID_PM,
|
|
543 |
cfg_offset, PCI_PM_SIZEOF);
|
|
542 |
int r = pci_add_capability(&s->dev, PCI_CAP_ID_PM, |
|
543 |
cfg_offset, PCI_PM_SIZEOF); |
|
544 | 544 |
assert(r >= 0); |
545 | 545 |
pci_set_word(pci_conf + cfg_offset + PCI_PM_PMC, 0x7e21); |
546 | 546 |
#if 0 /* TODO: replace dummy code for power management emulation. */ |
Also available in: Unified diff