From: Wang Xiao W Date: Thu, 10 Sep 2015 04:38:32 +0000 (+0800) Subject: fm10k/base: add FM10420 device ids X-Git-Tag: spdx-start~8396 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=97661df7d2d29f63280d436d7202a3fa8131895b;p=dpdk.git fm10k/base: add FM10420 device ids Add the device ID for Boulder Rapids and Atwood Channel to enable drivers to support those devices. Signed-off-by: Wang Xiao W --- diff --git a/drivers/net/fm10k/base/fm10k_api.c b/drivers/net/fm10k/base/fm10k_api.c index 05844131a1..eb5bdaa2c7 100644 --- a/drivers/net/fm10k/base/fm10k_api.c +++ b/drivers/net/fm10k/base/fm10k_api.c @@ -55,6 +55,12 @@ s32 fm10k_set_mac_type(struct fm10k_hw *hw) switch (hw->device_id) { case FM10K_DEV_ID_PF: +#ifdef BOULDER_RAPIDS_HW + case FM10K_DEV_ID_SDI_FM10420_QDA2: +#endif /* BOULDER_RAPIDS_HW */ +#ifdef ATWOOD_CHANNEL_HW + case FM10K_DEV_ID_SDI_FM10420_DA2: +#endif /* ATWOOD_CHANNEL_HW */ hw->mac.type = fm10k_mac_pf; break; case FM10K_DEV_ID_VF: diff --git a/drivers/net/fm10k/base/fm10k_type.h b/drivers/net/fm10k/base/fm10k_type.h index 39e4d15f4b..df1d27613b 100644 --- a/drivers/net/fm10k/base/fm10k_type.h +++ b/drivers/net/fm10k/base/fm10k_type.h @@ -43,6 +43,12 @@ struct fm10k_hw; #define FM10K_INTEL_VENDOR_ID 0x8086 #define FM10K_DEV_ID_PF 0x15A4 #define FM10K_DEV_ID_VF 0x15A5 +#ifdef BOULDER_RAPIDS_HW +#define FM10K_DEV_ID_SDI_FM10420_QDA2 0x15D0 +#endif /* BOULDER_RAPIDS_HW */ +#ifdef ATWOOD_CHANNEL_HW +#define FM10K_DEV_ID_SDI_FM10420_DA2 0x15D5 +#endif /* ATWOOD_CHANNEL_HW */ #define FM10K_MAX_QUEUES 256 #define FM10K_MAX_QUEUES_PF 128