ide/atapi: add support for GET EVENT STATUS NOTIFICATION
commit966444248fb0a4bc00cc27299b6926629a51cd32
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 19 Jul 2010 13:53:35 +0000 (19 15:53 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 28 Jul 2010 19:04:24 +0000 (28 14:04 -0500)
treeb32a386cefc1dd3a89b4ed3942c6fdb3f8991e1d
parentfd2f659ee3f6f991f4f194f3fde5c9f957fd663d
ide/atapi: add support for GET EVENT STATUS NOTIFICATION

The GET EVENT STATUS NOTIFICATION is a mandatory command according
to MMC-3, even if event status notification is not supported.

This patch adds support for this command. It returns NEA ("No Event
Available") with an empty "Supported Event Classes" to show that it
doesn't event support status notification. If asychronous operation is
requested, which requires NCQ support, it returns an error according
to the specifications.

This fixes HAL support on FreeBSD and derivatives, which fill up the
logs every second with:

  acd0: FAILURE - unknown CMD (0x03) ILLEGAL REQUEST asc=0x20 ascq=0x00

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 253cb7b9909806b83d73269afb9cf0ab3fa2ce2c)

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ide/core.c