mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
616bbde342
commit
cc963dcd72
2 changed files with 6 additions and 4 deletions
|
@ -50,14 +50,14 @@ typedef struct PITChannelState {
|
|||
uint32_t irq_disabled;
|
||||
} PITChannelState;
|
||||
|
||||
typedef struct PITCommonState {
|
||||
struct PITCommonState {
|
||||
ISADevice dev;
|
||||
MemoryRegion ioports;
|
||||
uint32_t iobase;
|
||||
PITChannelState channels[3];
|
||||
} PITCommonState;
|
||||
};
|
||||
|
||||
typedef struct PITCommonClass {
|
||||
struct PITCommonClass {
|
||||
ISADeviceClass parent_class;
|
||||
|
||||
void (*set_channel_gate)(PITCommonState *s, PITChannelState *sc, int val);
|
||||
|
@ -65,7 +65,7 @@ typedef struct PITCommonClass {
|
|||
PITChannelInfo *info);
|
||||
void (*pre_save)(PITCommonState *s);
|
||||
void (*post_load)(PITCommonState *s);
|
||||
} PITCommonClass;
|
||||
};
|
||||
|
||||
int pit_get_out(PITChannelState *s, int64_t current_time);
|
||||
int64_t pit_get_next_transition_time(PITChannelState *s, int64_t current_time);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue