[Previous] [Contents] [Next]

pci_read_config()

Read from the configuration space of a PCI device

Synopsis:

#include <hw/pci.h>

int pci_read_config( void* handle,
                     unsigned offset,
                     unsigned count,
                     size_t size,
                     void* buff );

Library:

libc

Description:

The pci_read_config() function reads count objects of the specified size into buff at the given offset from the configuration space of the PCI device specified by handle.

Returns:

PCI_BAD_REGISTER_NUMBER
An invalid offset was specified.
PCI_BUFFER_TOO_SMALL
The PCI BIOS server reads only 100 bytes at a time; size is too large.
PCI_DEVICE_NOT_FOUND
Invalid handle
PCI_SUCCESS
Success.

Classification:

QNX 6

Safety:
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pci_attach(), pci_attach_device(), pci_detach(), pci_detach_device(), pci_find_class(), pci_find_device(), pci_present(), pci_read_config8(), pci_read_config16(), pci_read_config32(), pci_rescan_bus(), pci_write_config(), pci_write_config8(), pci_write_config16(), pci_write_config32()


[Previous] [Contents] [Next]