Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/rmi/xlr_pci.c
Context not available. | |||||
panic("pci_init_resources irq_rman"); | panic("pci_init_resources irq_rman"); | ||||
port_rman.rm_start = 0; | port_rman.rm_start = 0; | ||||
port_rman.rm_end = ~0ul; | port_rman.rm_end = ~0; | ||||
port_rman.rm_type = RMAN_ARRAY; | port_rman.rm_type = RMAN_ARRAY; | ||||
port_rman.rm_descr = "I/O ports"; | port_rman.rm_descr = "I/O ports"; | ||||
if (rman_init(&port_rman) | if (rman_init(&port_rman) | ||||
Context not available. | |||||
panic("pci_init_resources port_rman"); | panic("pci_init_resources port_rman"); | ||||
mem_rman.rm_start = 0; | mem_rman.rm_start = 0; | ||||
mem_rman.rm_end = ~0ul; | mem_rman.rm_end = ~0; | ||||
mem_rman.rm_type = RMAN_ARRAY; | mem_rman.rm_type = RMAN_ARRAY; | ||||
mem_rman.rm_descr = "I/O memory"; | mem_rman.rm_descr = "I/O memory"; | ||||
if (rman_init(&mem_rman) | if (rman_init(&mem_rman) | ||||
Context not available. | |||||
if (error) | if (error) | ||||
return error; | return error; | ||||
if (rman_get_start(irq) != rman_get_end(irq)) { | if (rman_get_start(irq) != rman_get_end(irq)) { | ||||
device_printf(dev, "Interrupt allocation %lu != %lu\n", | device_printf(dev, "Interrupt allocation %ju != %ju\n", | ||||
rman_get_start(irq), rman_get_end(irq)); | rman_get_start(irq), rman_get_end(irq)); | ||||
return (EINVAL); | return (EINVAL); | ||||
} | } | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
xlr_pci_alloc_resource(device_t bus, device_t child, int type, int *rid, | xlr_pci_alloc_resource(device_t bus, 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 rman *rm; | struct rman *rm; | ||||
struct resource *rv; | struct resource *rv; | ||||
Context not available. |