Lines Matching defs:am
354 struct acpipci_mcfg *am = v;
356 if (tag < (am->am_min_bus << 20) ||
357 tag >= ((am->am_max_bus + 1) << 20))
360 return bus_space_read_4(am->am_iot, am->am_ioh, tag | reg);
366 struct acpipci_mcfg *am = v;
368 if (tag < (am->am_min_bus << 20) ||
369 tag >= ((am->am_max_bus + 1) << 20))
372 bus_space_write_4(am->am_iot, am->am_ioh, tag | reg, data);
378 struct acpipci_mcfg *am = v;
409 if (rc->segment == am->am_segment)
743 struct acpipci_mcfg *am;
745 am = malloc(sizeof(struct acpipci_mcfg), M_DEVBUF, M_WAITOK | M_ZERO);
746 am->am_segment = segment;
747 am->am_min_bus = min_bus;
748 am->am_max_bus = max_bus;
750 am->am_iot = iot;
751 if (bus_space_map(iot, addr, (max_bus + 1) << 20, 0, &am->am_ioh))
754 am->am_pc.pc_conf_v = am;
755 am->am_pc.pc_attach_hook = acpipci_attach_hook;
756 am->am_pc.pc_bus_maxdevs = acpipci_bus_maxdevs;
757 am->am_pc.pc_make_tag = acpipci_make_tag;
758 am->am_pc.pc_decompose_tag = acpipci_decompose_tag;
759 am->am_pc.pc_conf_size = acpipci_conf_size;
760 am->am_pc.pc_conf_read = acpipci_conf_read;
761 am->am_pc.pc_conf_write = acpipci_conf_write;
762 SLIST_INSERT_HEAD(&acpipci_mcfgs, am, am_list);
789 struct acpipci_mcfg *am;
791 SLIST_FOREACH(am, &acpipci_mcfgs, am_list) {
792 if (segment == am->am_segment &&
793 bus >= am->am_min_bus && bus <= am->am_max_bus)
794 return &am->am_pc;