|
@@ -571,7 +571,7 @@ static void e100_pci_reset(EEPRO100State * s)
|
|
int cfg_offset = 0xdc;
|
|
int cfg_offset = 0xdc;
|
|
int r = pci_add_capability(&s->dev, PCI_CAP_ID_PM,
|
|
int r = pci_add_capability(&s->dev, PCI_CAP_ID_PM,
|
|
cfg_offset, PCI_PM_SIZEOF);
|
|
cfg_offset, PCI_PM_SIZEOF);
|
|
- assert(r >= 0);
|
|
|
|
|
|
+ assert(r > 0);
|
|
pci_set_word(pci_conf + cfg_offset + PCI_PM_PMC, 0x7e21);
|
|
pci_set_word(pci_conf + cfg_offset + PCI_PM_PMC, 0x7e21);
|
|
#if 0 /* TODO: replace dummy code for power management emulation. */
|
|
#if 0 /* TODO: replace dummy code for power management emulation. */
|
|
/* TODO: Power Management Control / Status. */
|
|
/* TODO: Power Management Control / Status. */
|