s390x/pci: enforce zPCI state checking
commit5d1abf234462d13bef3617cc2c55b6815703ddf2
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Tue, 19 Apr 2016 07:03:13 +0000 (19 15:03 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 11 Jul 2016 07:48:05 +0000 (11 09:48 +0200)
treea8cd1e8033e3fbf840829a1ecc4dab6c0c06a78d
parent06a96dae11a70f3c519a706639e200a635a2cc55
s390x/pci: enforce zPCI state checking

Current code uses some fields combinatorially to indicate the state of
a s390 pci device. This patch introduces device states in order to make
the code more readable and more logical.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-bus.c
hw/s390x/s390-pci-bus.h
hw/s390x/s390-pci-inst.c
hw/s390x/s390-pci-inst.h
include/hw/s390x/sclp.h