hpci_device_attach()
Attach to a host PCI device
Synopsis:
#include <qvm/hpci.h>errno_t hpci_device_attach(hpci_t **hdlp,
uint64_t location,
enum hpci_attach attach_type)Arguments:
- hdlp
- A pointer to a location for storing the address of an hcpi_t structure representing the device.
- location
- A location encoded by QSL_PCI_MAKE_LOC().
- attach_type
- An hpci_attach value representing the requested access type.
Description:
Call this function if you need access to a specific host PCI device.
Returns:
0 on success, or an errno value if unsuccessful.
Page updated:
