@@ -68,6 +68,10 @@ enum vmd_features {
68
68
VMD_FEAT_CAN_BYPASS_MSI_REMAP = (1 << 4 ),
69
69
};
70
70
71
+ #define VMD_FEATS_CLIENT (VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP | \
72
+ VMD_FEAT_HAS_BUS_RESTRICTIONS | \
73
+ VMD_FEAT_OFFSET_FIRST_VECTOR)
74
+
71
75
static DEFINE_IDA (vmd_instance_ida );
72
76
73
77
/*
@@ -1024,29 +1028,17 @@ static const struct pci_device_id vmd_ids[] = {
1024
1028
VMD_FEAT_HAS_BUS_RESTRICTIONS |
1025
1029
VMD_FEAT_CAN_BYPASS_MSI_REMAP ,},
1026
1030
{PCI_VDEVICE (INTEL , 0x467f ),
1027
- .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
1028
- VMD_FEAT_HAS_BUS_RESTRICTIONS |
1029
- VMD_FEAT_OFFSET_FIRST_VECTOR ,},
1031
+ .driver_data = VMD_FEATS_CLIENT ,},
1030
1032
{PCI_VDEVICE (INTEL , 0x4c3d ),
1031
- .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
1032
- VMD_FEAT_HAS_BUS_RESTRICTIONS |
1033
- VMD_FEAT_OFFSET_FIRST_VECTOR ,},
1033
+ .driver_data = VMD_FEATS_CLIENT ,},
1034
1034
{PCI_VDEVICE (INTEL , 0xa77f ),
1035
- .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
1036
- VMD_FEAT_HAS_BUS_RESTRICTIONS |
1037
- VMD_FEAT_OFFSET_FIRST_VECTOR ,},
1035
+ .driver_data = VMD_FEATS_CLIENT ,},
1038
1036
{PCI_VDEVICE (INTEL , 0x7d0b ),
1039
- .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
1040
- VMD_FEAT_HAS_BUS_RESTRICTIONS |
1041
- VMD_FEAT_OFFSET_FIRST_VECTOR ,},
1037
+ .driver_data = VMD_FEATS_CLIENT ,},
1042
1038
{PCI_VDEVICE (INTEL , 0xad0b ),
1043
- .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
1044
- VMD_FEAT_HAS_BUS_RESTRICTIONS |
1045
- VMD_FEAT_OFFSET_FIRST_VECTOR ,},
1039
+ .driver_data = VMD_FEATS_CLIENT ,},
1046
1040
{PCI_VDEVICE (INTEL , PCI_DEVICE_ID_INTEL_VMD_9A0B ),
1047
- .driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
1048
- VMD_FEAT_HAS_BUS_RESTRICTIONS |
1049
- VMD_FEAT_OFFSET_FIRST_VECTOR ,},
1041
+ .driver_data = VMD_FEATS_CLIENT ,},
1050
1042
{0 ,}
1051
1043
};
1052
1044
MODULE_DEVICE_TABLE (pci , vmd_ids );
0 commit comments