summaryrefslogtreecommitdiff
path: root/hw/ide/ahci.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-01-15 16:12:09 +0100
committerKevin Wolf <kwolf@redhat.com>2013-01-25 18:18:36 +0100
commit4ac557c89b04d506c876a0a378e815d822261c8a (patch)
treef0c0053a8233eb245ce6b4f1a8321642afdd3e11 /hw/ide/ahci.h
parent1147bb15a715a907a91195c2ed601fc926e43d46 (diff)
ahci: Change data types in preparation for migration
The size of an int depends on the host, so in order to be able to migrate these fields, make them either int32_t or bool, depending on the use. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/ahci.h')
-rw-r--r--hw/ide/ahci.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h
index 735b379e8..70d3b57ad 100644
--- a/hw/ide/ahci.h
+++ b/hw/ide/ahci.h
@@ -281,9 +281,9 @@ struct AHCIDevice {
QEMUBH *check_bh;
uint8_t *lst;
uint8_t *res_fis;
- int done_atapi_packet;
- int busy_slot;
- int init_d2h_sent;
+ bool done_atapi_packet;
+ int32_t busy_slot;
+ bool init_d2h_sent;
AHCICmdHdr *cur_cmd;
NCQTransferState ncq_tfs[AHCI_MAX_CMDS];
};
@@ -295,7 +295,7 @@ typedef struct AHCIState {
MemoryRegion idp; /* Index-Data Pair I/O port space */
unsigned idp_offset; /* Offset of index in I/O port space */
uint32_t idp_index; /* Current IDP index */
- int ports;
+ int32_t ports;
qemu_irq irq;
DMAContext *dma;
} AHCIState;