pci: map pci bars for devices with base class codes (ccrb) 0x00 and 0x0D-0x11 (thanks qeed)

there are a few more device base class codes defined 0x0D-0x11, and
qemu appears to use base class code 0x00 for some of its fake
devices.
This commit is contained in:
cinap_lenrek 2015-05-27 00:23:13 +02:00
parent d6a91e0ae4
commit 5ef922959a

View file

@ -406,6 +406,7 @@ pcilscan(int bno, Pcidev** list, Pcidev *parent)
* and work out the sizes.
*/
switch(p->ccrb) {
case 0x00: /* prehistoric */
case 0x01: /* mass storage controller */
case 0x02: /* network controller */
case 0x03: /* display controller */
@ -416,6 +417,11 @@ pcilscan(int bno, Pcidev** list, Pcidev *parent)
case 0x0A: /* docking stations */
case 0x0B: /* processors */
case 0x0C: /* serial bus controllers */
case 0x0D: /* wireless controllers */
case 0x0E: /* intelligent I/O controllers */
case 0x0F: /* sattelite communication controllers */
case 0x10: /* encryption/decryption controllers */
case 0x11: /* signal processing controllers */
if((hdt & 0x7F) != 0)
break;
rno = PciBAR0;
@ -439,7 +445,6 @@ pcilscan(int bno, Pcidev** list, Pcidev *parent)
}
break;
case 0x00:
case 0x05: /* memory controller */
case 0x06: /* bridge device */
default: