summaryrefslogtreecommitdiffstats
path: root/include/hw/timer/i8254.h
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-25 21:20:14 +0200
committerEduardo Habkost2020-08-27 20:04:54 +0200
commitcc963dcd7248db55b877d2ddd7b20a794d7ec182 (patch)
tree1ee6d98aa03670fadb0996b77da1e9bf1b1de1be /include/hw/timer/i8254.h
parentpci: Move PCIBusClass typedef to pci.h (diff)
downloadqemu-cc963dcd7248db55b877d2ddd7b20a794d7ec182.tar.gz
qemu-cc963dcd7248db55b877d2ddd7b20a794d7ec182.tar.xz
qemu-cc963dcd7248db55b877d2ddd7b20a794d7ec182.zip
i8254: Move PITCommonState/PITCommonClass typedefs to i8254.h
Move typedef closer to the type check macros, to make it easier to convert the code to OBJECT_DEFINE_TYPE() in the future. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Tested-By: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200825192110.3528606-19-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/timer/i8254.h')
-rw-r--r--include/hw/timer/i8254.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/timer/i8254.h b/include/hw/timer/i8254.h
index e75b4a5a08..206b8f8464 100644
--- a/include/hw/timer/i8254.h
+++ b/include/hw/timer/i8254.h
@@ -39,6 +39,8 @@ typedef struct PITChannelInfo {
} PITChannelInfo;
#define TYPE_PIT_COMMON "pit-common"
+typedef struct PITCommonState PITCommonState;
+typedef struct PITCommonClass PITCommonClass;
#define PIT_COMMON(obj) \
OBJECT_CHECK(PITCommonState, (obj), TYPE_PIT_COMMON)
#define PIT_COMMON_CLASS(klass) \