aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/internal.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-09-06 18:58:43 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-12 15:17:20 +0200
commita0a7573b846ae9b346a34f10c4fe4e317b9eebfd (patch)
tree0de6ee5cb1c4b7f5913f41a7c3776736b89012af /hw/ide/internal.h
parent22cf56c4d81935bf89a30c2dc0296c1f14199518 (diff)
ide/atapi: Track tray locked state
We already track it in BlockDriverState. Just like tray open/close state, we should track it in the device models instead, because it's device state. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/internal.h')
-rw-r--r--hw/ide/internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index 8a9052ea53..663db39697 100644
--- a/hw/ide/internal.h
+++ b/hw/ide/internal.h
@@ -443,6 +443,7 @@ struct IDEState {
uint8_t sense_key;
uint8_t asc;
bool tray_open;
+ bool tray_locked;
uint8_t cdrom_changed;
int packet_transfer_size;
int elementary_transfer_size;