Skip to content

Commit 95cb8ff

Browse files
shimodaybjorn-helgaas
authored andcommitted
PCI: Add PCIE_MSG_CODE_ASSERT_INTx message macros
Add "Message Routing" and "INTx Mechanism Messages" macros to enable a PCIe driver to send messages for INTx Interrupt Signaling. Values from PCIe r6.1, sec 2.2.8 and 2.2.8.1. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Yoshihiro Shimoda <[email protected]> Signed-off-by: Frank Li <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Serge Semin <[email protected]>
1 parent cd02e4b commit 95cb8ff

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/pci/pci.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@
2222
*/
2323
#define PCIE_PME_TO_L2_TIMEOUT_US 10000
2424

25+
/* Message Routing (r[2:0]); PCIe r6.0, sec 2.2.8 */
26+
#define PCIE_MSG_TYPE_R_RC 0
27+
#define PCIE_MSG_TYPE_R_ADDR 1
28+
#define PCIE_MSG_TYPE_R_ID 2
29+
#define PCIE_MSG_TYPE_R_BC 3
30+
#define PCIE_MSG_TYPE_R_LOCAL 4
31+
#define PCIE_MSG_TYPE_R_GATHER 5
32+
33+
/* INTx Mechanism Messages; PCIe r6.0, sec 2.2.8.1 */
34+
#define PCIE_MSG_CODE_ASSERT_INTA 0x20
35+
#define PCIE_MSG_CODE_ASSERT_INTB 0x21
36+
#define PCIE_MSG_CODE_ASSERT_INTC 0x22
37+
#define PCIE_MSG_CODE_ASSERT_INTD 0x23
38+
#define PCIE_MSG_CODE_DEASSERT_INTA 0x24
39+
#define PCIE_MSG_CODE_DEASSERT_INTB 0x25
40+
#define PCIE_MSG_CODE_DEASSERT_INTC 0x26
41+
#define PCIE_MSG_CODE_DEASSERT_INTD 0x27
42+
2543
extern const unsigned char pcie_link_speed[];
2644
extern bool pci_early_dump;
2745

0 commit comments

Comments
 (0)