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

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

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

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

    Defined at line 52 of file ../../src/devices/bus/drivers/pci/device_caps.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 98 of file ../../src/devices/bus/drivers/pci/test/unit/device_tests.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