Lines Matching defs:pci_dev
291 struct pci_dev { struct
292 struct list_head bus_list; /* Node in per-bus list */
293 struct pci_bus *bus; /* Bus this device is on */
294 struct pci_bus *subordinate; /* Bus this device bridges to */
296 void *sysdata; /* Hook for sys-specific extension */
297 struct proc_dir_entry *procent; /* Device entry in /proc/bus/pci */
298 struct pci_slot *slot; /* Physical slot this device is in */
300 unsigned int devfn; /* Encoded device & function index */
301 unsigned short vendor;
302 unsigned short device;
303 unsigned short subsystem_vendor;
304 unsigned short subsystem_device;
305 unsigned int class; /* 3 bytes: (base,sub,prog-if) */
306 u8 revision; /* PCI revision, low byte of class word */
307 u8 hdr_type; /* PCI header type (`multi' flag masked out) */
309 u16 aer_cap; /* AER capability offset */
310 struct aer_stats *aer_stats; /* AER stats for this device */
312 u8 pcie_cap; /* PCIe capability offset */
313 u8 msi_cap; /* MSI capability offset */
314 u8 msix_cap; /* MSI-X capability offset */
315 u8 pcie_mpss:3; /* PCIe Max Payload Size Supported */
316 u8 rom_base_reg; /* Config register controlling ROM */
317 u8 pin; /* Interrupt pin this device uses */
318 u16 pcie_flags_reg; /* Cached PCIe Capabilities Register */
319 unsigned long *dma_alias_mask;/* Mask of enabled devfn aliases */
321 struct pci_driver *driver; /* Driver bound to this device */
322 u64 dma_mask; /* Mask of the bits of bus address this
328 struct device_dma_parameters dma_parms;
330 pci_power_t current_state; /* Current operating state. In ACPI,
333 unsigned int imm_ready:1; /* Supports Immediate Readiness */
334 u8 pm_cap; /* PM capability offset */
335 unsigned int pme_support:5; /* Bitmask of states from which PME#
337 unsigned int pme_poll:1; /* Poll device's PME status bit */
338 unsigned int d1_support:1; /* Low power state D1 is supported */
339 unsigned int d2_support:1; /* Low power state D2 is supported */
340 unsigned int no_d1d2:1; /* D1 and D2 are forbidden */
341 unsigned int no_d3cold:1; /* D3cold is forbidden */
342 unsigned int bridge_d3:1; /* Allow D3 for bridge */
343 unsigned int d3cold_allowed:1; /* D3cold is allowed by user */
344 unsigned int mmio_always_on:1; /* Disallow turning off io/mem
346 unsigned int wakeup_prepared:1;
347 unsigned int runtime_d3cold:1; /* Whether go through runtime
351 unsigned int skip_bus_pm:1; /* Internal: Skip bus-level PM */
352 unsigned int ignore_hotplug:1; /* Ignore hotplug events */
353 unsigned int hotplug_user_indicators:1; /* SlotCtl indicators
356 unsigned int clear_retrain_link:1; /* Need to clear Retrain Link
358 unsigned int d3_delay; /* D3->D0 transition time in ms */
359 unsigned int d3cold_delay; /* D3cold->D0 transition time in ms */
362 struct pcie_link_state *link_state; /* ASPM link state */
363 unsigned int ltr_path:1; /* Latency Tolerance Reporting
366 unsigned int eetlp_prefix_path:1; /* End-to-End TLP Prefix */
368 pci_channel_state_t error_state; /* Current connectivity state */
369 struct device dev; /* Generic device interface */
371 int cfg_size; /* Size of config space */
377 unsigned int irq;
378 struct resource resource[DEVICE_COUNT_RESOURCE]; /* I/O and memory regions + expansion ROMs */
380 bool match_driver; /* Skip attaching driver */
382 unsigned int transparent:1; /* Subtractive decode bridge */
383 unsigned int io_window:1; /* Bridge has I/O window */
384 unsigned int pref_window:1; /* Bridge has pref mem window */
385 unsigned int pref_64_window:1; /* Pref mem window is 64-bit */
386 unsigned int multifunction:1; /* Multi-function device */
388 unsigned int is_busmaster:1; /* Is busmaster */
389 unsigned int no_msi:1; /* May not use MSI */
390 unsigned int no_64bit_msi:1; /* May only use 32-bit MSIs */
391 unsigned int block_cfg_access:1; /* Config space access blocked */
392 unsigned int broken_parity_status:1; /* Generates false positive parity */
393 unsigned int irq_reroute_variant:2; /* Needs IRQ rerouting variant */
394 unsigned int msi_enabled:1;
395 unsigned int msix_enabled:1;
396 unsigned int ari_enabled:1; /* ARI forwarding */
397 unsigned int ats_enabled:1; /* Address Translation Svc */
398 unsigned int pasid_enabled:1; /* Process Address Space ID */
399 unsigned int pri_enabled:1; /* Page Request Interface */
400 unsigned int is_managed:1;
401 unsigned int needs_freset:1; /* Requires fundamental reset */
402 unsigned int state_saved:1;
426 pci_dev_flags_t dev_flags; argument
427 atomic_t enable_cnt; /* pci_enable_device has been called */
451 struct pci_dev *physfn; /* VF: related PF */ argument
473 static inline struct pci_dev *pci_physfn(struct pci_dev *dev) in pci_physfn() argument
653 static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev) in pci_dev_msi_enabled()
658 static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev) { return false; } in pci_dev_msi_enabled()