Skip to content

Commit 4b313c6

Browse files
floatiouskwilczynski
authored andcommitted
PCI: endpoint: Add intx_capable to epc_features struct
In struct pci_epc_features, an EPC driver can already specify if they support MSI (by setting msi_capable) and MSI-X (by setting msix_capable). Thus, for consistency, allow an EPC driver to specify if it supports INTx interrupts as well (by setting intx_capable). Since this struct is zero initialized, EPC drivers that want to claim INTx support will need to set intx_capable to true. Signed-off-by: Niklas Cassel <[email protected]> [kwilczynski: add missing kernel-doc for "intx_capable"] Signed-off-by: Krzysztof Wilczyński <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 24a4258 commit 4b313c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/pci-epc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,15 @@ struct pci_epc_bar_desc {
221221
* @linkup_notifier: indicate if the EPC device can notify EPF driver on link up
222222
* @msi_capable: indicate if the endpoint function has MSI capability
223223
* @msix_capable: indicate if the endpoint function has MSI-X capability
224+
* @intx_capable: indicate if the endpoint can raise INTx interrupts
224225
* @bar: array specifying the hardware description for each BAR
225226
* @align: alignment size required for BAR buffer allocation
226227
*/
227228
struct pci_epc_features {
228229
unsigned int linkup_notifier : 1;
229230
unsigned int msi_capable : 1;
230231
unsigned int msix_capable : 1;
232+
unsigned int intx_capable : 1;
231233
struct pci_epc_bar_desc bar[PCI_STD_NUM_BARS];
232234
size_t align;
233235
};

0 commit comments

Comments
 (0)