/fuchsia/zircon/bootloader/src/ |
H A D | pci.c | 40 uint32_t bar[6]; member in struct:__anon12 107 uint64_t n = ((uint64_t) pci_hdr.bar[0]) | 108 ((uint64_t) pci_hdr.bar[1]) << 32UL; 120 for (int bar = 0; bar < 6; bar++) { 121 if (pci_hdr.bar[bar]) { 122 printf(" bar[%d]: 0x%08x\n", bar, pci_hd [all...] |
/fuchsia/zircon/system/dev/bus/virtio/backends/ |
H A D | pci_modern.cpp | 22 pci_config_read8(pci, cap_field(offset, bar), &cap.bar); 177 // Attempt to map a bar found in a capability structure. If it has already been 180 zx_status_t PciModernBackend::MapBar(uint8_t bar) { argument 181 if (bar >= fbl::count_of(bar_)) { 185 if (bar_[bar].mmio_handle != ZX_HANDLE_INVALID) { 192 zx_status_t s = pci_map_bar(&pci_, bar, ZX_CACHE_POLICY_UNCACHED_DEVICE, &base, &size, &handle); 194 zxlogf(ERROR, "%s: Failed to map bar %u: %d\n", tag(), bar, s); 199 bar_[bar] [all...] |
H A D | pci.h | 125 zx_status_t MapBar(uint8_t bar); 127 struct bar { struct in class:virtio::PciModernBackend
|
/fuchsia/zircon/system/utest/fidl-compiler/ |
H A D | table_tests.cpp | 124 [FooAttr="bar"] 127 2: bool bar; 135 [FooAttr="bar"]
|
/fuchsia/zircon/system/dev/bus/pci/ |
H A D | proxy.c | 168 .bar.id = bar_id, 176 *out_bar = resp.bar; 183 zxlogf(ERROR, "Failed to map IO window for bar into process: %d\n", st); 198 // Map a pci device's bar into the process's address space 209 zx_pci_bar_t bar; local 210 zx_status_t status = pci_op_get_bar(ctx, bar_id, &bar); 216 if (bar.type == ZX_PCI_BAR_TYPE_PIO || bar.handle == ZX_HANDLE_INVALID) { 220 status = zx_vmo_set_cache_policy(bar.handle, cache_policy); 222 zx_handle_close(bar [all...] |
H A D | kpci-private.h | 78 zx_pci_bar_t bar; member in union:__anon265::__anon266
|
H A D | kpci.c | 98 // bar to pass back to the devhost making the call. 100 if (req->bar.id >= ZX_PCI_MAX_BAR_REGS) { 106 zx_pci_bar_t bar; local 107 zx_status_t st = zx_pci_get_bar(device->handle, req->bar.id, &bar, &handle); 109 resp.bar = bar;
|
/fuchsia/zircon/system/dev/display/simple/ |
H A D | simple-display.h | 62 zx_status_t bind_simple_pci_display(zx_device_t* dev, const char* name, uint32_t bar, 66 zx_status_t bind_simple_pci_display_bootloader(zx_device_t* dev, const char* name, uint32_t bar);
|
H A D | simple-display.cpp | 182 zx_status_t bind_simple_pci_display_bootloader(zx_device_t* dev, const char* name, uint32_t bar) { argument 191 return bind_simple_pci_display(dev, name, bar, width, height, stride, format); 194 zx_status_t bind_simple_pci_display(zx_device_t* dev, const char* name, uint32_t bar, argument 207 status = pci_map_bar(&pci, bar, ZX_CACHE_POLICY_WRITE_COMBINING, 210 printf("%s: failed to map pci bar %d: %d\n", name, bar, status);
|
/fuchsia/zircon/kernel/dev/pcie/include/dev/ |
H A D | pci_config.h | 72 static constexpr PciReg32 kBAR(uint bar) { argument 73 DEBUG_ASSERT(bar < PCIE_MAX_BAR_REGS); 74 return PciReg32(static_cast<uint16_t>(0x10 + (bar * sizeof(uint32_t))));
|
/fuchsia/zircon/system/ulib/virtio/include/virtio/ |
H A D | virtio.h | 73 uint8_t bar; member in struct:virtio_pci_cap
|
/fuchsia/zircon/kernel/syscalls/ |
H A D | ddk_pci.cpp | 496 // Get bar info from the device via the dispatcher and make sure it makes sense 502 // A bar can be MMIO, PIO, or unused. In the MMIO case it can be passed 504 zx_pci_bar_t bar = {}; local 505 bar.size = info->size; 506 bar.type = (info->is_mmio) ? ZX_PCI_BAR_TYPE_MMIO : ZX_PCI_BAR_TYPE_PIO; 514 // Create a VMO mapping to the address / size of the mmio region this bar 525 snprintf(name, sizeof(name), "pci-%02x:%02x.%1x-bar%u", 529 // Now that the vmo has been created for the bar, create a handle to 539 bar.addr = info->bus_addr; 545 status = out_bar.copy_to_user(bar); [all...] |
/fuchsia/zircon/scripts/ |
H A D | download-prebuilt | 130 curl --progress-bar -continue-at=- --location \
|
/fuchsia/zircon/kernel/dev/pcie/ |
H A D | pcie_device.cpp | 393 /* If this was a 64 bit bar, it took two registers to store. Make 665 for (auto& bar : bars_) 666 bar.allocation = nullptr;
|
/fuchsia/zircon/kernel/arch/x86/ |
H A D | perf_mon.cpp | 395 uint32_t bar; local 398 &bar, 32); 400 LTRACEF("perfmon: mchbar: 0x%x\n", bar); 403 perfmon_mchbar_bar = bar & ~15u;
|
/fuchsia/zircon/make/ |
H A D | module-userlib.mk | 188 # libraries this way they will have to maintain the pattern where foo.bar in the 189 # MODULE is foo-bar in the MODULE_NAME:
|