Lines Matching refs:io_mem

51 static void __iomem *io_mem;
241 io_mem = ioremap((0x40 << 4) + 0x0e, 2);
242 if (!io_mem)
244 ebda_seg = readw(io_mem);
245 iounmap(io_mem);
248 io_mem = ioremap(ebda_seg<<4, 1);
249 if (!io_mem)
251 ebda_sz = readb(io_mem);
252 iounmap(io_mem);
257 io_mem = ioremap(ebda_seg<<4, (ebda_sz * 1024));
258 if (!io_mem)
270 next_offset = readw(io_mem + offset); /* offset of next blk */
275 blk_id = readw(io_mem + offset); /* this blk id */
285 format = readb(io_mem + offset);
295 re = readw(io_mem + sub_addr); /* next sub blk */
298 rc_id = readw(io_mem + sub_addr); /* sub blk id */
304 num_ctlrs = readb(io_mem + sub_addr);
322 rc = readw(io_mem + sub_addr); /* next sub blk */
325 re_id = readw(io_mem + sub_addr); /* sub blk id */
332 num_entries = readw(io_mem + sub_addr);
360 rio_table_ptr->ver_num = readb(io_mem + offset);
361 rio_table_ptr->scal_count = readb(io_mem + offset + 1);
362 rio_table_ptr->riodev_count = readb(io_mem + offset + 2);
393 iounmap(io_mem);
414 rio_detail_ptr->rio_node_id = readb(io_mem + offset);
415 rio_detail_ptr->bbar = readl(io_mem + offset + 1);
416 rio_detail_ptr->rio_type = readb(io_mem + offset + 5);
417 rio_detail_ptr->owner_id = readb(io_mem + offset + 6);
418 rio_detail_ptr->port0_node_connect = readb(io_mem + offset + 7);
419 rio_detail_ptr->port0_port_connect = readb(io_mem + offset + 8);
420 rio_detail_ptr->port1_node_connect = readb(io_mem + offset + 9);
421 rio_detail_ptr->port1_port_connect = readb(io_mem + offset + 10);
422 rio_detail_ptr->first_slot_num = readb(io_mem + offset + 11);
423 rio_detail_ptr->status = readb(io_mem + offset + 12);
424 rio_detail_ptr->wpindex = readb(io_mem + offset + 13);
425 rio_detail_ptr->chassis_num = readb(io_mem + offset + 14);
698 ctlr_id = readb(io_mem + addr);
700 slot_num = readb(io_mem + addr);
706 bus_num = readb(io_mem + addr);
711 temp = readb(io_mem + addr);
732 slot_ptr->slot_num = readb(io_mem + addr_slot);
733 slot_ptr->slot_bus_num = readb(io_mem + addr_slot + slot_num);
734 slot_ptr->ctl_index = readb(io_mem + addr_slot + 2*slot_num);
735 slot_ptr->slot_cap = readb(io_mem + addr_slot + 3*slot_num);
774 bus_ptr->bus_num = readb(io_mem + addr_bus + bus);
775 bus_ptr->slots_at_33_conv = readb(io_mem + addr_bus + bus_num + 8 * bus);
776 bus_ptr->slots_at_66_conv = readb(io_mem + addr_bus + bus_num + 8 * bus + 1);
778 bus_ptr->slots_at_66_pcix = readb(io_mem + addr_bus + bus_num + 8 * bus + 2);
780 bus_ptr->slots_at_100_pcix = readb(io_mem + addr_bus + bus_num + 8 * bus + 3);
782 bus_ptr->slots_at_133_pcix = readb(io_mem + addr_bus + bus_num + 8 * bus + 4);
799 hpc_ptr->u.pci_ctlr.bus = readb(io_mem + addr);
800 hpc_ptr->u.pci_ctlr.dev_fun = readb(io_mem + addr + 1);
801 hpc_ptr->irq = readb(io_mem + addr + 2);
809 hpc_ptr->u.isa_ctlr.io_start = readw(io_mem + addr);
810 hpc_ptr->u.isa_ctlr.io_end = readw(io_mem + addr + 2);
817 hpc_ptr->irq = readb(io_mem + addr + 4);
823 hpc_ptr->u.wpeg_ctlr.wpegbbar = readl(io_mem + addr);
824 hpc_ptr->u.wpeg_ctlr.i2c_addr = readb(io_mem + addr + 4);
825 hpc_ptr->irq = readb(io_mem + addr + 5);
931 type = readb(io_mem + addr);
939 iounmap(io_mem);
944 rsrc_ptr->bus_num = readb(io_mem + addr);
945 rsrc_ptr->dev_fun = readb(io_mem + addr + 1);
946 rsrc_ptr->start_addr = readw(io_mem + addr + 2);
947 rsrc_ptr->end_addr = readw(io_mem + addr + 4);
960 iounmap(io_mem);
965 rsrc_ptr->bus_num = readb(io_mem + addr);
966 rsrc_ptr->dev_fun = readb(io_mem + addr + 1);
967 rsrc_ptr->start_addr = readl(io_mem + addr + 2);
968 rsrc_ptr->end_addr = readl(io_mem + addr + 6);