Lines Matching refs:bar
41 #define BAR_INDEX "device/bar"
59 uint8_t bar, slot;
61 || gDeviceManager->get_attr_uint8(node, BAR_INDEX, &bar, false) < B_OK)
65 TRACE("Register SD bus at slot %d, using bar %d\n", slot + 1, bar);
70 for (; bar < 6 && slot > 0; bar++, slot--) {
71 if ((pciInfo.u.h0.base_register_flags[bar] & PCI_address_type)
73 bar++;
77 phys_addr_t physicalAddress = pciInfo.u.h0.base_registers[bar];
78 uint64 barSize = pciInfo.u.h0.base_register_sizes[bar];
79 if ((pciInfo.u.h0.base_register_flags[bar] & PCI_address_type)
81 physicalAddress |= (uint64)pciInfo.u.h0.base_registers[bar + 1] << 32;
82 barSize |= (uint64)pciInfo.u.h0.base_register_sizes[bar + 1] << 32;
148 uint8 bar = SDHCI_PCI_SLOT_INFO_FIRST_BASE_INDEX(slotsInfo);
151 TRACE("register_child_devices: %u, %u\n", bar, slotsCount);
155 if (slotsCount > 6 || bar > 5) {
156 ERROR("Invalid slots count: %d or BAR count: %d \n", slotsCount, bar);
181 { BAR_INDEX, B_UINT8_TYPE, { .ui8 = bar} },