Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/sdhci/sdhci_pci.c
Context not available. | |||||
/* Allocate memory. */ | /* Allocate memory. */ | ||||
rid = PCIR_BAR(bar + i); | rid = PCIR_BAR(bar + i); | ||||
sc->mem_res[i] = bus_alloc_resource(dev, SYS_RES_MEMORY, | sc->mem_res[i] = bus_alloc_resource(dev, SYS_RES_MEMORY, | ||||
&rid, 0ul, ~0ul, 0x100, RF_ACTIVE); | &rid, 0, ~0, 0x100, RF_ACTIVE); | ||||
if (sc->mem_res[i] == NULL) { | if (sc->mem_res[i] == NULL) { | ||||
device_printf(dev, "Can't allocate memory for slot %d\n", i); | device_printf(dev, "Can't allocate memory for slot %d\n", i); | ||||
continue; | continue; | ||||
Context not available. |