Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/snc/if_snc.c
Context not available. | |||||
struct resource *res; | struct resource *res; | ||||
res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, | res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, | ||||
0ul, ~0ul, SNEC_NREGS, RF_ACTIVE); | 0, ~0, SNEC_NREGS, RF_ACTIVE); | ||||
if (res) { | if (res) { | ||||
sc->ioport = res; | sc->ioport = res; | ||||
sc->ioport_rid = rid; | sc->ioport_rid = rid; | ||||
Context not available. | |||||
struct resource *res; | struct resource *res; | ||||
res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, | res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, | ||||
0ul, ~0ul, SNEC_NMEMS, RF_ACTIVE); | 0, ~0, SNEC_NMEMS, RF_ACTIVE); | ||||
if (res) { | if (res) { | ||||
sc->iomem = res; | sc->iomem = res; | ||||
sc->iomem_rid = rid; | sc->iomem_rid = rid; | ||||
Context not available. |