hpci_rd_cfg16()

Read 16 bits from the PCI configuration space

Synopsis:

#include <qvm/hpci.h>
uint16_t hpci_rd_cfg16(void *hdl,
                       unsigned off)

Arguments:

hdl
A handle to a host PCI device.
off
An offset into the PCI configuration space, in bytes.

Library:

Provided by qvm; no external library is required.

Description:

This function reads 16 bits of device-specific data from the PCI configuration space, starting at offset off.

Returns:

Contents of the configuration space.