Revision 3b46e624 hw/acpi.c

b/hw/acpi.c
87 87
{
88 88
    int sci_level, pmsts;
89 89
    int64_t expire_time;
90
   
90

  
91 91
    pmsts = get_pmsts(s);
92 92
    sci_level = (((pmsts & s->pmen) &
93 93
                  (RTC_EN | PWRBTN_EN | GBL_EN | TMROF_EN)) != 0);
......
239 239
{
240 240
    PIIX4PMState *s = opaque;
241 241
    uint32_t val;
242
   
242

  
243 243
    addr &= 1;
244 244
    if (addr == 0) {
245 245
        val = s->apmc;
......
480 480
    pci_conf[0x0b] = 0x06; // bridge device
481 481
    pci_conf[0x0e] = 0x00; // header_type
482 482
    pci_conf[0x3d] = 0x01; // interrupt pin 1
483
   
483

  
484 484
    pci_conf[0x40] = 0x01; /* PM io base read only bit */
485
   
485

  
486 486
    register_ioport_write(0xb2, 2, 1, pm_smi_writeb, s);
487 487
    register_ioport_read(0xb2, 2, 1, pm_smi_readb, s);
488 488

  

Also available in: Unified diff