.TH "pci_setup_device" 9 "pci_setup_device" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME pci_setup_device \- fill in class and map information of a device .SH SYNOPSIS .B "int" pci_setup_device .BI "(struct pci_dev *" dev ");" .SH ARGUMENTS .IP "dev" 12 the device structure to fill .SH "DESCRIPTION" 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).