pci_save_state (9) Linux Manual Page
pci_save_state – save the PCI configuration space of a device before suspending Synopsis int pci_save_state(struct pci_dev *dev); Arguments dev – PCI device that we’re dealing with Copyright
The Linux Manuals (man pages) document is an important part of Linux documents. Linux Manuals are organized as several sections. Each section has a group of commands for a specific area in Linux usage, administration or development.
pci_save_state – save the PCI configuration space of a device before suspending Synopsis int pci_save_state(struct pci_dev *dev); Arguments dev – PCI device that we’re dealing with Copyright
pci_restore_state – Restore the saved state of a PCI device Synopsis void pci_restore_state(struct pci_dev *dev); Arguments dev – PCI device that we’re dealing with Copyright
pci_reset_slot – reset a PCI slot Synopsis int pci_reset_slot(struct pci_slot *slot); Arguments slot PCI slot to reset Description A PCI bus may host multiple slots, each slot may support a reset mechanism independent of other slots. For instance, some slots may support slot power control. In the case of a 1:1 bus to slot architecture,…
pci_reset_function – quiesce and reset a PCI device function Synopsis int pci_reset_function(struct pci_dev *dev); Arguments dev PCI device to reset Description Some devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be responsive to PCI config space in order to use this function. This…
pci_reset_bus – reset a PCI bus Synopsis int pci_reset_bus(struct pci_bus *bus); Arguments bus top level PCI bus to reset Description Do a bus reset on the given bus and any subordinate buses, saving and restoring state of all devices. Return 0 on success, non-zero on error. Copyright
pci_reset_bridge_secondary_bus – Reset the secondary bus on a PCI bridge. Synopsis void pci_reset_bridge_secondary_bus(struct pci_dev *dev); Arguments dev Bridge device Description Use the bridge control register to assert reset on the secondary bus. Devices on the secondary bus are left in power-on state. Copyright
pci_rescan_bus – scan a PCI bus for devices. Synopsis unsigned int pci_rescan_bus(struct pci_bus *bus); Arguments bus PCI bus to scan Description Scan a PCI bus and child buses for new devices, adds them, and enables them. Returns the max number of subordinate bus discovered. Copyright
pci_request_selected_regions – Reserve selected PCI I/O and memory resources Synopsis int pci_request_selected_regions(struct pci_dev *pdev, int bars, const char *res_name); Arguments pdev PCI device whose resources are to be reserved bars Bitmask of BARs to be requested res_name Name to be associated with resource Copyright
pci_request_regions_exclusive – Reserved PCI I/O and memory resources Synopsis int pci_request_regions_exclusive(struct pci_dev *pdev, const char *res_name); Arguments pdev PCI device whose resources are to be reserved res_name Name to be associated with resource. Description Mark all PCI regions associated with PCI device pdev as being reserved by owner res_name. Do not access any address inside…
pci_request_regions – Reserved PCI I/O and memory resources Synopsis int pci_request_regions(struct pci_dev *pdev, const char *res_name); Arguments pdev PCI device whose resources are to be reserved res_name Name to be associated with resource. Description Mark all PCI regions associated with PCI device pdev as being reserved by owner res_name. Do not access any address inside…
pci_request_region_exclusive – Reserved PCI I/O and memory resource Synopsis int pci_request_region_exclusive(struct pci_dev *pdev, int bar, const char *res_name); Arguments pdev PCI device whose resources are to be reserved bar BAR to be reserved res_name Name to be associated with resource. Description Mark the PCI region associated with PCI device pdev BR bar as being reserved…
pci_request_region – Reserve PCI I/O and memory resource Synopsis int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name); Arguments pdev PCI device whose resources are to be reserved bar BAR to be reserved res_name Name to be associated with resource Description Mark the PCI region associated with PCI device pdev BAR bar as being reserved…
pci_remove_sysfs_dev_files – cleanup PCI specific sysfs files Synopsis void pci_remove_sysfs_dev_files(struct pci_dev *pdev); Arguments pdev device whose entries we should free Description Cleanup when pdev is removed from sysfs. Copyright
pci_remove_resource_files – cleanup resource files Synopsis void pci_remove_resource_files(struct pci_dev *pdev); Arguments pdev dev to cleanup Description If we created resource files for pdev, remove them from sysfs and free their resources. Copyright
pci_release_selected_regions – Release selected PCI I/O and memory resources Synopsis void pci_release_selected_regions(struct pci_dev *pdev, int bars); Arguments pdev PCI device whose resources were previously reserved bars Bitmask of BARs to be released Description Release selected PCI I/O and memory resources previously reserved. Call this function only after all use of the PCI regions has ceased….
pci_release_regions – Release reserved PCI I/O and memory resources Synopsis void pci_release_regions(struct pci_dev *pdev); Arguments pdev PCI device whose resources were previously reserved by pci_request_regions Description Releases all PCI I/O and memory resources previously reserved by a successful call to pci_request_regions. Call this function only after all use of the PCI regions has ceased. Copyright
pci_release_region – Release a PCI bar Synopsis void pci_release_region(struct pci_dev *pdev, int bar); Arguments pdev PCI device whose resources were previously reserved by pci_request_region bar BAR to release Description Releases the PCI I/O and memory resources previously reserved by a successful call to pci_request_region. Call this function only after all use of the PCI regions…
pci_reenable_device – Resume abandoned device Synopsis int pci_reenable_device(struct pci_dev *dev); Arguments dev PCI device to be resumed Description Note this function is a backend of pci_default_resume and is not supposed to be called by normal code, write proper resume handler and use it instead. Copyright
pci_read_vpd – Read one entry from Vital Product Data Synopsis ssize_t pci_read_vpd(struct pci_dev * dev, loff_t pos, size_t count, void * buf); Arguments dev pci device struct pos offset in vpd space count number of bytes to read buf pointer to where to store result Copyright
pci_read_rom – read a PCI ROM Synopsis ssize_t pci_read_rom(struct file * filp, struct kobject * kobj, struct bin_attribute * bin_attr, char * buf, loff_t off, size_t count); Arguments filp sysfs file kobj kernel object handle bin_attr struct bin_attribute for this file buf where to put the data we read from the ROM off file offset count number of bytes to read Description Put count bytes…