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