aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
diff options
context:
space:
mode:
authorSony Chacko <sony.chacko@qlogic.com>2012-12-03 22:33:52 -0500
committerDavid S. Miller <davem@davemloft.net>2012-12-04 13:00:11 -0500
commit97ee45eb099a9a0f1dc992f98e9476cc159ee5e0 (patch)
tree3200eaef5b96e027f18610f487904ed475956e14 /drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
parentfb4ce8ad8036e6b3d5ab021fd10934b80270cc11 (diff)
qlcnic: add 82xx adapter specific checks
Add 82xx adapter ID check before 82xx specific operations as part of refactoring the driver to enable support for new adapter. Signed-off-by: Sony Chacko <sony.chacko@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic.h')
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
index 082eecbf4148..ebc5b069dddd 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
@@ -1515,4 +1515,11 @@ struct qlcnic_nic_template {
1515 __func__, ##_args); \ 1515 __func__, ##_args); \
1516 } while (0) 1516 } while (0)
1517 1517
1518#define PCI_DEVICE_ID_QLOGIC_QLE824X 0x8020
1519static inline bool qlcnic_82xx_check(struct qlcnic_adapter *adapter)
1520{
1521 unsigned short device = adapter->pdev->device;
1522 return (device == PCI_DEVICE_ID_QLOGIC_QLE824X) ? true : false;
1523}
1524
1518#endif /* __QLCNIC_H_ */ 1525#endif /* __QLCNIC_H_ */