Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cs/if_cs.c
Context not available. | |||||
{ | { | ||||
int i; | int i; | ||||
int error; | int error; | ||||
u_long irq, junk; | rman_res_t irq, junk; | ||||
struct cs_softc *sc = device_get_softc(dev); | struct cs_softc *sc = device_get_softc(dev); | ||||
unsigned rev_type = 0; | unsigned rev_type = 0; | ||||
uint16_t id; | uint16_t id; | ||||
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, size, RF_ACTIVE); | 0, ~0, size, RF_ACTIVE); | ||||
if (res == NULL) | if (res == NULL) | ||||
return (ENOENT); | return (ENOENT); | ||||
sc->port_rid = rid; | sc->port_rid = rid; | ||||
Context not available. |