aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/hw-txe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/mei/hw-txe.c')
-rw-r--r--drivers/misc/mei/hw-txe.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/drivers/misc/mei/hw-txe.c b/drivers/misc/mei/hw-txe.c
index 455a6a56b82b..93273783dec5 100644
--- a/drivers/misc/mei/hw-txe.c
+++ b/drivers/misc/mei/hw-txe.c
@@ -1104,14 +1104,27 @@ static const struct mei_hw_ops mei_txe_hw_ops = {
1104 1104
1105}; 1105};
1106 1106
1107#define MEI_CFG_TXE_FW_STS \
1108 .fw_status.count = 2, \
1109 .fw_status.status[0] = PCI_CFG_TXE_FW_STS0, \
1110 .fw_status.status[1] = PCI_CFG_TXE_FW_STS1
1111
1112const struct mei_cfg mei_txe_cfg = {
1113 MEI_CFG_TXE_FW_STS,
1114};
1115
1116
1107/** 1117/**
1108 * mei_txe_dev_init - allocates and initializes txe hardware specific structure 1118 * mei_txe_dev_init - allocates and initializes txe hardware specific structure
1109 * 1119 *
1110 * @pdev - pci device 1120 * @pdev - pci device
1121 * @cfg - per device generation config
1122 *
1111 * returns struct mei_device * on success or NULL; 1123 * returns struct mei_device * on success or NULL;
1112 * 1124 *
1113 */ 1125 */
1114struct mei_device *mei_txe_dev_init(struct pci_dev *pdev) 1126struct mei_device *mei_txe_dev_init(struct pci_dev *pdev,
1127 const struct mei_cfg *cfg)
1115{ 1128{
1116 struct mei_device *dev; 1129 struct mei_device *dev;
1117 struct mei_txe_hw *hw; 1130 struct mei_txe_hw *hw;
@@ -1121,7 +1134,7 @@ struct mei_device *mei_txe_dev_init(struct pci_dev *pdev)
1121 if (!dev) 1134 if (!dev)
1122 return NULL; 1135 return NULL;
1123 1136
1124 mei_device_init(dev); 1137 mei_device_init(dev, cfg);
1125 1138
1126 hw = to_txe_hw(dev); 1139 hw = to_txe_hw(dev);
1127 1140