PCI: Add PCI_PTM_CAP_RES macro
authorVidya Sagar <vidyas@nvidia.com>
Mon, 19 Sep 2022 14:33:39 +0000 (20:03 +0530)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Thu, 27 Oct 2022 12:40:59 +0000 (14:40 +0200)
Add macro defining Responder capable bit in Precision Time Measurement
capability register.

Link: https://lore.kernel.org/r/20220919143340.4527-2-vidyas@nvidia.com
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Reviewed-by: Jingoo Han <jingoohan1@gmail.com>
include/uapi/linux/pci_regs.h

index 57b8e2f..1c3591c 100644 (file)
 /* Precision Time Measurement */
 #define PCI_PTM_CAP                    0x04        /* PTM Capability */
 #define  PCI_PTM_CAP_REQ               0x00000001  /* Requester capable */
+#define  PCI_PTM_CAP_RES               0x00000002  /* Responder capable */
 #define  PCI_PTM_CAP_ROOT              0x00000004  /* Root capable */
 #define  PCI_PTM_GRANULARITY_MASK      0x0000FF00  /* Clock granularity */
 #define PCI_PTM_CTRL                   0x08        /* PTM Control */