Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mvs/mvs_soc.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
function(&arg); | function(&arg); | ||||
} | } | ||||
ic >>= 2; | ic >>= 2; | ||||
} | } | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
mvs_alloc_resource(device_t dev, device_t child, int type, int *rid, | mvs_alloc_resource(device_t dev, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
struct mvs_controller *ctlr = device_get_softc(dev); | struct mvs_controller *ctlr = device_get_softc(dev); | ||||
int unit = ((struct mvs_channel *)device_get_softc(child))->unit; | int unit = ((struct mvs_channel *)device_get_softc(child))->unit; | ||||
struct resource *res = NULL; | struct resource *res = NULL; | ||||
int offset = PORT_BASE(unit & 0x03); | int offset = PORT_BASE(unit & 0x03); | ||||
long st; | long st; | ||||
switch (type) { | switch (type) { | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |