.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PCI_CFG_SPACE_SIZE" "9" "09 October 2005" "" ""
.SH NAME
pci_cfg_space_size \- get the configuration space size of the PCI device.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int pci_cfg_space_size (struct pci_dev * \fIdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
.PP
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.