~kris/9p

9hist

b317ad4f380d1aa62ced4492a7ef978841cf6ad6 — David du Colombier 26 years ago 32f9e48
Plan 9 from Bell Labs 2000-07-20
1 files changed, 5 insertions(+), 8 deletions(-)

M pc/devusb.c
M pc/devusb.c => pc/devusb.c +5 -8
@@ 1247,14 1247,11 @@ usbreset(void)
	memset(&cfg, 0, sizeof(cfg));
	cfg = pcimatch(0, 0x8086, 0x7112);	/* Intel chipset PIIX 4*/
	if(cfg == nil) {
//		cfg = pcimatch(0, 0x8086, 0x7112);	/* Intel chipset PIIX 3*/
//		if(cfg == nil) {
			cfg = pcimatch(0, 0x1106, 0x0586);	/* Via chipset */
			if(cfg == nil) {
				DPRINT("No USB device found\n");
				return;
			}
//		}
		cfg = pcimatch(0, 0x1106, 0x0586);	/* Via chipset */
		if(cfg == nil) {
			DPRINT("No USB device found\n");
			return;
		}
	}
	port = cfg->mem[4].bar & ~0x0F;
	if (port == 0) {