File:  [Qemu by Fabrice Bellard] / qemu / hw / apm.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:29:31 2018 UTC (16 months, 3 weeks ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, qemu1001, qemu1000, qemu0151, qemu0150, qemu0141, qemu0140, qemu0130, HEAD
qemu 0.13.0

#ifndef APM_H
#define APM_H

#include <stdint.h>
#include "qemu-common.h"
#include "hw.h"

typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);

typedef struct APMState {
    uint8_t apmc;
    uint8_t apms;

    apm_ctrl_changed_t callback;
    void *arg;
} APMState;

void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg);

extern const VMStateDescription vmstate_apm;

#endif /* APM_H */

unix.superglobalmegacorp.com