]> git.proxmox.com Git - qemu.git/blobdiff - hw/ide/internal.h
atapi: GESN: implement 'media' subcommand
[qemu.git] / hw / ide / internal.h
index d533fb63b3bfa89ff84eef9cc980cea4b889535e..ba7e9a8ee2a33542ce60c1e97cf5402aa212cd2f 100644 (file)
@@ -373,6 +373,11 @@ typedef int DMAFunc(IDEDMA *);
 typedef int DMAIntFunc(IDEDMA *, int);
 typedef void DMARestartFunc(void *, int, int);
 
+struct unreported_events {
+    bool eject_request;
+    bool new_media;
+};
+
 /* NOTE: IDEState represents in fact one drive */
 struct IDEState {
     IDEBus *bus;
@@ -408,6 +413,7 @@ struct IDEState {
     BlockDriverState *bs;
     char version[9];
     /* ATAPI specific */
+    struct unreported_events events;
     uint8_t sense_key;
     uint8_t asc;
     uint8_t cdrom_changed;