PCI_CFG_SPACE_SIZE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

pci_cfg_space_size - get the configuration space size of the PCI device.  

SYNOPSIS

"SYNOPSIS"

int pci_cfg_space_size (struct pci_dev * dev);  

ARGUMENTS

dev
-- undescribed --
 

DESCRIPTION

Regular PCI devices have 256 bytes, but PCI-X 2 and PCI Express devices have 4096 bytes. Even if the device is capable, that doesn't mean we can access it. Maybe we don't have a way to generate extended config space accesses, or the device is behind a reverse Express bridge. So we try reading the dword at 0x100 which must either be 0 or a valid extended capability header.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:36 GMT, October 09, 2005