Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bhnd/cores/usb/bhnd_usb.c
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct bhnd_usb_softc *sc; | struct bhnd_usb_softc *sc; | ||||
int rid; | int rid; | ||||
uint32_t tmp; | uint32_t tmp; | ||||
int tries, err; | int tries, err; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
bhnd_reset_hw(dev, 0); | bhnd_reset_hw(dev, 0, 0); | ||||
/* | /* | ||||
* Allocate the resources which the parent bus has already | * Allocate the resources which the parent bus has already | ||||
* determined for us. | * determined for us. | ||||
* XXX: There are few windows (usually 2), RID should be chip-specific | * XXX: There are few windows (usually 2), RID should be chip-specific | ||||
*/ | */ | ||||
rid = 0; | rid = 0; | ||||
sc->sc_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); | sc->sc_mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); | ||||
▲ Show 20 Lines • Show All 391 Lines • Show Last 20 Lines |