We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a45b1 commit cdcce47Copy full SHA for cdcce47
drivers/cxl/pci.h
@@ -20,13 +20,15 @@
20
#define CXL_REGLOC_BIR_MASK GENMASK(2, 0)
21
22
/* Register Block Identifier (RBI) */
23
-#define CXL_REGLOC_RBI_MASK GENMASK(15, 8)
24
-#define CXL_REGLOC_RBI_EMPTY 0
25
-#define CXL_REGLOC_RBI_COMPONENT 1
26
-#define CXL_REGLOC_RBI_VIRT 2
27
-#define CXL_REGLOC_RBI_MEMDEV 3
28
-#define CXL_REGLOC_RBI_TYPES CXL_REGLOC_RBI_MEMDEV + 1
+enum cxl_regloc_type {
+ CXL_REGLOC_RBI_EMPTY = 0,
+ CXL_REGLOC_RBI_COMPONENT,
+ CXL_REGLOC_RBI_VIRT,
+ CXL_REGLOC_RBI_MEMDEV,
+ CXL_REGLOC_RBI_TYPES
29
+};
30
31
+#define CXL_REGLOC_RBI_MASK GENMASK(15, 8)
32
#define CXL_REGLOC_ADDR_MASK GENMASK(31, 16)
33
34
#endif /* __CXL_PCI_H__ */
0 commit comments