Go to the source code of this file.
Classes | |
| struct | pci_devres |
Defines | |
| #define | DEFAULT_CARDBUS_IO_SIZE (256) |
| #define | DEFAULT_CARDBUS_MEM_SIZE (64*1024*1024) |
| #define | PCI_FIND_CAP_TTL 48 |
| #define | PCI_CACHE_LINE_BYTES L1_CACHE_BYTES |
Functions | |
| unsigned char | pci_bus_max_busnr (struct pci_bus *bus) |
| pci_bus_max_busnr - returns maximum PCI bus number of given bus' children : pointer to PCI bus structure to search | |
| EXPORT_SYMBOL_GPL (pci_bus_max_busnr) | |
| static int | __pci_find_next_cap_ttl (struct pci_bus *bus, unsigned int devfn, u8 pos, int cap, int *ttl) |
| static int | __pci_find_next_cap (struct pci_bus *bus, unsigned int devfn, u8 pos, int cap) |
| int | pci_find_next_capability (struct pci_dev *dev, u8 pos, int cap) |
| EXPORT_SYMBOL_GPL (pci_find_next_capability) | |
| static int | __pci_bus_find_cap_start (struct pci_bus *bus, unsigned int devfn, u8 hdr_type) |
| int | pci_find_capability (struct pci_dev *dev, int cap) |
| pci_find_capability - query for devices' capabilities : PCI device to query : capability code | |
| int | pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap) |
| pci_bus_find_capability - query for devices' capabilities : the PCI bus to query : PCI device to query : capability code | |
| int | pci_find_ext_capability (struct pci_dev *dev, int cap) |
| pci_find_ext_capability - Find an extended capability : PCI device to query : capability code | |
| EXPORT_SYMBOL_GPL (pci_find_ext_capability) | |
| static int | __pci_find_next_ht_cap (struct pci_dev *dev, int pos, int ht_cap) |
| int | pci_find_next_ht_capability (struct pci_dev *dev, int pos, int ht_cap) |
| pci_find_next_ht_capability - query a device's Hypertransport capabilities : PCI device to query : Position from which to continue searching : Hypertransport capability code | |
| EXPORT_SYMBOL_GPL (pci_find_next_ht_capability) | |
| int | pci_find_ht_capability (struct pci_dev *dev, int ht_cap) |
| pci_find_ht_capability - query a device's Hypertransport capabilities : PCI device to query : Hypertransport capability code | |
| EXPORT_SYMBOL_GPL (pci_find_ht_capability) | |
| struct resource * | pci_find_parent_resource (const struct pci_dev *dev, struct resource *res) |
| pci_find_parent_resource - return resource region of parent bus of given region : PCI device structure contains resources to be searched : child resource record for which parent is sought | |
| static void | pci_restore_bars (struct pci_dev *dev) |
| pci_restore_bars - restore a devices BAR values (e.g. | |
| int | pci_set_platform_pm (struct pci_platform_pm_ops *ops) |
| static bool | platform_pci_power_manageable (struct pci_dev *dev) |
| static int | platform_pci_set_power_state (struct pci_dev *dev, pci_power_t t) |
| static pci_power_t | platform_pci_choose_state (struct pci_dev *dev) |
| static bool | platform_pci_can_wakeup (struct pci_dev *dev) |
| static int | platform_pci_sleep_wake (struct pci_dev *dev, bool enable) |
| static int | pci_raw_set_power_state (struct pci_dev *dev, pci_power_t state, bool wait) |
| pci_raw_set_power_state - Use PCI PM registers to set the power state of given PCI device : PCI device to handle. | |
| void | pci_update_current_state (struct pci_dev *dev, pci_power_t state) |
| pci_update_current_state - Read PCI power state of given device from its PCI PM registers and cache it : PCI device to handle. | |
| int | pci_set_power_state (struct pci_dev *dev, pci_power_t state) |
| pci_set_power_state - Set the power state of a PCI device : PCI device to handle. | |
| pci_power_t | pci_choose_state (struct pci_dev *dev, pm_message_t state) |
| pci_choose_state - Choose the power state of a PCI device : PCI device to be suspended : target sleep state for the whole system. | |
| EXPORT_SYMBOL (pci_choose_state) | |
| static int | pci_save_pcie_state (struct pci_dev *dev) |
| static void | pci_restore_pcie_state (struct pci_dev *dev) |
| static int | pci_save_pcix_state (struct pci_dev *dev) |
| static void | pci_restore_pcix_state (struct pci_dev *dev) |
| int | pci_save_state (struct pci_dev *dev) |
| pci_save_state - save the PCI configuration space of a device before suspending : - PCI device that we're dealing with | |
| int | pci_restore_state (struct pci_dev *dev) |
| pci_restore_state - Restore the saved state of a PCI device : - PCI device that we're dealing with | |
| static int | do_pci_enable_device (struct pci_dev *dev, int bars) |
| int | pci_reenable_device (struct pci_dev *dev) |
| pci_reenable_device - Resume abandoned device : PCI device to be resumed | |
| static int | __pci_enable_device_flags (struct pci_dev *dev, resource_size_t flags) |
| int | pci_enable_device_io (struct pci_dev *dev) |
| pci_enable_device_io - Initialize a device for use with IO space : PCI device to be initialized | |
| int | pci_enable_device_mem (struct pci_dev *dev) |
| pci_enable_device_mem - Initialize a device for use with Memory space : PCI device to be initialized | |
| int | pci_enable_device (struct pci_dev *dev) |
| pci_enable_device() is implemented by the DDE. | |
| static void | pcim_release (struct device *gendev, void *res) |
| static struct pci_devres * | get_pci_dr (struct pci_dev *pdev) |
| static struct pci_devres * | find_pci_dr (struct pci_dev *pdev) |
| int | pcim_enable_device (struct pci_dev *pdev) |
| pcim_enable_device - Managed pci_enable_device() : PCI device to be initialized | |
| void | pcim_pin_device (struct pci_dev *pdev) |
| pcim_pin_device - Pin managed PCI device : PCI device to pin | |
| void | __attribute__ ((weak)) |
| pcibios_disable_device - disable arch specific PCI resources for device dev : the PCI device to disable | |
| static void | do_pci_disable_device (struct pci_dev *dev) |
| void | pci_disable_enabled_device (struct pci_dev *dev) |
| pci_disable_enabled_device - Disable device without updating enable_cnt : PCI device to disable | |
| void | pci_disable_device (struct pci_dev *dev) |
| pci_disable_device - Disable PCI device after use : PCI device to be disabled | |
| int | pci_set_pcie_reset_state (struct pci_dev *dev, enum pcie_reset_state state) |
| pci_set_pcie_reset_state - set reset state for device dev : the PCI-E device reset : Reset state to enter into | |
| bool | pci_pme_capable (struct pci_dev *dev, pci_power_t state) |
| pci_pme_capable - check the capability of PCI device to generate PME# : PCI device to handle. | |
| void | pci_pme_active (struct pci_dev *dev, bool enable) |
| pci_pme_active - enable or disable PCI device's PME# function : PCI device to handle. | |
| int | pci_enable_wake (struct pci_dev *dev, pci_power_t state, int enable) |
| pci_enable_wake - enable PCI device as wakeup event source : PCI device affected : PCI state from which device will issue wakeup events : True to enable event generation; false to disable | |
| int | pci_wake_from_d3 (struct pci_dev *dev, bool enable) |
| pci_wake_from_d3 - enable/disable device to wake up from D3_hot or D3_cold : PCI device to prepare : True to enable wake-up event generation; false to disable | |
| pci_power_t | pci_target_state (struct pci_dev *dev) |
| pci_target_state - find an appropriate low power state for a given PCI dev : PCI device | |
| int | pci_prepare_to_sleep (struct pci_dev *dev) |
| pci_prepare_to_sleep - prepare PCI device for system-wide transition into a sleep state : Device to handle. | |
| int | pci_back_from_sleep (struct pci_dev *dev) |
| pci_back_from_sleep - turn PCI device on during system-wide transition into working state : Device to handle. | |
| void | pci_pm_init (struct pci_dev *dev) |
| pci_pm_init - Initialize PM functions of given PCI device : PCI device to handle. | |
| void | platform_pci_wakeup_init (struct pci_dev *dev) |
| platform_pci_wakeup_init - init platform wakeup if present : PCI device | |
| static int | pci_add_cap_save_buffer (struct pci_dev *dev, char cap, unsigned int size) |
| pci_add_save_buffer - allocate buffer for saving given capability registers : the PCI device : the capability to allocate the buffer for : requested size of the buffer | |
| void | pci_allocate_cap_save_buffers (struct pci_dev *dev) |
| pci_allocate_cap_save_buffers - allocate buffers for saving capabilities : the PCI device | |
| int | pci_restore_standard_config (struct pci_dev *dev) |
| pci_restore_standard_config - restore standard config registers of PCI device : PCI device to handle | |
| void | pci_enable_ari (struct pci_dev *dev) |
| pci_enable_ari - enable ARI forwarding if hardware support it : the PCI device | |
| u8 | pci_swizzle_interrupt_pin (struct pci_dev *dev, u8 pin) |
| pci_swizzle_interrupt_pin - swizzle INTx for device behind bridge : the PCI device : the INTx pin (1=INTA, 2=INTB, 3=INTD, 4=INTD) | |
| int | pci_get_interrupt_pin (struct pci_dev *dev, struct pci_dev **bridge) |
| u8 | pci_common_swizzle (struct pci_dev *dev, u8 *pinp) |
| pci_common_swizzle - swizzle INTx all the way to root bridge : the PCI device : pointer to the INTx pin value (1=INTA, 2=INTB, 3=INTD, 4=INTD) | |
| void | pci_release_region (struct pci_dev *pdev, int bar) |
| pci_release_region - Release a PCI bar : PCI device whose resources were previously reserved by pci_request_region : BAR to release | |
| static int | __pci_request_region (struct pci_dev *pdev, int bar, const char *res_name, int exclusive) |
| __pci_request_region - Reserved PCI I/O and memory resource : PCI device whose resources are to be reserved : BAR to be reserved : Name to be associated with resource. | |
| int | pci_request_region (struct pci_dev *pdev, int bar, const char *res_name) |
| pci_request_region - Reserve PCI I/O and memory resource : PCI device whose resources are to be reserved : BAR to be reserved : Name to be associated with resource | |
| int | pci_request_region_exclusive (struct pci_dev *pdev, int bar, const char *res_name) |
| pci_request_region_exclusive - Reserved PCI I/O and memory resource : PCI device whose resources are to be reserved : BAR to be reserved : Name to be associated with resource. | |
| void | pci_release_selected_regions (struct pci_dev *pdev, int bars) |
| pci_release_selected_regions - Release selected PCI I/O and memory resources : PCI device whose resources were previously reserved : Bitmask of BARs to be released | |
| int | __pci_request_selected_regions (struct pci_dev *pdev, int bars, const char *res_name, int excl) |
| int | pci_request_selected_regions (struct pci_dev *pdev, int bars, const char *res_name) |
| pci_request_selected_regions - Reserve selected PCI I/O and memory resources : PCI device whose resources are to be reserved : Bitmask of BARs to be requested : Name to be associated with resource | |
| int | pci_request_selected_regions_exclusive (struct pci_dev *pdev, int bars, const char *res_name) |
| void | pci_release_regions (struct pci_dev *pdev) |
| pci_release_regions - Release reserved PCI I/O and memory resources : PCI device whose resources were previously reserved by pci_request_regions | |
| int | pci_request_regions (struct pci_dev *pdev, const char *res_name) |
| pci_request_regions - Reserved PCI I/O and memory resources : PCI device whose resources are to be reserved : Name to be associated with resource. | |
| int | pci_request_regions_exclusive (struct pci_dev *pdev, const char *res_name) |
| pci_request_regions_exclusive - Reserved PCI I/O and memory resources : PCI device whose resources are to be reserved : Name to be associated with resource. | |
| static void | __pci_set_master (struct pci_dev *dev, bool enable) |
| void | pci_set_master (struct pci_dev *dev) |
| pci_set_master - enables bus-mastering for device dev : the PCI device to enable | |
| void | pci_clear_master (struct pci_dev *dev) |
| pci_clear_master - disables bus-mastering for device dev : the PCI device to disable | |
| static int | pci_set_cacheline_size (struct pci_dev *dev) |
| pci_set_cacheline_size - ensure the CACHE_LINE_SIZE register is programmed : the PCI device for which MWI is to be enabled | |
| int | pci_set_mwi (struct pci_dev *dev) |
| pci_set_mwi - enables memory-write-invalidate PCI transaction : the PCI device for which MWI is enabled | |
| int | pci_try_set_mwi (struct pci_dev *dev) |
| pci_try_set_mwi - enables memory-write-invalidate PCI transaction : the PCI device for which MWI is enabled | |
| void | pci_clear_mwi (struct pci_dev *dev) |
| pci_clear_mwi - disables Memory-Write-Invalidate for device dev : the PCI device to disable | |
| void | pci_intx (struct pci_dev *pdev, int enable) |
| pci_intx - enables/disables PCI INTx for device dev : the PCI device to operate on : boolean: whether to enable or disable PCI INTx | |
| void | pci_msi_off (struct pci_dev *dev) |
| pci_msi_off - disables any msi or msix capabilities : the PCI device to operate on | |
| int | pci_set_dma_mask (struct pci_dev *dev, u64 mask) |
| int | pci_set_consistent_dma_mask (struct pci_dev *dev, u64 mask) |
| int | pci_set_dma_max_seg_size (struct pci_dev *dev, unsigned int size) |
| EXPORT_SYMBOL (pci_set_dma_max_seg_size) | |
| int | pci_set_dma_seg_boundary (struct pci_dev *dev, unsigned long mask) |
| EXPORT_SYMBOL (pci_set_dma_seg_boundary) | |
| static int | __pcie_flr (struct pci_dev *dev, int probe) |
| static int | __pci_af_flr (struct pci_dev *dev, int probe) |
| static int | __pci_reset_function (struct pci_dev *pdev, int probe) |
| int | pci_execute_reset_function (struct pci_dev *dev) |
| pci_execute_reset_function() - Reset a PCI device function : Device function to reset | |
| EXPORT_SYMBOL_GPL (pci_execute_reset_function) | |
| int | pci_reset_function (struct pci_dev *dev) |
| pci_reset_function() - quiesce and reset a PCI device function : Device function to reset | |
| EXPORT_SYMBOL_GPL (pci_reset_function) | |
| int | pcix_get_max_mmrbc (struct pci_dev *dev) |
| pcix_get_max_mmrbc - get PCI-X maximum designed memory read byte count : PCI device to query | |
| EXPORT_SYMBOL (pcix_get_max_mmrbc) | |
| int | pcix_get_mmrbc (struct pci_dev *dev) |
| pcix_get_mmrbc - get PCI-X maximum memory read byte count : PCI device to query | |
| EXPORT_SYMBOL (pcix_get_mmrbc) | |
| int | pcix_set_mmrbc (struct pci_dev *dev, int mmrbc) |
| pcix_set_mmrbc - set PCI-X maximum memory read byte count : PCI device to query : maximum memory read count in bytes valid values are 512, 1024, 2048, 4096 | |
| EXPORT_SYMBOL (pcix_set_mmrbc) | |
| int | pcie_get_readrq (struct pci_dev *dev) |
| pcie_get_readrq - get PCI Express read request size : PCI device to query | |
| EXPORT_SYMBOL (pcie_get_readrq) | |
| int | pcie_set_readrq (struct pci_dev *dev, int rq) |
| pcie_set_readrq - set PCI Express maximum memory read request : PCI device to query : maximum memory read count in bytes valid values are 128, 256, 512, 1024, 2048, 4096 | |
| EXPORT_SYMBOL (pcie_set_readrq) | |
| int | pci_select_bars (struct pci_dev *dev, unsigned long flags) |
| pci_select_bars - Make BAR mask from the type of resource : the PCI device for which BAR mask is made : resource type mask to be selected | |
| int | pci_resource_bar (struct pci_dev *dev, int resno, enum pci_bar_type *type) |
| pci_resource_bar - get position of the BAR associated with a resource : the PCI device : the resource number : the BAR type to be filled in | |
| static void __devinit | pci_no_domains (void) |
| static int __devinit | pci_init (void) |
| static int __init | pci_setup (char *str) |
| early_param ("pci", pci_setup) | |
| device_initcall (pci_init) | |
| EXPORT_SYMBOL (pci_reenable_device) | |
| EXPORT_SYMBOL (pci_enable_device_io) | |
| EXPORT_SYMBOL (pci_enable_device_mem) | |
| EXPORT_SYMBOL (pci_enable_device) | |
| EXPORT_SYMBOL (pcim_enable_device) | |
| EXPORT_SYMBOL (pcim_pin_device) | |
| EXPORT_SYMBOL (pci_disable_device) | |
| EXPORT_SYMBOL (pci_find_capability) | |
| EXPORT_SYMBOL (pci_bus_find_capability) | |
| EXPORT_SYMBOL (pci_release_regions) | |
| EXPORT_SYMBOL (pci_request_regions) | |
| EXPORT_SYMBOL (pci_request_regions_exclusive) | |
| EXPORT_SYMBOL (pci_release_region) | |
| EXPORT_SYMBOL (pci_request_region) | |
| EXPORT_SYMBOL (pci_request_region_exclusive) | |
| EXPORT_SYMBOL (pci_release_selected_regions) | |
| EXPORT_SYMBOL (pci_request_selected_regions) | |
| EXPORT_SYMBOL (pci_request_selected_regions_exclusive) | |
| EXPORT_SYMBOL (pci_set_master) | |
| EXPORT_SYMBOL (pci_clear_master) | |
| EXPORT_SYMBOL (pci_set_mwi) | |
| EXPORT_SYMBOL (pci_try_set_mwi) | |
| EXPORT_SYMBOL (pci_clear_mwi) | |
| EXPORT_SYMBOL_GPL (pci_intx) | |
| EXPORT_SYMBOL (pci_set_dma_mask) | |
| EXPORT_SYMBOL (pci_set_consistent_dma_mask) | |
| EXPORT_SYMBOL (pci_assign_resource) | |
| EXPORT_SYMBOL (pci_find_parent_resource) | |
| EXPORT_SYMBOL (pci_select_bars) | |
| EXPORT_SYMBOL (pci_set_power_state) | |
| EXPORT_SYMBOL (pci_save_state) | |
| EXPORT_SYMBOL (pci_restore_state) | |
| EXPORT_SYMBOL (pci_pme_capable) | |
| EXPORT_SYMBOL (pci_pme_active) | |
| EXPORT_SYMBOL (pci_enable_wake) | |
| EXPORT_SYMBOL (pci_wake_from_d3) | |
| EXPORT_SYMBOL (pci_target_state) | |
| EXPORT_SYMBOL (pci_prepare_to_sleep) | |
| EXPORT_SYMBOL (pci_back_from_sleep) | |
| EXPORT_SYMBOL_GPL (pci_set_pcie_reset_state) | |
Variables | |
| unsigned int | pci_pm_d3_delay = PCI_PM_D3_WAIT |
| unsigned long | pci_cardbus_io_size = DEFAULT_CARDBUS_IO_SIZE |
| unsigned long | pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE |
| static struct pci_platform_pm_ops * | pci_platform_pm |
| u8 | pci_cache_line_size = PCI_CACHE_LINE_BYTES / 4 |
| #define DEFAULT_CARDBUS_IO_SIZE (256) |
Definition at line 35 of file linux26/lib/src/drivers/pci/pci.c.
| #define DEFAULT_CARDBUS_MEM_SIZE (64*1024*1024) |
Definition at line 36 of file linux26/lib/src/drivers/pci/pci.c.
| #define PCI_CACHE_LINE_BYTES L1_CACHE_BYTES |
Definition at line 1815 of file linux26/lib/src/drivers/pci/pci.c.
| #define PCI_FIND_CAP_TTL 48 |
Definition at line 103 of file linux26/lib/src/drivers/pci/pci.c.
| void __attribute__ | ( | (weak) | ) | [read] |
pcibios_disable_device - disable arch specific PCI resources for device dev : the PCI device to disable
pci_ext_cfg_enabled - can we access extended PCI config space? : The PCI device of the root bridge.
pcibios_set_pcie_reset_state - set reset state for device dev : the PCI-E device reset : Reset state to enter into
Disables architecture specific PCI resources for the device. This is the default implementation. Architecture implementations can override this.
Sets the PCI-E reset state for the device. This is the default implementation. Architecture implementations can override this.
Returns 1 if we can access PCI extended config space (offsets greater than 0xff). This is the default implementation. Architecture implementations can override this.
Definition at line 986 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_af_flr | ( | struct pci_dev * | dev, | |
| int | probe | |||
| ) | [static] |
Definition at line 2063 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_bus_find_cap_start | ( | struct pci_bus * | bus, | |
| unsigned int | devfn, | |||
| u8 | hdr_type | |||
| ) | [static] |
Definition at line 141 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_enable_device_flags | ( | struct pci_dev * | dev, | |
| resource_size_t | flags | |||
| ) | [static] |
Definition at line 813 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_find_next_cap | ( | struct pci_bus * | bus, | |
| unsigned int | devfn, | |||
| u8 | pos, | |||
| int | cap | |||
| ) | [static] |
Definition at line 126 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_find_next_cap_ttl | ( | struct pci_bus * | bus, | |
| unsigned int | devfn, | |||
| u8 | pos, | |||
| int | cap, | |||
| int * | ttl | |||
| ) | [static] |
Definition at line 105 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_find_next_ht_cap | ( | struct pci_dev * | dev, | |
| int | pos, | |||
| int | ht_cap | |||
| ) | [static] |
Definition at line 272 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_request_region | ( | struct pci_dev * | pdev, | |
| int | bar, | |||
| const char * | res_name, | |||
| int | exclusive | |||
| ) | [static] |
__pci_request_region - Reserved PCI I/O and memory resource : PCI device whose resources are to be reserved : BAR to be reserved : Name to be associated with resource.
: whether the region access is exclusive or not
Mark the PCI region associated with PCI device BR as being reserved by owner . Do not access any address inside the PCI regions unless this call returns successfully.
If is set, then the region is marked so that userspace is explicitly not allowed to map the resource via /dev/mem or sysfs MMIO access.
Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.
Definition at line 1571 of file linux26/lib/src/drivers/pci/pci.c.
| int __pci_request_selected_regions | ( | struct pci_dev * | pdev, | |
| int | bars, | |||
| const char * | res_name, | |||
| int | excl | |||
| ) |
Definition at line 1663 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pci_reset_function | ( | struct pci_dev * | pdev, | |
| int | probe | |||
| ) | [static] |
Definition at line 2100 of file linux26/lib/src/drivers/pci/pci.c.
| static void __pci_set_master | ( | struct pci_dev * | dev, | |
| bool | enable | |||
| ) | [static] |
Definition at line 1757 of file linux26/lib/src/drivers/pci/pci.c.
| static int __pcie_flr | ( | struct pci_dev * | dev, | |
| int | probe | |||
| ) | [static] |
Definition at line 2025 of file linux26/lib/src/drivers/pci/pci.c.
| device_initcall | ( | pci_init | ) |
| static void do_pci_disable_device | ( | struct pci_dev * | dev | ) | [static] |
Definition at line 988 of file linux26/lib/src/drivers/pci/pci.c.
| static int do_pci_enable_device | ( | struct pci_dev * | dev, | |
| int | bars | |||
| ) | [static] |
Definition at line 784 of file linux26/lib/src/drivers/pci/pci.c.
| early_param | ( | "pci" | , | |
| pci_setup | ||||
| ) |
| EXPORT_SYMBOL | ( | pci_back_from_sleep | ) |
| EXPORT_SYMBOL | ( | pci_prepare_to_sleep | ) |
| EXPORT_SYMBOL | ( | pci_target_state | ) |
| EXPORT_SYMBOL | ( | pci_wake_from_d3 | ) |
| EXPORT_SYMBOL | ( | pci_enable_wake | ) |
| EXPORT_SYMBOL | ( | pci_pme_active | ) |
| EXPORT_SYMBOL | ( | pci_pme_capable | ) |
| EXPORT_SYMBOL | ( | pci_restore_state | ) |
| EXPORT_SYMBOL | ( | pci_save_state | ) |
| EXPORT_SYMBOL | ( | pci_set_power_state | ) |
| EXPORT_SYMBOL | ( | pci_select_bars | ) |
| EXPORT_SYMBOL | ( | pci_find_parent_resource | ) |
| EXPORT_SYMBOL | ( | pci_assign_resource | ) |
| EXPORT_SYMBOL | ( | pci_set_consistent_dma_mask | ) |
| EXPORT_SYMBOL | ( | pci_set_dma_mask | ) |
| EXPORT_SYMBOL | ( | pci_clear_mwi | ) |
| EXPORT_SYMBOL | ( | pci_try_set_mwi | ) |
| EXPORT_SYMBOL | ( | pci_set_mwi | ) |
| EXPORT_SYMBOL | ( | pci_clear_master | ) |
| EXPORT_SYMBOL | ( | pci_set_master | ) |
| EXPORT_SYMBOL | ( | pci_request_selected_regions_exclusive | ) |
| EXPORT_SYMBOL | ( | pci_request_selected_regions | ) |
| EXPORT_SYMBOL | ( | pci_release_selected_regions | ) |
| EXPORT_SYMBOL | ( | pci_request_region_exclusive | ) |
| EXPORT_SYMBOL | ( | pci_request_region | ) |
| EXPORT_SYMBOL | ( | pci_release_region | ) |
| EXPORT_SYMBOL | ( | pci_request_regions_exclusive | ) |
| EXPORT_SYMBOL | ( | pci_request_regions | ) |
| EXPORT_SYMBOL | ( | pci_release_regions | ) |
| EXPORT_SYMBOL | ( | pci_bus_find_capability | ) |
| EXPORT_SYMBOL | ( | pci_find_capability | ) |
| EXPORT_SYMBOL | ( | pci_disable_device | ) |
| EXPORT_SYMBOL | ( | pcim_pin_device | ) |
| EXPORT_SYMBOL | ( | pcim_enable_device | ) |
| EXPORT_SYMBOL | ( | pci_enable_device | ) |
| EXPORT_SYMBOL | ( | pci_enable_device_mem | ) |
| EXPORT_SYMBOL | ( | pci_enable_device_io | ) |
| EXPORT_SYMBOL | ( | pci_reenable_device | ) |
| EXPORT_SYMBOL | ( | pcie_set_readrq | ) |
| EXPORT_SYMBOL | ( | pcie_get_readrq | ) |
| EXPORT_SYMBOL | ( | pcix_set_mmrbc | ) |
| EXPORT_SYMBOL | ( | pcix_get_mmrbc | ) |
| EXPORT_SYMBOL | ( | pcix_get_max_mmrbc | ) |
| EXPORT_SYMBOL | ( | pci_set_dma_seg_boundary | ) |
| EXPORT_SYMBOL | ( | pci_set_dma_max_seg_size | ) |
| EXPORT_SYMBOL | ( | pci_choose_state | ) |
| EXPORT_SYMBOL_GPL | ( | pci_set_pcie_reset_state | ) |
| EXPORT_SYMBOL_GPL | ( | pci_intx | ) |
| EXPORT_SYMBOL_GPL | ( | pci_reset_function | ) |
| EXPORT_SYMBOL_GPL | ( | pci_execute_reset_function | ) |
| EXPORT_SYMBOL_GPL | ( | pci_find_ht_capability | ) |
| EXPORT_SYMBOL_GPL | ( | pci_find_next_ht_capability | ) |
| EXPORT_SYMBOL_GPL | ( | pci_find_ext_capability | ) |
| EXPORT_SYMBOL_GPL | ( | pci_find_next_capability | ) |
| EXPORT_SYMBOL_GPL | ( | pci_bus_max_busnr | ) |
| static struct pci_devres* find_pci_dr | ( | struct pci_dev * | pdev | ) | [static, read] |
Definition at line 927 of file linux26/lib/src/drivers/pci/pci.c.
| static struct pci_devres* get_pci_dr | ( | struct pci_dev * | pdev | ) | [static, read] |
Definition at line 913 of file linux26/lib/src/drivers/pci/pci.c.
| static int pci_add_cap_save_buffer | ( | struct pci_dev * | dev, | |
| char | cap, | |||
| unsigned int | size | |||
| ) | [static] |
| void pci_allocate_cap_save_buffers | ( | struct pci_dev * | dev | ) |
pci_allocate_cap_save_buffers - allocate buffers for saving capabilities : the PCI device
Definition at line 1378 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_back_from_sleep | ( | struct pci_dev * | dev | ) |
pci_back_from_sleep - turn PCI device on during system-wide transition into working state : Device to handle.
Disable device's sytem wake-up capability and put it into D0.
Definition at line 1259 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_bus_find_capability | ( | struct pci_bus * | bus, | |
| unsigned int | devfn, | |||
| int | cap | |||
| ) |
pci_bus_find_capability - query for devices' capabilities : the PCI bus to query : PCI device to query : capability code
Like pci_find_capability() but works for pci devices that do not have a pci_dev structure set up yet.
Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it.
Definition at line 206 of file linux26/lib/src/drivers/pci/pci.c.
| unsigned char pci_bus_max_busnr | ( | struct pci_bus * | bus | ) |
pci_bus_max_busnr - returns maximum PCI bus number of given bus' children : pointer to PCI bus structure to search
Given a PCI bus, returns the highest PCI bus number present in the set including the given PCI bus and its list of child PCI buses.
Definition at line 48 of file linux26/lib/src/drivers/pci/pci.c.
| pci_power_t pci_choose_state | ( | struct pci_dev * | dev, | |
| pm_message_t | state | |||
| ) |
pci_choose_state - Choose the power state of a PCI device : PCI device to be suspended : target sleep state for the whole system.
This is the value that is passed to suspend() function.
Returns PCI power state suitable for given device and given system message.
Definition at line 622 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_clear_master | ( | struct pci_dev * | dev | ) |
pci_clear_master - disables bus-mastering for device dev : the PCI device to disable
Definition at line 1791 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_clear_mwi | ( | struct pci_dev * | dev | ) |
pci_clear_mwi - disables Memory-Write-Invalidate for device dev : the PCI device to disable
Disables PCI Memory-Write-Invalidate transaction on the device
Definition at line 1910 of file linux26/lib/src/drivers/pci/pci.c.
| u8 pci_common_swizzle | ( | struct pci_dev * | dev, | |
| u8 * | pinp | |||
| ) |
pci_common_swizzle - swizzle INTx all the way to root bridge : the PCI device : pointer to the INTx pin value (1=INTA, 2=INTB, 3=INTD, 4=INTD)
Perform INTx swizzling for a device. This traverses through all PCI-to-PCI bridges all the way up to a PCI root bus.
Definition at line 1513 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_disable_device | ( | struct pci_dev * | dev | ) |
pci_disable_device - Disable PCI device after use : PCI device to be disabled
Signal to the system that the PCI device is not in use by the system anymore. This only involves disabling PCI bus-mastering, if active.
Note we don't actually disable the device until all callers of pci_device_enable() have called pci_device_disable().
Definition at line 1025 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_disable_enabled_device | ( | struct pci_dev * | dev | ) |
pci_disable_enabled_device - Disable device without updating enable_cnt : PCI device to disable
NOTE: This function is a backend of PCI power management routines and is not supposed to be called drivers.
Definition at line 1008 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_enable_ari | ( | struct pci_dev * | dev | ) |
pci_enable_ari - enable ARI forwarding if hardware support it : the PCI device
Definition at line 1441 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_enable_device | ( | struct pci_dev * | dev | ) |
pci_enable_device() is implemented by the DDE.
pci_enable_device - Initialize device before it's used by a driver. : PCI device to be initialized
Initialize device before it's used by a driver. Ask low-level code to enable I/O and memory. Wake up the device if it was suspended. Beware, this function can fail.
Note we don't actually enable the device many times if we call this function repeatedly (we just increment the count).
Definition at line 871 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_enable_device_io | ( | struct pci_dev * | dev | ) |
pci_enable_device_io - Initialize a device for use with IO space : PCI device to be initialized
Initialize device before it's used by a driver. Ask low-level code to enable I/O resources. Wake up the device if it was suspended. Beware, this function can fail.
Definition at line 840 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_enable_device_mem | ( | struct pci_dev * | dev | ) |
pci_enable_device_mem - Initialize a device for use with Memory space : PCI device to be initialized
Initialize device before it's used by a driver. Ask low-level code to enable Memory resources. Wake up the device if it was suspended. Beware, this function can fail.
Definition at line 853 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_enable_wake | ( | struct pci_dev * | dev, | |
| pci_power_t | state, | |||
| int | enable | |||
| ) |
pci_enable_wake - enable PCI device as wakeup event source : PCI device affected : PCI state from which device will issue wakeup events : True to enable event generation; false to disable
This enables the device as a wakeup event source, or disables it. When such events involves platform-specific hooks, those hooks are called automatically by this routine.
Devices with legacy power management (no standard PCI PM capabilities) always require such platform hooks.
RETURN VALUE: 0 is returned on success -EINVAL is returned if device is not supposed to wake up the system Error code depending on the platform is returned if both the platform and the native mechanism fail to enable the generation of wake-up events
Definition at line 1129 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_execute_reset_function | ( | struct pci_dev * | dev | ) |
pci_execute_reset_function() - Reset a PCI device function : Device function to reset
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.
The device function is presumed to be unused when this function is called. Resetting the device will make the contents of PCI configuration space random, so any caller of this must be prepared to reinitialise the device including MSI, bus mastering, BARs, decoding IO and memory spaces, etc.
Returns 0 if the device function was successfully reset or -ENOTTY if the device doesn't support resetting a single function.
Definition at line 2132 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_find_capability | ( | struct pci_dev * | dev, | |
| int | cap | |||
| ) |
pci_find_capability - query for devices' capabilities : PCI device to query : capability code
Tell if a device supports a given PCI capability. Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it. Possible values for :
PCI_CAP_ID_PM Power Management PCI_CAP_ID_AGP Accelerated Graphics Port PCI_CAP_ID_VPD Vital Product Data PCI_CAP_ID_SLOTID Slot Identification PCI_CAP_ID_MSI Message Signalled Interrupts PCI_CAP_ID_CHSWP CompactPCI HotSwap PCI_CAP_ID_PCIX PCI-X PCI_CAP_ID_EXP PCI Express
Definition at line 182 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_find_ext_capability | ( | struct pci_dev * | dev, | |
| int | cap | |||
| ) |
pci_find_ext_capability - Find an extended capability : PCI device to query : capability code
Returns the address of the requested extended capability structure within the device's PCI configuration space or 0 if the device does not support it. Possible values for :
PCI_EXT_CAP_ID_ERR Advanced Error Reporting PCI_EXT_CAP_ID_VC Virtual Channel PCI_EXT_CAP_ID_DSN Device Serial Number PCI_EXT_CAP_ID_PWR Power Budgeting
Definition at line 234 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_find_ht_capability | ( | struct pci_dev * | dev, | |
| int | ht_cap | |||
| ) |
pci_find_ht_capability - query a device's Hypertransport capabilities : PCI device to query : Hypertransport capability code
Tell if a device supports a given Hypertransport capability. Returns an address within the device's PCI configuration space or 0 in case the device does not support the request capability. The address points to the PCI capability, of type PCI_CAP_ID_HT, which has a Hypertransport capability matching .
Definition at line 329 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_find_next_capability | ( | struct pci_dev * | dev, | |
| u8 | pos, | |||
| int | cap | |||
| ) |
Definition at line 134 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_find_next_ht_capability | ( | struct pci_dev * | dev, | |
| int | pos, | |||
| int | ht_cap | |||
| ) |
pci_find_next_ht_capability - query a device's Hypertransport capabilities : PCI device to query : Position from which to continue searching : Hypertransport capability code
To be used in conjunction with pci_find_ht_capability() to search for all capabilities matching . should always be a value returned from pci_find_ht_capability().
NB. To be 100% safe against broken PCI devices, the caller should take steps to avoid an infinite loop.
Definition at line 312 of file linux26/lib/src/drivers/pci/pci.c.
| struct resource* pci_find_parent_resource | ( | const struct pci_dev * | dev, | |
| struct resource * | res | |||
| ) | [read] |
pci_find_parent_resource - return resource region of parent bus of given region : PCI device structure contains resources to be searched : child resource record for which parent is sought
For given resource region of given device, return the resource region of parent bus the given region is contained in or where it should be allocated from.
Definition at line 351 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_get_interrupt_pin | ( | struct pci_dev * | dev, | |
| struct pci_dev ** | bridge | |||
| ) |
Definition at line 1489 of file linux26/lib/src/drivers/pci/pci.c.
| static int __devinit pci_init | ( | void | ) | [static] |
Definition at line 2396 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_intx | ( | struct pci_dev * | pdev, | |
| int | enable | |||
| ) |
pci_intx - enables/disables PCI INTx for device dev : the PCI device to operate on : boolean: whether to enable or disable PCI INTx
Enables/disables PCI INTx for device dev
Definition at line 1930 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_msi_off | ( | struct pci_dev * | dev | ) |
pci_msi_off - disables any msi or msix capabilities : the PCI device to operate on
If you want to use msi see pci_enable_msi and friends. This is a lower level primitive that allows us to disable msi operation at the device level.
Definition at line 1963 of file linux26/lib/src/drivers/pci/pci.c.
| static void __devinit pci_no_domains | ( | void | ) | [static] |
Definition at line 2373 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_pm_init | ( | struct pci_dev * | dev | ) |
pci_pm_init - Initialize PM functions of given PCI device : PCI device to handle.
Definition at line 1269 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_pme_active | ( | struct pci_dev * | dev, | |
| bool | enable | |||
| ) |
pci_pme_active - enable or disable PCI device's PME# function : PCI device to handle.
: 'true' to enable PME# generation; 'false' to disable it.
The caller must verify that the device is capable of generating PME# before calling this function with equal to 'true'.
Definition at line 1091 of file linux26/lib/src/drivers/pci/pci.c.
| bool pci_pme_capable | ( | struct pci_dev * | dev, | |
| pci_power_t | state | |||
| ) |
pci_pme_capable - check the capability of PCI device to generate PME# : PCI device to handle.
: PCI state from which device will issue PME#.
Definition at line 1075 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_prepare_to_sleep | ( | struct pci_dev * | dev | ) |
pci_prepare_to_sleep - prepare PCI device for system-wide transition into a sleep state : Device to handle.
Choose the power state appropriate for the device depending on whether it can wake up the system and/or is power manageable by the platform (PCI_D3hot is the default) and put the device into that state.
Definition at line 1235 of file linux26/lib/src/drivers/pci/pci.c.
| static int pci_raw_set_power_state | ( | struct pci_dev * | dev, | |
| pci_power_t | state, | |||
| bool | wait | |||
| ) | [static] |
pci_raw_set_power_state - Use PCI PM registers to set the power state of given PCI device : PCI device to handle.
: PCI power state (D0, D1, D2, D3hot) to put the device into. : If 'true', wait for the device to change its power state
RETURN VALUE: -EINVAL if the requested state is invalid. -EIO if device does not support PCI PM or its PM capabilities register has a wrong version, or device doesn't support the requested state. 0 if device already is in the requested state. 0 if device's power state has been successfully changed.
Definition at line 443 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_reenable_device | ( | struct pci_dev * | dev | ) |
pci_reenable_device - Resume abandoned device : PCI device to be resumed
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.
Definition at line 806 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_release_region | ( | struct pci_dev * | pdev, | |
| int | bar | |||
| ) |
pci_release_region - Release a PCI bar : PCI device whose resources were previously reserved by pci_request_region : BAR to release
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 has ceased.
Definition at line 1534 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_release_regions | ( | struct pci_dev * | pdev | ) |
pci_release_regions - Release reserved PCI I/O and memory resources : PCI device whose resources were previously reserved by pci_request_regions
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.
Definition at line 1711 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_release_selected_regions | ( | struct pci_dev * | pdev, | |
| int | bars | |||
| ) |
pci_release_selected_regions - Release selected PCI I/O and memory resources : PCI device whose resources were previously reserved : Bitmask of BARs to be released
Release selected PCI I/O and memory resources previously reserved. Call this function only after all use of the PCI regions has ceased.
Definition at line 1654 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_request_region | ( | struct pci_dev * | pdev, | |
| int | bar, | |||
| const char * | res_name | |||
| ) |
pci_request_region - Reserve PCI I/O and memory resource : PCI device whose resources are to be reserved : BAR to be reserved : Name to be associated with resource
Mark the PCI region associated with PCI device BAR as being reserved by owner . Do not access any address inside the PCI regions unless this call returns successfully.
Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.
Definition at line 1619 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_request_region_exclusive | ( | struct pci_dev * | pdev, | |
| int | bar, | |||
| const char * | res_name | |||
| ) |
pci_request_region_exclusive - Reserved PCI I/O and memory resource : PCI device whose resources are to be reserved : BAR to be reserved : Name to be associated with resource.
Mark the PCI region associated with PCI device BR as being reserved by owner . Do not access any address inside the PCI regions unless this call returns successfully.
Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.
The key difference that _exclusive makes it that userspace is explicitly not allowed to map the resource via /dev/mem or sysfs.
Definition at line 1642 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_request_regions | ( | struct pci_dev * | pdev, | |
| const char * | res_name | |||
| ) |
pci_request_regions - Reserved PCI I/O and memory resources : PCI device whose resources are to be reserved : Name to be associated with resource.
Mark all PCI regions associated with PCI device as being reserved by owner . Do not access any address inside the PCI regions unless this call returns successfully.
Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.
Definition at line 1729 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_request_regions_exclusive | ( | struct pci_dev * | pdev, | |
| const char * | res_name | |||
| ) |
pci_request_regions_exclusive - Reserved PCI I/O and memory resources : PCI device whose resources are to be reserved : Name to be associated with resource.
Mark all PCI regions associated with PCI device as being reserved by owner . Do not access any address inside the PCI regions unless this call returns successfully.
pci_request_regions_exclusive() will mark the region so that /dev/mem and the sysfs MMIO access will not be allowed.
Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.
Definition at line 1751 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_request_selected_regions | ( | struct pci_dev * | pdev, | |
| int | bars, | |||
| const char * | res_name | |||
| ) |
pci_request_selected_regions - Reserve selected PCI I/O and memory resources : PCI device whose resources are to be reserved : Bitmask of BARs to be requested : Name to be associated with resource
Definition at line 1689 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_request_selected_regions_exclusive | ( | struct pci_dev * | pdev, | |
| int | bars, | |||
| const char * | res_name | |||
| ) |
Definition at line 1695 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_reset_function | ( | struct pci_dev * | dev | ) |
pci_reset_function() - quiesce and reset a PCI device function : Device function to reset
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 function does not just reset the PCI portion of a device, but clears all the state associated with the device. This function differs from pci_execute_reset_function in that it saves and restores device state over the reset.
Returns 0 if the device function was successfully reset or -ENOTTY if the device doesn't support resetting a single function.
Definition at line 2154 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_resource_bar | ( | struct pci_dev * | dev, | |
| int | resno, | |||
| enum pci_bar_type * | type | |||
| ) |
| static void pci_restore_bars | ( | struct pci_dev * | dev | ) | [static] |
pci_restore_bars - restore a devices BAR values (e.g.
after wake-up) : PCI device to have its BARs restored
Restore the BAR values for a given device, so as to make it accessible by its driver.
Definition at line 381 of file linux26/lib/src/drivers/pci/pci.c.
| static void pci_restore_pcie_state | ( | struct pci_dev * | dev | ) | [static] |
Definition at line 677 of file linux26/lib/src/drivers/pci/pci.c.
| static void pci_restore_pcix_state | ( | struct pci_dev * | dev | ) | [static] |
Definition at line 716 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_restore_standard_config | ( | struct pci_dev * | dev | ) |
pci_restore_standard_config - restore standard config registers of PCI device : PCI device to handle
This function assumes that the device's configuration space is accessible. If the device needs to be powered up, the function will wait for it to change the state.
Definition at line 1401 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_restore_state | ( | struct pci_dev * | dev | ) |
pci_restore_state - Restore the saved state of a PCI device : - PCI device that we're dealing with
Definition at line 756 of file linux26/lib/src/drivers/pci/pci.c.
| static int pci_save_pcie_state | ( | struct pci_dev * | dev | ) | [static] |
Definition at line 652 of file linux26/lib/src/drivers/pci/pci.c.
| static int pci_save_pcix_state | ( | struct pci_dev * | dev | ) | [static] |
Definition at line 696 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_save_state | ( | struct pci_dev * | dev | ) |
pci_save_state - save the PCI configuration space of a device before suspending : - PCI device that we're dealing with
Definition at line 737 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_select_bars | ( | struct pci_dev * | dev, | |
| unsigned long | flags | |||
| ) |
pci_select_bars - Make BAR mask from the type of resource : the PCI device for which BAR mask is made : resource type mask to be selected
This helper routine makes bar mask from the type of resource.
Definition at line 2342 of file linux26/lib/src/drivers/pci/pci.c.
| static int pci_set_cacheline_size | ( | struct pci_dev * | dev | ) | [static] |
pci_set_cacheline_size - ensure the CACHE_LINE_SIZE register is programmed : the PCI device for which MWI is to be enabled
Helper function for pci_set_mwi. Originally copied from drivers/net/acenic.c. Copyright 1998-2001 by Jes Sorensen, <jes@trained-monkey.org>.
RETURNS: An appropriate -ERRNO error value on error, or zero for success.
Definition at line 1833 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_consistent_dma_mask | ( | struct pci_dev * | dev, | |
| u64 | mask | |||
| ) |
Definition at line 1998 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_dma_mask | ( | struct pci_dev * | dev, | |
| u64 | mask | |||
| ) |
Definition at line 1987 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_dma_max_seg_size | ( | struct pci_dev * | dev, | |
| unsigned int | size | |||
| ) |
Definition at line 2010 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_dma_seg_boundary | ( | struct pci_dev * | dev, | |
| unsigned long | mask | |||
| ) |
Definition at line 2018 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_set_master | ( | struct pci_dev * | dev | ) |
pci_set_master - enables bus-mastering for device dev : the PCI device to enable
Enables bus-mastering on the device and calls pcibios_set_master() to do the needed arch specific settings.
Definition at line 1781 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_mwi | ( | struct pci_dev * | dev | ) |
pci_set_mwi - enables memory-write-invalidate PCI transaction : the PCI device for which MWI is enabled
Enables the Memory-Write-Invalidate transaction in PCI_COMMAND.
RETURNS: An appropriate -ERRNO error value on error, or zero for success.
Definition at line 1869 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_pcie_reset_state | ( | struct pci_dev * | dev, | |
| enum pcie_reset_state | state | |||
| ) |
pci_set_pcie_reset_state - set reset state for device dev : the PCI-E device reset : Reset state to enter into
Sets the PCI reset state for the device.
Definition at line 1065 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_platform_pm | ( | struct pci_platform_pm_ops * | ops | ) |
Definition at line 391 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_set_power_state | ( | struct pci_dev * | dev, | |
| pci_power_t | state | |||
| ) |
pci_set_power_state - Set the power state of a PCI device : PCI device to handle.
: PCI power state (D0, D1, D2, D3hot) to put the device into.
Transition a device to a new power state, using the platform formware and/or the device's PCI PM registers.
RETURN VALUE: -EINVAL if the requested state is invalid. -EIO if device does not support PCI PM or its PM capabilities register has a wrong version, or device doesn't support the requested state. 0 if device already is in the requested state. 0 if device's power state has been successfully changed.
Definition at line 567 of file linux26/lib/src/drivers/pci/pci.c.
| static int __init pci_setup | ( | char * | str | ) | [static] |
Definition at line 2407 of file linux26/lib/src/drivers/pci/pci.c.
| u8 pci_swizzle_interrupt_pin | ( | struct pci_dev * | dev, | |
| u8 | pin | |||
| ) |
pci_swizzle_interrupt_pin - swizzle INTx for device behind bridge : the PCI device : the INTx pin (1=INTA, 2=INTB, 3=INTD, 4=INTD)
Perform INTx swizzling for a device behind one level of bridge. This is required by section 9.1 of the PCI-to-PCI bridge specification for devices behind bridges on add-in cards.
Definition at line 1483 of file linux26/lib/src/drivers/pci/pci.c.
| pci_power_t pci_target_state | ( | struct pci_dev * | dev | ) |
pci_target_state - find an appropriate low power state for a given PCI dev : PCI device
Use underlying platform code to find a supported low power state for . If the platform can't manage , return the deepest state from which it can generate wake events, based on any available PME info.
Definition at line 1186 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_try_set_mwi | ( | struct pci_dev * | dev | ) |
pci_try_set_mwi - enables memory-write-invalidate PCI transaction : the PCI device for which MWI is enabled
Enables the Memory-Write-Invalidate transaction in PCI_COMMAND. Callers are not required to check the return value.
RETURNS: An appropriate -ERRNO error value on error, or zero for success.
Definition at line 1897 of file linux26/lib/src/drivers/pci/pci.c.
| void pci_update_current_state | ( | struct pci_dev * | dev, | |
| pci_power_t | state | |||
| ) |
pci_update_current_state - Read PCI power state of given device from its PCI PM registers and cache it : PCI device to handle.
: State to cache in case the device doesn't have the PM capability
Definition at line 540 of file linux26/lib/src/drivers/pci/pci.c.
| int pci_wake_from_d3 | ( | struct pci_dev * | dev, | |
| bool | enable | |||
| ) |
pci_wake_from_d3 - enable/disable device to wake up from D3_hot or D3_cold : PCI device to prepare : True to enable wake-up event generation; false to disable
Many drivers want the device to wake up the system from D3_hot or D3_cold and this function allows them to set that up cleanly - pci_enable_wake() should not be called twice in a row to enable wake-up due to PCI PM vs ACPI ordering constraints.
This function only returns error code if the device is not capable of generating PME# from both D3_hot and D3_cold, and the platform is unable to enable wake-up power for it.
Definition at line 1171 of file linux26/lib/src/drivers/pci/pci.c.
| int pcie_get_readrq | ( | struct pci_dev * | dev | ) |
pcie_get_readrq - get PCI Express read request size : PCI device to query
Returns maximum memory read request in bytes or appropriate error value.
Definition at line 2281 of file linux26/lib/src/drivers/pci/pci.c.
| int pcie_set_readrq | ( | struct pci_dev * | dev, | |
| int | rq | |||
| ) |
pcie_set_readrq - set PCI Express maximum memory read request : PCI device to query : maximum memory read count in bytes valid values are 128, 256, 512, 1024, 2048, 4096
If possible sets maximum read byte count
Definition at line 2306 of file linux26/lib/src/drivers/pci/pci.c.
| int pcim_enable_device | ( | struct pci_dev * | pdev | ) |
pcim_enable_device - Managed pci_enable_device() : PCI device to be initialized
Managed pci_enable_device().
Definition at line 940 of file linux26/lib/src/drivers/pci/pci.c.
| void pcim_pin_device | ( | struct pci_dev * | pdev | ) |
pcim_pin_device - Pin managed PCI device : PCI device to pin
Pin managed PCI device . Pinned device won't be disabled on driver detach. must have been enabled with pcim_enable_device().
Definition at line 967 of file linux26/lib/src/drivers/pci/pci.c.
| static void pcim_release | ( | struct device * | gendev, | |
| void * | res | |||
| ) | [static] |
Definition at line 891 of file linux26/lib/src/drivers/pci/pci.c.
| int pcix_get_max_mmrbc | ( | struct pci_dev * | dev | ) |
pcix_get_max_mmrbc - get PCI-X maximum designed memory read byte count : PCI device to query
Returns mmrbc: maximum designed memory read count in bytes or appropriate error value.
Definition at line 2184 of file linux26/lib/src/drivers/pci/pci.c.
| int pcix_get_mmrbc | ( | struct pci_dev * | dev | ) |
pcix_get_mmrbc - get PCI-X maximum memory read byte count : PCI device to query
Returns mmrbc: maximum memory read count in bytes or appropriate error value.
Definition at line 2208 of file linux26/lib/src/drivers/pci/pci.c.
| int pcix_set_mmrbc | ( | struct pci_dev * | dev, | |
| int | mmrbc | |||
| ) |
pcix_set_mmrbc - set PCI-X maximum memory read byte count : PCI device to query : maximum memory read count in bytes valid values are 512, 1024, 2048, 4096
If possible sets maximum memory read byte count, some bridges have erratas that prevent this.
Definition at line 2234 of file linux26/lib/src/drivers/pci/pci.c.
| static bool platform_pci_can_wakeup | ( | struct pci_dev * | dev | ) | [inline, static] |
Definition at line 417 of file linux26/lib/src/drivers/pci/pci.c.
| static pci_power_t platform_pci_choose_state | ( | struct pci_dev * | dev | ) | [inline, static] |
Definition at line 411 of file linux26/lib/src/drivers/pci/pci.c.
| static bool platform_pci_power_manageable | ( | struct pci_dev * | dev | ) | [inline, static] |
Definition at line 400 of file linux26/lib/src/drivers/pci/pci.c.
| static int platform_pci_set_power_state | ( | struct pci_dev * | dev, | |
| pci_power_t | t | |||
| ) | [inline, static] |
Definition at line 405 of file linux26/lib/src/drivers/pci/pci.c.
| static int platform_pci_sleep_wake | ( | struct pci_dev * | dev, | |
| bool | enable | |||
| ) | [inline, static] |
Definition at line 422 of file linux26/lib/src/drivers/pci/pci.c.
| void platform_pci_wakeup_init | ( | struct pci_dev * | dev | ) |
platform_pci_wakeup_init - init platform wakeup if present : PCI device
Some devices don't have PCI PM caps but can still generate wakeup events through platform methods (like ACPI events). If supports platform wakeup events, set the device flag to indicate as much. This may be redundant if the device also supports PCI PM caps, but double initialization should be safe in that case.
Definition at line 1337 of file linux26/lib/src/drivers/pci/pci.c.
| u8 pci_cache_line_size = PCI_CACHE_LINE_BYTES / 4 |
Definition at line 1820 of file linux26/lib/src/drivers/pci/pci.c.
| unsigned long pci_cardbus_io_size = DEFAULT_CARDBUS_IO_SIZE |
Definition at line 38 of file linux26/lib/src/drivers/pci/pci.c.
| unsigned long pci_cardbus_mem_size = DEFAULT_CARDBUS_MEM_SIZE |
Definition at line 39 of file linux26/lib/src/drivers/pci/pci.c.
struct pci_platform_pm_ops* pci_platform_pm [static] |
Definition at line 389 of file linux26/lib/src/drivers/pci/pci.c.
| unsigned int pci_pm_d3_delay = PCI_PM_D3_WAIT |
Definition at line 29 of file linux26/lib/src/drivers/pci/pci.c.
1.5.6