hw/block/fdc: Implement tray status
commit2e1280e8ff95b3145bc6262accc9d447718e5318
authorMax Reitz <mreitz@redhat.com>
Mon, 19 Oct 2015 15:53:16 +0000 (19 17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Oct 2015 16:18:23 +0000 (23 18:18 +0200)
treed79318e3e022513a8000c760e016a806d28df735
parentb4d02820d95e025e57d82144f7b2ccd677ac2418
hw/block/fdc: Implement tray status

The tray of an FDD is open iff there is no medium inserted (there are
only two states for an FDD: "medium inserted" or "no medium inserted").

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/fdc.c
tests/fdc-test.c