Lines Matching full:hpa

228 	unsigned long hpa;  member
238 if (pdev->hpa.start == d->hpa) { in find_device()
246 static struct parisc_device *find_device_by_addr(unsigned long hpa) in find_device_by_addr() argument
249 .hpa = hpa, in find_device_by_addr()
495 alloc_pa_dev(unsigned long hpa, struct hardware_path *mod_path) in alloc_pa_dev() argument
504 if (find_device_by_addr(hpa) != NULL) in alloc_pa_dev()
507 status = pdc_iodc_read(&bytecnt, hpa, 0, &iodc_data, 32); in alloc_pa_dev()
524 dev->hpa.start = hpa; in alloc_pa_dev()
529 if (hpa == 0xf4000000 || hpa == 0xf8000000) { in alloc_pa_dev()
530 dev->hpa.end = hpa + 0x03ffffff; in alloc_pa_dev()
531 } else if (hpa == 0xf6000000 || hpa == 0xfa000000) { in alloc_pa_dev()
532 dev->hpa.end = hpa + 0x01ffffff; in alloc_pa_dev()
534 dev->hpa.end = hpa + 0xfff; in alloc_pa_dev()
536 dev->hpa.flags = IORESOURCE_MEM; in alloc_pa_dev()
537 dev->hpa.name = dev->name; in alloc_pa_dev()
545 if ((hpa & 0xfff) == 0 && insert_resource(&iomem_resource, &dev->hpa)) in alloc_pa_dev()
546 pr_warn("Unable to claim HPA %lx for device %s\n", hpa, name); in alloc_pa_dev()
798 ((gsc_readl(dev->hpa.start + offsetof(struct bc_module, io_status)) \
807 #define READ_IO_IO_LOW(dev) (unsigned long)(signed int)gsc_readl(dev->hpa.start + IO_IO_LOW)
808 #define READ_IO_IO_HIGH(dev) (unsigned long)(signed int)gsc_readl(dev->hpa.start + IO_IO_HIGH)
847 unsigned long hpa = io_io_low; in walk_native_bus() local
852 for(i = 0; i < MAX_NATIVE_DEVICES; i++, hpa += NATIVE_DEVICE_OFFSET) { in walk_native_bus()
856 dev = find_device_by_addr(hpa); in walk_native_bus()
859 dev = alloc_pa_dev(hpa, &path); in walk_native_bus()
868 } while(!devices_found && hpa < io_io_high); in walk_native_bus()
891 ++count, dev->name, &(dev->hpa.start), dev->id.hw_type, in print_parisc_device()
965 unsigned long hpa = dev->hpa.start; in qemu_print_hpa() local
967 pr_cont("\t{\t.hpa = 0x%08lx,\\\n", hpa); in qemu_print_hpa()
968 pr_cont("\t\t.iodc = &iodc_data_hpa_%08lx,\\\n", hpa); in qemu_print_hpa()
969 pr_cont("\t\t.mod_info = &mod_info_hpa_%08lx,\\\n", hpa); in qemu_print_hpa()
970 pr_cont("\t\t.mod_path = &mod_path_hpa_%08lx,\\\n", hpa); in qemu_print_hpa()
971 pr_cont("\t\t.num_addr = HPA_%08lx_num_addr,\\\n", hpa); in qemu_print_hpa()
972 pr_cont("\t\t.add_addr = { HPA_%08lx_add_addr } },\\\n", hpa); in qemu_print_hpa()
985 /* print iodc data of the various hpa modules for qemu inclusion */
990 unsigned long hpa = dev->hpa.start; in qemu_print_iodc_data() local
998 status = pdc_iodc_read(&count, hpa, 0, in qemu_print_iodc_data()
1001 pr_info("No IODC data for hpa 0x%08lx\n", hpa); in qemu_print_iodc_data()
1011 hpa, parisc_hardware_description(&dev->id)); in qemu_print_iodc_data()
1017 } while (status == PDC_OK && pdc_mod_info.mod_addr != hpa); in qemu_print_iodc_data()
1020 " mod_info_hpa_%08lx = {\n", hpa); in qemu_print_iodc_data()
1030 "mod_path_hpa_%08lx = {\n", hpa); in qemu_print_iodc_data()
1047 pr_info("static struct pdc_iodc iodc_data_hpa_%08lx = {\n", hpa); in qemu_print_iodc_data()
1068 pr_info("#define HPA_%08lx_num_addr %d\n", hpa, dev->num_addrs); in qemu_print_iodc_data()
1069 pr_info("#define HPA_%08lx_add_addr ", hpa); in qemu_print_iodc_data()