Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mvs/mvs_pci.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
ctlr->msia = 0; /* Allow MIM update. */ | ctlr->msia = 0; /* Allow MIM update. */ | ||||
ATA_OUTL(ctlr->r_mem, CHIP_MIM, ctlr->mim); | ATA_OUTL(ctlr->r_mem, CHIP_MIM, ctlr->mim); | ||||
mtx_unlock(&ctlr->mtx); | mtx_unlock(&ctlr->mtx); | ||||
} | } | ||||
} | } | ||||
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 = HC_BASE(unit >> 2) + PORT_BASE(unit & 0x03); | int offset = HC_BASE(unit >> 2) + PORT_BASE(unit & 0x03); | ||||
long st; | long st; | ||||
switch (type) { | switch (type) { | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |