.\" 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_SETUP_DEVICE" "9" "09 October 2005" "" ""
.SH NAME
pci_setup_device \- fill in class and map information of a device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int pci_setup_device (struct pci_dev * \fIdev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
the device structure to fill
.SH "DESCRIPTION"
.PP
Initialize the device structure with information about the device's
vendor,class,memory and IO-space addresses,IRQ lines etc.
Called at initialisation of the PCI subsystem and by CardBus services.
Returns 0 on success and -1 if unknown type of device (not normal, bridge
or CardBus).