<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>PCI Support Library</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="The Linux Kernel API" /><link rel="up" href="ch09.html" title="Chapter 9. Hardware Interfaces" /><link rel="prev" href="re321.html" title="mtrr_del" /><link rel="next" href="re322.html" title="pci_bus_max_busnr" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">PCI Support Library</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re321.html">Prev</a> </td><th width="60%" align="center">Chapter 9. Hardware Interfaces</th><td width="20%" align="right"> <a accesskey="n" href="re322.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="PCI Support Library"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2668077"></a>PCI Support Library</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re322.html"><span>pci_bus_max_busnr</span></a></span><span class="refpurpose"> — returns maximum PCI bus number of given bus' children </span></dt><dt><span class="refentrytitle"><a href="re323.html"><span>pci_find_capability</span></a></span><span class="refpurpose"> — query for devices' capabilities </span></dt><dt><span class="refentrytitle"><a href="re324.html"><span>pci_bus_find_capability</span></a></span><span class="refpurpose"> — query for devices' capabilities </span></dt><dt><span class="refentrytitle"><a href="re325.html"><span>pci_find_ext_capability</span></a></span><span class="refpurpose"> — Find an extended capability </span></dt><dt><span class="refentrytitle"><a href="re326.html"><span>pci_find_next_ht_capability</span></a></span><span class="refpurpose"> — query a device's Hypertransport capabilities </span></dt><dt><span class="refentrytitle"><a href="re327.html"><span>pci_find_ht_capability</span></a></span><span class="refpurpose"> — query a device's Hypertransport capabilities </span></dt><dt><span class="refentrytitle"><a href="re328.html"><span>pci_find_parent_resource</span></a></span><span class="refpurpose"> — return resource region of parent bus of given region </span></dt><dt><span class="refentrytitle"><a href="re329.html"><span>__pci_complete_power_transition</span></a></span><span class="refpurpose"> — Complete power transition of a PCI device </span></dt><dt><span class="refentrytitle"><a href="re330.html"><span>pci_set_power_state</span></a></span><span class="refpurpose"> — Set the power state of a PCI device </span></dt><dt><span class="refentrytitle"><a href="re331.html"><span>pci_choose_state</span></a></span><span class="refpurpose"> — Choose the power state of a PCI device </span></dt><dt><span class="refentrytitle"><a href="re332.html"><span>pci_save_state</span></a></span><span class="refpurpose"> — save the PCI configuration space of a device before suspending </span></dt><dt><span class="refentrytitle"><a href="re333.html"><span>pci_restore_state</span></a></span><span class="refpurpose"> — Restore the saved state of a PCI device </span></dt><dt><span class="refentrytitle"><a href="re334.html"><span>pci_reenable_device</span></a></span><span class="refpurpose"> — Resume abandoned device </span></dt><dt><span class="refentrytitle"><a href="re335.html"><span>pci_enable_device_io</span></a></span><span class="refpurpose"> — Initialize a device for use with IO space </span></dt><dt><span class="refentrytitle"><a href="re336.html"><span>pci_enable_device_mem</span></a></span><span class="refpurpose"> — Initialize a device for use with Memory space </span></dt><dt><span class="refentrytitle"><a href="re337.html"><span>pci_enable_device</span></a></span><span class="refpurpose"> — Initialize device before it's used by a driver. </span></dt><dt><span class="refentrytitle"><a href="re338.html"><span>pcim_enable_device</span></a></span><span class="refpurpose"> — Managed <code class="function">pci_enable_device</code> </span></dt><dt><span class="refentrytitle"><a href="re339.html"><span>pcim_pin_device</span></a></span><span class="refpurpose"> — Pin managed PCI device </span></dt><dt><span class="refentrytitle"><a href="re340.html"><span>pci_disable_device</span></a></span><span class="refpurpose"> — Disable PCI device after use </span></dt><dt><span class="refentrytitle"><a href="re341.html"><span>pci_set_pcie_reset_state</span></a></span><span class="refpurpose"> — set reset state for device dev </span></dt><dt><span class="refentrytitle"><a href="re342.html"><span>pci_pme_capable</span></a></span><span class="refpurpose"> — check the capability of PCI device to generate PME# </span></dt><dt><span class="refentrytitle"><a href="re343.html"><span>pci_pme_active</span></a></span><span class="refpurpose"> — enable or disable PCI device's PME# function </span></dt><dt><span class="refentrytitle"><a href="re344.html"><span>pci_enable_wake</span></a></span><span class="refpurpose"> — enable PCI device as wakeup event source </span></dt><dt><span class="refentrytitle"><a href="re345.html"><span>pci_wake_from_d3</span></a></span><span class="refpurpose"> — enable/disable device to wake up from D3_hot or D3_cold </span></dt><dt><span class="refentrytitle"><a href="re346.html"><span>pci_target_state</span></a></span><span class="refpurpose"> — find an appropriate low power state for a given PCI dev </span></dt><dt><span class="refentrytitle"><a href="re347.html"><span>pci_prepare_to_sleep</span></a></span><span class="refpurpose"> — prepare PCI device for system-wide transition into a sleep state </span></dt><dt><span class="refentrytitle"><a href="re348.html"><span>pci_back_from_sleep</span></a></span><span class="refpurpose"> — turn PCI device on during system-wide transition into working state </span></dt><dt><span class="refentrytitle"><a href="re349.html"><span>pci_release_region</span></a></span><span class="refpurpose"> — Release a PCI bar </span></dt><dt><span class="refentrytitle"><a href="re350.html"><span>pci_request_region</span></a></span><span class="refpurpose"> — Reserve PCI I/O and memory resource </span></dt><dt><span class="refentrytitle"><a href="re351.html"><span>pci_request_region_exclusive</span></a></span><span class="refpurpose"> — Reserved PCI I/O and memory resource </span></dt><dt><span class="refentrytitle"><a href="re352.html"><span>pci_release_selected_regions</span></a></span><span class="refpurpose"> — Release selected PCI I/O and memory resources </span></dt><dt><span class="refentrytitle"><a href="re353.html"><span>pci_request_selected_regions</span></a></span><span class="refpurpose"> — Reserve selected PCI I/O and memory resources </span></dt><dt><span class="refentrytitle"><a href="re354.html"><span>pci_release_regions</span></a></span><span class="refpurpose"> — Release reserved PCI I/O and memory resources </span></dt><dt><span class="refentrytitle"><a href="re355.html"><span>pci_request_regions</span></a></span><span class="refpurpose"> — Reserved PCI I/O and memory resources </span></dt><dt><span class="refentrytitle"><a href="re356.html"><span>pci_request_regions_exclusive</span></a></span><span class="refpurpose"> — Reserved PCI I/O and memory resources </span></dt><dt><span class="refentrytitle"><a href="re357.html"><span>pci_set_master</span></a></span><span class="refpurpose"> — enables bus-mastering for device dev </span></dt><dt><span class="refentrytitle"><a href="re358.html"><span>pci_clear_master</span></a></span><span class="refpurpose"> — disables bus-mastering for device dev </span></dt><dt><span class="refentrytitle"><a href="re359.html"><span>pci_set_mwi</span></a></span><span class="refpurpose"> — enables memory-write-invalidate PCI transaction </span></dt><dt><span class="refentrytitle"><a href="re360.html"><span>pci_try_set_mwi</span></a></span><span class="refpurpose"> — enables memory-write-invalidate PCI transaction </span></dt><dt><span class="refentrytitle"><a href="re361.html"><span>pci_clear_mwi</span></a></span><span class="refpurpose"> — disables Memory-Write-Invalidate for device dev </span></dt><dt><span class="refentrytitle"><a href="re362.html"><span>pci_intx</span></a></span><span class="refpurpose"> — enables/disables PCI INTx for device dev </span></dt><dt><span class="refentrytitle"><a href="re363.html"><span>pci_msi_off</span></a></span><span class="refpurpose"> — disables any msi or msix capabilities </span></dt><dt><span class="refentrytitle"><a href="re364.html"><span>__pci_reset_function</span></a></span><span class="refpurpose"> — reset a PCI device function </span></dt><dt><span class="refentrytitle"><a href="re365.html"><span>pci_reset_function</span></a></span><span class="refpurpose"> — quiesce and reset a PCI device function </span></dt><dt><span class="refentrytitle"><a href="re366.html"><span>pcix_get_max_mmrbc</span></a></span><span class="refpurpose"> — get PCI-X maximum designed memory read byte count </span></dt><dt><span class="refentrytitle"><a href="re367.html"><span>pcix_get_mmrbc</span></a></span><span class="refpurpose"> — get PCI-X maximum memory read byte count </span></dt><dt><span class="refentrytitle"><a href="re368.html"><span>pcix_set_mmrbc</span></a></span><span class="refpurpose"> — set PCI-X maximum memory read byte count </span></dt><dt><span class="refentrytitle"><a href="re369.html"><span>pcie_get_readrq</span></a></span><span class="refpurpose"> — get PCI Express read request size </span></dt><dt><span class="refentrytitle"><a href="re370.html"><span>pcie_set_readrq</span></a></span><span class="refpurpose"> — set PCI Express maximum memory read request </span></dt><dt><span class="refentrytitle"><a href="re371.html"><span>pci_select_bars</span></a></span><span class="refpurpose"> — Make BAR mask from the type of resource </span></dt><dt><span class="refentrytitle"><a href="re372.html"><span>pci_add_dynid</span></a></span><span class="refpurpose"> — add a new PCI device ID to this driver and re-probe devices </span></dt><dt><span class="refentrytitle"><a href="re373.html"><span>pci_match_id</span></a></span><span class="refpurpose"> — See if a pci device matches a given pci_id table </span></dt><dt><span class="refentrytitle"><a href="re374.html"><span>__pci_register_driver</span></a></span><span class="refpurpose"> — register a new pci driver </span></dt><dt><span class="refentrytitle"><a href="re375.html"><span>pci_unregister_driver</span></a></span><span class="refpurpose"> — unregister a pci driver </span></dt><dt><span class="refentrytitle"><a href="re376.html"><span>pci_dev_driver</span></a></span><span class="refpurpose"> — get the pci_driver of a device </span></dt><dt><span class="refentrytitle"><a href="re377.html"><span>pci_dev_get</span></a></span><span class="refpurpose"> — increments the reference count of the pci device structure </span></dt><dt><span class="refentrytitle"><a href="re378.html"><span>pci_dev_put</span></a></span><span class="refpurpose"> — release a use of the pci device structure </span></dt><dt><span class="refentrytitle"><a href="re379.html"><span>pci_remove_bus_device</span></a></span><span class="refpurpose"> — remove a PCI device and any children </span></dt><dt><span class="refentrytitle"><a href="re380.html"><span>pci_remove_behind_bridge</span></a></span><span class="refpurpose"> — remove all devices behind a PCI bridge </span></dt><dt><span class="refentrytitle"><a href="re381.html"><span>pci_stop_bus_device</span></a></span><span class="refpurpose"> — stop a PCI device and any children </span></dt><dt><span class="refentrytitle"><a href="re382.html"><span>pci_find_bus</span></a></span><span class="refpurpose"> — locate PCI bus from a given domain and bus number </span></dt><dt><span class="refentrytitle"><a href="re383.html"><span>pci_find_next_bus</span></a></span><span class="refpurpose"> — begin or continue searching for a PCI bus </span></dt><dt><span class="refentrytitle"><a href="re384.html"><span>pci_get_slot</span></a></span><span class="refpurpose"> — locate PCI device for a given PCI slot </span></dt><dt><span class="refentrytitle"><a href="re385.html"><span>pci_get_bus_and_slot</span></a></span><span class="refpurpose"> — locate PCI device from a given PCI bus & slot </span></dt><dt><span class="refentrytitle"><a href="re386.html"><span>pci_get_subsys</span></a></span><span class="refpurpose"> — begin or continue searching for a PCI device by vendor/subvendor/device/subdevice id </span></dt><dt><span class="refentrytitle"><a href="re387.html"><span>pci_get_device</span></a></span><span class="refpurpose"> — begin or continue searching for a PCI device by vendor/device id </span></dt><dt><span class="refentrytitle"><a href="re388.html"><span>pci_get_class</span></a></span><span class="refpurpose"> — begin or continue searching for a PCI device by class </span></dt><dt><span class="refentrytitle"><a href="re389.html"><span>pci_dev_present</span></a></span><span class="refpurpose"> — Returns 1 if device matching the device list is present, 0 if not. </span></dt><dt><span class="refentrytitle"><a href="re390.html"><span>pci_enable_msi_block</span></a></span><span class="refpurpose"> — configure device's MSI capability structure </span></dt><dt><span class="refentrytitle"><a href="re391.html"><span>pci_enable_msix</span></a></span><span class="refpurpose"> — configure device's MSI-X capability structure </span></dt><dt><span class="refentrytitle"><a href="re392.html"><span>pci_msi_enabled</span></a></span><span class="refpurpose"> — is MSI enabled? </span></dt><dt><span class="refentrytitle"><a href="re393.html"><span>pci_bus_alloc_resource</span></a></span><span class="refpurpose"> — allocate a resource from a parent bus </span></dt><dt><span class="refentrytitle"><a href="re394.html"><span>pci_bus_add_device</span></a></span><span class="refpurpose"> — add a single device </span></dt><dt><span class="refentrytitle"><a href="re395.html"><span>pci_bus_add_devices</span></a></span><span class="refpurpose"> — insert newly discovered PCI devices </span></dt><dt><span class="refentrytitle"><a href="re396.html"><span>pci_bus_set_ops</span></a></span><span class="refpurpose"> — Set raw operations of pci bus </span></dt><dt><span class="refentrytitle"><a href="re397.html"><span>pci_read_vpd</span></a></span><span class="refpurpose"> — Read one entry from Vital Product Data </span></dt><dt><span class="refentrytitle"><a href="re398.html"><span>pci_write_vpd</span></a></span><span class="refpurpose"> — Write entry to Vital Product Data </span></dt><dt><span class="refentrytitle"><a href="re399.html"><span>pci_vpd_truncate</span></a></span><span class="refpurpose"> — Set available Vital Product Data size </span></dt><dt><span class="refentrytitle"><a href="re400.html"><span>pci_block_user_cfg_access</span></a></span><span class="refpurpose"> — Block userspace PCI config reads/writes </span></dt><dt><span class="refentrytitle"><a href="re401.html"><span>pci_unblock_user_cfg_access</span></a></span><span class="refpurpose"> — Unblock userspace PCI config reads/writes </span></dt><dt><span class="refentrytitle"><a href="re402.html"><span>pci_lost_interrupt</span></a></span><span class="refpurpose"> — reports a lost PCI interrupt </span></dt><dt><span class="refentrytitle"><a href="re403.html"><span>__ht_create_irq</span></a></span><span class="refpurpose"> — create an irq and attach it to a device. </span></dt><dt><span class="refentrytitle"><a href="re404.html"><span>ht_create_irq</span></a></span><span class="refpurpose"> — create an irq and attach it to a device. </span></dt><dt><span class="refentrytitle"><a href="re405.html"><span>ht_destroy_irq</span></a></span><span class="refpurpose"> — destroy an irq created with ht_create_irq </span></dt><dt><span class="refentrytitle"><a href="re406.html"><span>pci_scan_slot</span></a></span><span class="refpurpose"> — scan a PCI slot on a bus for devices. </span></dt><dt><span class="refentrytitle"><a href="re407.html"><span>pci_rescan_bus</span></a></span><span class="refpurpose"> — scan a PCI bus for devices. </span></dt><dt><span class="refentrytitle"><a href="re408.html"><span>pci_create_slot</span></a></span><span class="refpurpose"> — create or increment refcount for physical PCI slot </span></dt><dt><span class="refentrytitle"><a href="re409.html"><span>pci_renumber_slot</span></a></span><span class="refpurpose"> — update <code class="constant">struct</code> pci_slot -> number </span></dt><dt><span class="refentrytitle"><a href="re410.html"><span>pci_destroy_slot</span></a></span><span class="refpurpose"> — decrement refcount for physical PCI slot </span></dt><dt><span class="refentrytitle"><a href="re411.html"><span>pci_hp_create_module_link</span></a></span><span class="refpurpose"> — create symbolic link to the hotplug driver module. </span></dt><dt><span class="refentrytitle"><a href="re412.html"><span>pci_hp_remove_module_link</span></a></span><span class="refpurpose"> — remove symbolic link to the hotplug driver module. </span></dt><dt><span class="refentrytitle"><a href="re413.html"><span>pci_enable_rom</span></a></span><span class="refpurpose"> — enable ROM decoding for a PCI device </span></dt><dt><span class="refentrytitle"><a href="re414.html"><span>pci_disable_rom</span></a></span><span class="refpurpose"> — disable ROM decoding for a PCI device </span></dt><dt><span class="refentrytitle"><a href="re415.html"><span>pci_map_rom</span></a></span><span class="refpurpose"> — map a PCI ROM to kernel space </span></dt><dt><span class="refentrytitle"><a href="re416.html"><span>pci_unmap_rom</span></a></span><span class="refpurpose"> — unmap the ROM from kernel space </span></dt><dt><span class="refentrytitle"><a href="re417.html"><span>pci_enable_sriov</span></a></span><span class="refpurpose"> — enable the SR-IOV capability </span></dt><dt><span class="refentrytitle"><a href="re418.html"><span>pci_disable_sriov</span></a></span><span class="refpurpose"> — disable the SR-IOV capability </span></dt><dt><span class="refentrytitle"><a href="re419.html"><span>pci_sriov_migration</span></a></span><span class="refpurpose"> — notify SR-IOV core of Virtual Function Migration </span></dt><dt><span class="refentrytitle"><a href="re420.html"><span>pci_num_vf</span></a></span><span class="refpurpose"> — return number of VFs associated with a PF device_release_driver </span></dt><dt><span class="refentrytitle"><a href="re421.html"><span>pci_read_legacy_io</span></a></span><span class="refpurpose"> — read byte(s) from legacy I/O port space </span></dt><dt><span class="refentrytitle"><a href="re422.html"><span>pci_write_legacy_io</span></a></span><span class="refpurpose"> — write byte(s) to legacy I/O port space </span></dt><dt><span class="refentrytitle"><a href="re423.html"><span>pci_mmap_legacy_mem</span></a></span><span class="refpurpose"> — map legacy PCI memory into user memory space </span></dt><dt><span class="refentrytitle"><a href="re424.html"><span>pci_mmap_legacy_io</span></a></span><span class="refpurpose"> — map legacy PCI IO into user memory space </span></dt><dt><span class="refentrytitle"><a href="re425.html"><span>pci_adjust_legacy_attr</span></a></span><span class="refpurpose"> — adjustment of legacy file attributes </span></dt><dt><span class="refentrytitle"><a href="re426.html"><span>pci_create_legacy_files</span></a></span><span class="refpurpose"> — create legacy I/O port and memory files </span></dt><dt><span class="refentrytitle"><a href="re427.html"><span>pci_mmap_resource</span></a></span><span class="refpurpose"> — map a PCI resource into user memory space </span></dt><dt><span class="refentrytitle"><a href="re428.html"><span>pci_remove_resource_files</span></a></span><span class="refpurpose"> — cleanup resource files </span></dt><dt><span class="refentrytitle"><a href="re429.html"><span>pci_create_resource_files</span></a></span><span class="refpurpose"> — create resource files in sysfs for <em class="parameter"><code>dev</code></em> </span></dt><dt><span class="refentrytitle"><a href="re430.html"><span>pci_write_rom</span></a></span><span class="refpurpose"> — used to enable access to the PCI ROM display </span></dt><dt><span class="refentrytitle"><a href="re431.html"><span>pci_read_rom</span></a></span><span class="refpurpose"> — read a PCI ROM </span></dt><dt><span class="refentrytitle"><a href="re432.html"><span>pci_remove_sysfs_dev_files</span></a></span><span class="refpurpose"> — cleanup PCI specific sysfs files </span></dt></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re321.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch09.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re322.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>mtrr_del</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>pci_bus_max_busnr</span></td></tr></table></div></body></html>