]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
ide/atapi: add support for GET EVENT STATUS NOTIFICATION
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 19 Jul 2010 13:53:35 +0000 (15:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jul 2010 11:39:39 +0000 (13:39 +0200)
commit253cb7b9909806b83d73269afb9cf0ab3fa2ce2c
treea3f723f0f762ad2c5ae54c57c20715a5157f5d0d
parentcdcf9153e5e17dde340135fee5dcc7c299f2d4f5
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>
hw/ide/core.c