aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/falcon.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/falcon.h')
-rw-r--r--drivers/net/sfc/falcon.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/sfc/falcon.h b/drivers/net/sfc/falcon.h
index a561f6758bc6..81196a0fb504 100644
--- a/drivers/net/sfc/falcon.h
+++ b/drivers/net/sfc/falcon.h
@@ -19,15 +19,15 @@
19 * Falcon hardware control 19 * Falcon hardware control
20 */ 20 */
21 21
22enum falcon_revision { 22enum {
23 FALCON_REV_A0 = 0, 23 EFX_REV_FALCON_A0 = 0,
24 FALCON_REV_A1 = 1, 24 EFX_REV_FALCON_A1 = 1,
25 FALCON_REV_B0 = 2, 25 EFX_REV_FALCON_B0 = 2,
26}; 26};
27 27
28static inline int falcon_rev(struct efx_nic *efx) 28static inline int efx_nic_rev(struct efx_nic *efx)
29{ 29{
30 return efx->pci_dev->revision; 30 return efx->type->revision;
31} 31}
32 32
33/** 33/**
@@ -95,8 +95,8 @@ static inline struct falcon_board *falcon_board(struct efx_nic *efx)
95 return &data->board; 95 return &data->board;
96} 96}
97 97
98extern struct efx_nic_type falcon_a_nic_type; 98extern struct efx_nic_type falcon_a1_nic_type;
99extern struct efx_nic_type falcon_b_nic_type; 99extern struct efx_nic_type falcon_b0_nic_type;
100 100
101/************************************************************************** 101/**************************************************************************
102 * 102 *