atapi: move GESN definitions to scsi-defs.h
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2011 14:00:52 +0000 (16:00 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:50 +0000 (19:25 +0200)
commitf0f992e6509354e0e9d3bd46681bacb1ff53f62b
tree764194831f1c4efd6b0adfbc780f77de6d02fb66
parent67cc61e43077eeffc7c95a1bb25d05a12d051c67
atapi: move GESN definitions to scsi-defs.h

As a complement to the previous patch, move definitions for GET EVENT
STATUS NOTIFICATION from the two functions to scsi-defs.h.

The NCR_* constants are just bit values corresponding to the ENC_*
values, with no offsets even, so keep just one copy.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c
hw/scsi-defs.h