View | Details | Raw Unified | Return to bug 156596 | Differences between
and this patch

Collapse All | Expand All

(-)ehci.c (-9 / +6 lines)
Lines 354-365 Link Here
354
		    htohc32(sc, EHCI_QH_SET_MULT(1));
354
		    htohc32(sc, EHCI_QH_SET_MULT(1));
355
		qh->qh_curqtd = 0;
355
		qh->qh_curqtd = 0;
356
356
357
		qh->qh_qtd.qtd_next =
357
		qh->qh_qtd.qtd_next = sc->sc_terminate_self;
358
		    htohc32(sc, EHCI_LINK_TERMINATE);
358
		qh->qh_qtd.qtd_altnext = sc->sc_terminate_self;
359
		qh->qh_qtd.qtd_altnext =
359
		qh->qh_qtd.qtd_status = htohc32(sc, EHCI_QTD_HALTED);
360
		    htohc32(sc, EHCI_LINK_TERMINATE);
361
		qh->qh_qtd.qtd_status =
362
		    htohc32(sc, EHCI_QTD_HALTED);
363
	}
360
	}
364
361
365
	/*
362
	/*
Lines 394-400 Link Here
394
		qh = sc->sc_intr_p_last[0];
391
		qh = sc->sc_intr_p_last[0];
395
392
396
		/* the last (1ms) QH terminates */
393
		/* the last (1ms) QH terminates */
397
		qh->qh_link = htohc32(sc, EHCI_LINK_TERMINATE);
394
		qh->qh_link = sc->sc_terminate_self;
398
	}
395
	}
399
	for (i = 0; i < EHCI_VIRTUAL_FRAMELIST_COUNT; i++) {
396
	for (i = 0; i < EHCI_VIRTUAL_FRAMELIST_COUNT; i++) {
400
		ehci_sitd_t *sitd;
397
		ehci_sitd_t *sitd;
Lines 497-504 Link Here
497
		qh->qh_curqtd = 0;
494
		qh->qh_curqtd = 0;
498
495
499
		/* fill the overlay qTD */
496
		/* fill the overlay qTD */
500
		qh->qh_qtd.qtd_next = htohc32(sc, EHCI_LINK_TERMINATE);
497
		qh->qh_qtd.qtd_next = sc->sc_terminate_self;
501
		qh->qh_qtd.qtd_altnext = htohc32(sc, EHCI_LINK_TERMINATE);
498
		qh->qh_qtd.qtd_altnext = sc->sc_terminate_self;
502
		qh->qh_qtd.qtd_status = htohc32(sc, EHCI_QTD_HALTED);
499
		qh->qh_qtd.qtd_status = htohc32(sc, EHCI_QTD_HALTED);
503
	}
500
	}
504
	/* flush all cache into memory */
501
	/* flush all cache into memory */

Return to bug 156596