Beruflich Dokumente
Kultur Dokumente
pci_dev_struct
Linux extracts info from PCI Config. Space
Stores the info in linked-lists of structures
Examples:
Name of the devices manufacturer
Name and release version of the product
Hardware resources provided by the product
System resources allocated to the product
(Linux provides search-and-extract routines)
init_module()
pci_find_class();
Define the manifest constant:
#define VGA_CLASS 0x030000
Declare a null-pointer:
struct pci_dev_struct *devp = NULL;
Call pci_find_class() function:
devp = pci_find_class( VGA_CLASS, devp );
. . . etc. . . .
Maximum memory-size
Programming algorithm
Need a work-around
Exercises