Namespaces

Records

Functions

  • ddk::CompositeNodeSpec CreateCompositeNodeSpec (const CompositeInfo & info)

    Defined at line 15 of file ../../src/devices/bus/drivers/pci/composite.cc

  • bool ReadCapability (Config & cfg, uint8_t offset, CapabilityHdr * header)

    Defined at line 23 of file ../../src/devices/bus/drivers/pci/device_caps.cc

  • bool ReadExtCapability (Config & cfg, uint16_t offset, ExtCapabilityHdr * header)

    Defined at line 52 of file ../../src/devices/bus/drivers/pci/device_caps.cc

  • template <class CamType>
    zx_vaddr_t GetConfigOffsetInCam (pci_bdf_t bdf, uint8_t start_bus)

    Defined at line 102 of file ../../src/devices/bus/drivers/pci/config.h

  • zx_vaddr_t GetConfigOffsetInCam (pci_bdf_t bdf, uint8_t start_bus, bool is_extended)

    Find the offset into the cam region for the given bdf address. Every bus

    has 32 devices, every device has 8 functions, and each function has a

    configuration access region of 256 bytes base, 4096 if extended. The base

    address of the vmo provided to the bus driver corresponds to the

    start_bus_num, so offset the bdf address based on the bottom of our ecam.

    Defined at line 114 of file ../../src/devices/bus/drivers/pci/config.h

  • void RunAsync (async::Loop & loop, fit::closure f)

    Any test code which calls a helper method on FakePciProtocol must be executed

    an async task, because FakePciProtocol is a FIDL server running on another

    thread.

    Defined at line 361 of file ../../src/devices/pci/testing/protocol/internal.cc

  • zx_status_t pci_bus_bind (void * ctx, zx_device_t * parent)

    Defined at line 36 of file ../../src/devices/bus/drivers/pci/bus.cc

  • zx_status_t pci_get_bar (kpci_device * device, uint32_t bar_id, pci_bar_t * out_res)

    Some functions used by both the Banjo and FIDL implementations are abstracted

    out and defined here.

    Defined at line 43 of file ../../src/devices/bus/drivers/pci/kpci.cc

  • void pci_get_interrupt_modes (kpci_device * device, pci_interrupt_modes_t * out_modes)

    Defined at line 69 of file ../../src/devices/bus/drivers/pci/kpci.cc

  • void pci_get_device_info (kpci_device * device, pci_device_info_t * out_info)

    Defined at line 81 of file ../../src/devices/bus/drivers/pci/kpci.cc

  • zx_status_t pci_get_next_capability (kpci_device * device, uint8_t cap_id, uint8_t offset, uint8_t * out_offset)

    Defined at line 85 of file ../../src/devices/bus/drivers/pci/kpci.cc

  • zx_status_t device_add_composite_spec (zx_device_t * dev, const char * name, const composite_node_spec_t * spec)

    MockDevice does not cover adding composite devices within a driver, but

    BanjoDevice:Create only needs to think it succeeded.

    Defined at line 93 of file ../../src/devices/bus/drivers/pci/test/unit/device_tests.cc

  • zx_status_t pci_get_bti (kpci_device * device, uint32_t index, zx::bti * out_bti)

    Defined at line 132 of file ../../src/devices/bus/drivers/pci/kpci.cc

  • template <typename T>
    zx_status_t ReadConfig (zx_handle_t deviceuint16_t offsetT * out_value)

    Defined at line 155 of file ../../src/devices/bus/drivers/pci/kpci.cc