spapr_pci: encode class code including Prog IF register
commit4a7c34741584e91aa838a9e45b8ec5cdc65a343b
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Thu, 2 Jul 2015 06:23:09 +0000 (2 16:23 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 7 Jul 2015 15:44:50 +0000 (7 17:44 +0200)
treecf34720a37d48321fffdce3863e0f64647773613
parent72187935b475454792512d44782a33f112b120e6
spapr_pci: encode class code including Prog IF register

Current code missed the Prog IF register. All Class Code, Subclass,
and Prog IF registers are needed to identify the accurate device type.

For example: USB controllers use the PROG IF for denoting: USB
FullSpeed, HighSpeed or SuperSpeed.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_pci.c