version 1.59, 2014/09/21 14:30:22 |
version 1.60, 2015/07/15 03:54:53 |
Line 142 ehci_pci_attach(device_t parent, device_ |
|
Line 142 ehci_pci_attach(device_t parent, device_ |
|
return; |
return; |
} |
} |
|
|
|
sc->sc_pc = pc; |
|
sc->sc_tag = tag; |
|
sc->sc.sc_bus.dmatag = pa->pa_dmat; |
|
|
/* Disable interrupts, so we don't get any spurious ones. */ |
/* Disable interrupts, so we don't get any spurious ones. */ |
sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH); |
sc->sc.sc_offs = EREAD1(&sc->sc, EHCI_CAPLENGTH); |
DPRINTF(("%s: offs=%d\n", device_xname(self), sc->sc.sc_offs)); |
DPRINTF(("%s: offs=%d\n", device_xname(self), sc->sc.sc_offs)); |
EOWRITE4(&sc->sc, EHCI_USBINTR, 0); |
EOWRITE4(&sc->sc, EHCI_USBINTR, 0); |
|
|
sc->sc_pc = pc; |
|
sc->sc_tag = tag; |
|
sc->sc.sc_bus.dmatag = pa->pa_dmat; |
|
|
|
/* Handle quirks */ |
/* Handle quirks */ |
switch (quirk) { |
switch (quirk) { |
case EHCI_PCI_QUIRK_AMD_SB600: |
case EHCI_PCI_QUIRK_AMD_SB600: |
Line 325 ehci_dump_caps(ehci_softc_t *sc, pci_chi |
|
Line 325 ehci_dump_caps(ehci_softc_t *sc, pci_chi |
|
switch (id) { |
switch (id) { |
case EHCI_CAP_ID_LEGACY: |
case EHCI_CAP_ID_LEGACY: |
legctlsts = pci_conf_read(pc, tag, |
legctlsts = pci_conf_read(pc, tag, |
addr + PCI_EHCI_USBLEGCTLSTS); |
addr + PCI_EHCI_USBLEGCTLSTS); |
printf("ehci_dump_caps: legsup=0x%08x " |
printf("ehci_dump_caps: legsup=0x%08x " |
"legctlsts=0x%08x\n", cap, legctlsts); |
"legctlsts=0x%08x\n", cap, legctlsts); |
break; |
break; |