Lines Matching full:apm
2 * QEMU PC APM controller Emulation
24 #include "hw/isa/apm.h"
36 APMState *apm = opaque; in apm_ioport_writeb() local
41 apm->apmc = val; in apm_ioport_writeb()
43 if (apm->callback) { in apm_ioport_writeb()
44 (apm->callback)(val, apm->arg); in apm_ioport_writeb()
47 apm->apms = val; in apm_ioport_writeb()
53 APMState *apm = opaque; in apm_ioport_readb() local
58 val = apm->apmc; in apm_ioport_readb()
60 val = apm->apms; in apm_ioport_readb()
68 .name = "APM State",
87 void apm_init(PCIDevice *dev, APMState *apm, apm_ctrl_changed_t callback, in apm_init() argument
90 apm->callback = callback; in apm_init()
91 apm->arg = arg; in apm_init()
94 memory_region_init_io(&apm->io, OBJECT(dev), &apm_ops, apm, "apm-io", 2); in apm_init()
96 &apm->io); in apm_init()