Lines Matching +full:pci +full:- +full:x

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
35 /* some PCI bus constants */
37 #define PCI_MAXMAPS_1 2 /* max. no. of maps for PCI to PCI bridge */
42 /* Config registers for PCI-PCI and PCI-Cardbus bridges. */
51 /* Interesting values for PCI power management */
53 uint16_t pp_cap; /* PCI power management capabilities */
87 /* Interesting values for PCI MSI */
97 /* Interesting values for PCI MSI-X */
105 u_int mte_vector; /* 1-based index into msix_vectors array. */
111 uint8_t msix_location; /* Offset of MSI-X capability registers. */
131 uint8_t ht_slave; /* Non-zero if device is an HT slave. */
137 /* Interesting values for PCI-express */
139 uint8_t pcie_location; /* Offset of PCI-e capability registers. */
153 uint8_t pcix_location; /* Offset of PCI-X capability registers. */
174 #define PCICFG_VF 0x0001 /* Device is an SR-IOV Virtual Function */
187 uint16_t cmdreg; /* disable/enable chip and PCI options */
188 uint16_t statreg; /* supported PCI features and error state */
190 uint8_t baseclass; /* chip PCI class */
191 uint8_t subclass; /* chip PCI subclass */
192 uint8_t progif; /* chip PCI programming interface */
197 uint8_t intpin; /* PCI interrupt pin */
204 uint8_t mfdev; /* multi-function device (from hdrtype reg) */
205 uint8_t nummaps; /* actual number of PCI maps used */
207 uint32_t domain; /* PCI domain */
217 struct pcicfg_msi msi; /* PCI MSI */
218 struct pcicfg_msix msix; /* PCI MSI-X */
220 struct pcicfg_pcie pcie; /* PCI Express */
221 struct pcicfg_pcix pcix; /* PCI-X */
222 struct pcicfg_iov *iov; /* SR-IOV */
223 struct pcicfg_vf vf; /* SR-IOV Virtual Function */
227 /* additional type 1 device config header information (PCI to PCI bridge) */
266 * modules with devices on the PCI bus.
308 #define PCI_CLASS(x) \ argument
309 .match_flag_class = 1, .class_id = (x)
310 #define PCI_SUBCLASS(x) \ argument
311 .match_flag_subclass = 1, .subclass = (x)
312 #define PCI_REVID(x) \ argument
313 .match_flag_revid = 1, .revid = (x)
314 #define PCI_DESCR(x) \ argument
315 .descr = (x)
320 MODULE_PNP_INFO(PCI_PNP_STR, pci, table, table, \
367 * Simplified accessors for pci devices
370 __BUS_ACCESSOR(pci, var, PCI, ivar, type)
412 * Ivars for pci bridges.
430 * PCI interrupt validation. Invalid interrupt values such as 0 or 128 in PCIB_ACCESSOR()
435 #define PCI_INTERRUPT_VALID(x) ((x) != PCI_INVALID_IRQ) in PCIB_ACCESSOR() argument
498 * PCI power states are as defined by ACPI:
502 * D1 Class-specific low-power state in which device context may or may not
505 * D2 Class-specific low-power state in which device context may or may
521 #define PCI_POWERSTATE_UNKNOWN -1
686 /* Can be used by drivers to manage the MSI-X table. */
720 * cdev switch for control device, initialised in generic PCI code
725 * List of all PCI devices, generation count for the list.
747 * Global eventhandlers invoked when PCI devices are added or removed