mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 21:33:40 +08:00
83c9f4ca79
Done with this script: cd hw for i in `find . -name '*.h' | sed 's/^..//'`; do echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,' done | sed -i -f - `find . -type f` This is so that paths remain valid as files are moved. Instead, files in hw/dataplane are referenced with the relative path. We know they are not going to move to include/, and they are the only include files that are in subdirectories _and_ move. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
26 lines
490 B
C
26 lines
490 B
C
#ifndef APM_H
|
|
#define APM_H
|
|
|
|
#include <stdint.h>
|
|
#include "qemu-common.h"
|
|
#include "hw/hw.h"
|
|
#include "exec/memory.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;
|
|
MemoryRegion io;
|
|
} APMState;
|
|
|
|
void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
|
|
void *arg);
|
|
|
|
extern const VMStateDescription vmstate_apm;
|
|
|
|
#endif /* APM_H */
|