AHCI: Rework IRQ constants
commit5fa0feecaa5c1e05b6bed0e9684b78ae15f0e755
authorJohn Snow <jsnow@redhat.com>
Mon, 18 Sep 2017 19:01:26 +0000 (18 15:01 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 18 Sep 2017 23:41:11 +0000 (18 19:41 -0400)
treec88be2deb976156b5b0e8850b06f2fef88468688
parente4baa9f00b9ddf47ac2811eb58a3931434b848f7
AHCI: Rework IRQ constants

Create a new enum so that we can name the IRQ bits, which will make debugging
them a little nicer if we can print them out. Not handled in this patch, but
this will make it possible to get a nice debug printf detailing exactly which
status bits are set, as it can be multiple at any given time.

As a consequence of this patch, it is no longer possible to set multiple IRQ
codes at once, but nothing was utilizing this ability anyway.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20170901001502.29915-8-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
hw/ide/ahci.c
hw/ide/ahci_internal.h
hw/ide/trace-events