diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/io.h')
-rw-r--r-- | drivers/net/ethernet/sfc/io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/io.h b/drivers/net/ethernet/sfc/io.h index 96ce507d8602..4d3f119b67b3 100644 --- a/drivers/net/ethernet/sfc/io.h +++ b/drivers/net/ethernet/sfc/io.h | |||
@@ -66,6 +66,11 @@ | |||
66 | #define EFX_USE_QWORD_IO 1 | 66 | #define EFX_USE_QWORD_IO 1 |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | /* PIO is a win only if write-combining is possible */ | ||
70 | #ifdef ARCH_HAS_IOREMAP_WC | ||
71 | #define EFX_USE_PIO 1 | ||
72 | #endif | ||
73 | |||
69 | #ifdef EFX_USE_QWORD_IO | 74 | #ifdef EFX_USE_QWORD_IO |
70 | static inline void _efx_writeq(struct efx_nic *efx, __le64 value, | 75 | static inline void _efx_writeq(struct efx_nic *efx, __le64 value, |
71 | unsigned int reg) | 76 | unsigned int reg) |