Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/iicbus/iicoc.c
Context not available. | |||||
mtx_init(&sc->sc_mtx, "iicoc", "iicoc", MTX_DEF); | mtx_init(&sc->sc_mtx, "iicoc", "iicoc", MTX_DEF); | ||||
sc->mem_rid = 0; | sc->mem_rid = 0; | ||||
sc->mem_res = bus_alloc_resource(dev, | sc->mem_res = bus_alloc_resource(dev, | ||||
SYS_RES_MEMORY, &sc->mem_rid, 0ul, ~0ul, 0x100, RF_ACTIVE); | SYS_RES_MEMORY, &sc->mem_rid, 0, ~0, 0x100, RF_ACTIVE); | ||||
if (sc->mem_res == NULL) { | if (sc->mem_res == NULL) { | ||||
device_printf(dev, "Could not allocate bus resource.\n"); | device_printf(dev, "Could not allocate bus resource.\n"); | ||||
Context not available. |