Browse Source

Restore part of PR #180 reverted in omission.

Allow scanning of virtio-pci devices with CCRB == 0x00.

Signed-off-by: golubovsky <golubovsky@gmail.com>
golubovsky 7 years ago
parent
commit
f395facda6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      sys/src/9/386/pci.c

+ 5 - 1
sys/src/9/386/pci.c

@@ -193,7 +193,11 @@ pcilscan(int bno, char *path, Pcidev** list)
 				}
 				break;
 
-			case 0x00:
+			/*
+			 * Some virtio-pci devices have ccrb == 0x00, their BARs and
+			 * sizes also should be picked here.
+			 */
+
 			case 0x05:		/* memory controller */
 			case 0x06:		/* bridge device */
 				break;