Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/siis/siis.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
if (ctlr->irq.r_irq_rid) { | if (ctlr->irq.r_irq_rid) { | ||||
ATA_OUTL(ctlr->r_gmem, SIIS_GCTL, | ATA_OUTL(ctlr->r_gmem, SIIS_GCTL, | ||||
ctlr->gctl | SIIS_GCTL_MSIACK); | ctlr->gctl | SIIS_GCTL_MSIACK); | ||||
} | } | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
siis_alloc_resource(device_t dev, device_t child, int type, int *rid, | siis_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 siis_controller *ctlr = device_get_softc(dev); | struct siis_controller *ctlr = device_get_softc(dev); | ||||
int unit = ((struct siis_channel *)device_get_softc(child))->unit; | int unit = ((struct siis_channel *)device_get_softc(child))->unit; | ||||
struct resource *res = NULL; | struct resource *res = NULL; | ||||
int offset = unit << 13; | int offset = unit << 13; | ||||
long st; | long st; | ||||
switch (type) { | switch (type) { | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |