Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/dev/pci/ehci_pci.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/dev/pci/ehci_pci.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.58 retrieving revision 1.58.4.1 diff -u -p -r1.58 -r1.58.4.1 --- src/sys/dev/pci/ehci_pci.c 2014/03/29 19:28:24 1.58 +++ src/sys/dev/pci/ehci_pci.c 2017/04/05 19:54:19 1.58.4.1 @@ -1,4 +1,4 @@ -/* $NetBSD: ehci_pci.c,v 1.58 2014/03/29 19:28:24 christos Exp $ */ +/* $NetBSD: ehci_pci.c,v 1.58.4.1 2017/04/05 19:54:19 snj Exp $ */ /* * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.58 2014/03/29 19:28:24 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.58.4.1 2017/04/05 19:54:19 snj Exp $"); #include #include @@ -127,7 +127,7 @@ ehci_pci_attach(device_t parent, device_ char intrbuf[PCI_INTRSTR_LEN]; sc->sc.sc_dev = self; - sc->sc.sc_bus.hci_private = sc; + sc->sc.sc_bus.ub_hcpriv = sc; pci_aprint_devinfo(pa, "USB controller"); @@ -150,7 +150,7 @@ ehci_pci_attach(device_t parent, device_ sc->sc_pc = pc; sc->sc_tag = tag; - sc->sc.sc_bus.dmatag = pa->pa_dmat; + sc->sc.sc_bus.ub_dmatag = pa->pa_dmat; /* Handle quirks */ switch (quirk) { @@ -178,7 +178,7 @@ ehci_pci_attach(device_t parent, device_ * Allocate IRQ */ intrstr = pci_intr_string(pc, ih, intrbuf, sizeof(intrbuf)); - sc->sc_ih = pci_intr_establish(pc, ih, IPL_SCHED, ehci_intr, sc); + sc->sc_ih = pci_intr_establish(pc, ih, IPL_USB, ehci_intr, sc); if (sc->sc_ih == NULL) { aprint_error_dev(self, "couldn't establish interrupt"); if (intrstr != NULL) @@ -192,14 +192,14 @@ ehci_pci_attach(device_t parent, device_ case PCI_USBREV_PRE_1_0: case PCI_USBREV_1_0: case PCI_USBREV_1_1: - sc->sc.sc_bus.usbrev = USBREV_UNKNOWN; + sc->sc.sc_bus.ub_revision = USBREV_UNKNOWN; aprint_verbose_dev(self, "pre-2.0 USB rev\n"); return; case PCI_USBREV_2_0: - sc->sc.sc_bus.usbrev = USBREV_2_0; + sc->sc.sc_bus.ub_revision = USBREV_2_0; break; default: - sc->sc.sc_bus.usbrev = USBREV_UNKNOWN; + sc->sc.sc_bus.ub_revision = USBREV_UNKNOWN; break; } @@ -469,7 +469,7 @@ static int ehci_apply_amd_quirks(struct ehci_pci_softc *sc) { pcireg_t value; - + aprint_normal_dev(sc->sc.sc_dev, "applying AMD SB600/SB700 USB freeze workaround\n"); value = pci_conf_read(sc->sc_pc, sc->sc_tag, EHCI_SBx00_WORKAROUND_REG);