Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ahci/ahci.c
Show First 20 Lines • Show All 517 Lines • ▼ Show 20 Lines | ahci_intr_one_edge(void *data) | ||||
ATA_OUTL(ctlr->r_mem, AHCI_IS, 1 << unit); | ATA_OUTL(ctlr->r_mem, AHCI_IS, 1 << unit); | ||||
if ((arg = ctlr->interrupt[unit].argument)) | if ((arg = ctlr->interrupt[unit].argument)) | ||||
ctlr->interrupt[unit].function(arg); | ctlr->interrupt[unit].function(arg); | ||||
ATA_RBL(ctlr->r_mem, AHCI_IS); | ATA_RBL(ctlr->r_mem, AHCI_IS); | ||||
} | } | ||||
struct resource * | struct resource * | ||||
ahci_alloc_resource(device_t dev, device_t child, int type, int *rid, | ahci_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 ahci_controller *ctlr = device_get_softc(dev); | struct ahci_controller *ctlr = device_get_softc(dev); | ||||
struct resource *res; | struct resource *res; | ||||
long st; | long st; | ||||
int offset, size, unit; | int offset, size, unit; | ||||
unit = (intptr_t)device_get_ivars(child); | unit = (intptr_t)device_get_ivars(child); | ||||
res = NULL; | res = NULL; | ||||
▲ Show 20 Lines • Show All 2,196 Lines • Show Last 20 Lines |