Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cy/cy_pci.c
Context not available. | |||||
ioport_rid = CY_PCI_BASE_ADDR1; | ioport_rid = CY_PCI_BASE_ADDR1; | ||||
ioport_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &ioport_rid, | ioport_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &ioport_rid, | ||||
0ul, ~0ul, 0ul, RF_ACTIVE); | 0, ~0, 0, RF_ACTIVE); | ||||
if (ioport_res == NULL) { | if (ioport_res == NULL) { | ||||
device_printf(dev, "ioport resource allocation failed\n"); | device_printf(dev, "ioport resource allocation failed\n"); | ||||
goto fail; | goto fail; | ||||
Context not available. | |||||
mem_rid = CY_PCI_BASE_ADDR2; | mem_rid = CY_PCI_BASE_ADDR2; | ||||
mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &mem_rid, | mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &mem_rid, | ||||
0ul, ~0ul, 0ul, RF_ACTIVE); | 0, ~0, 0, RF_ACTIVE); | ||||
if (mem_res == NULL) { | if (mem_res == NULL) { | ||||
device_printf(dev, "memory resource allocation failed\n"); | device_printf(dev, "memory resource allocation failed\n"); | ||||
goto fail; | goto fail; | ||||
Context not available. | |||||
} | } | ||||
irq_rid = 0; | irq_rid = 0; | ||||
irq_res = bus_alloc_resource(dev, SYS_RES_IRQ, &irq_rid, 0ul, ~0ul, 0ul, | irq_res = bus_alloc_resource(dev, SYS_RES_IRQ, &irq_rid, 0, ~0, 0, | ||||
RF_SHAREABLE | RF_ACTIVE); | RF_SHAREABLE | RF_ACTIVE); | ||||
if (irq_res == NULL) { | if (irq_res == NULL) { | ||||
device_printf(dev, "interrupt resource allocation failed\n"); | device_printf(dev, "interrupt resource allocation failed\n"); | ||||
Context not available. |