summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/i40e/i40e.h
diff options
context:
space:
mode:
authorAnjali Singhai <anjali.singhai@intel.com>2015-02-26 16:15:39 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-03-05 07:15:28 -0800
commit232f47060ada14c4b77ce1f21eec9332b9234a87 (patch)
tree1afc622b35ea5bee43c658d2ce9cabfdabefbc17 /drivers/net/ethernet/intel/i40e/i40e.h
parent5bbc330100285e56871a64d4148b9d3a1ac0f297 (diff)
downloadlwn-232f47060ada14c4b77ce1f21eec9332b9234a87.tar.gz
lwn-232f47060ada14c4b77ce1f21eec9332b9234a87.zip
i40e: Ioremap changes
For future device support we do not want to map the whole CSR space since some of it is mapped by other drivers with different mapping methods. Note: As a side effect, the flash region (if exposed through the memory map) gets unmapped too since it follows the future use region. Change-ID: Ic729a2eacd692984220b1a415ff4fa0f98ea419a Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Jim Young <james.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e.h')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h
index c5137313b62a..ce3fbb87544e 100644
--- a/drivers/net/ethernet/intel/i40e/i40e.h
+++ b/drivers/net/ethernet/intel/i40e/i40e.h
@@ -72,6 +72,7 @@
#define I40E_MAX_NUM_DESCRIPTORS 4096
#define I40E_MAX_REGISTER 0x800000
+#define I40E_MAX_CSR_SPACE (4 * 1024 * 1024 - 64 * 1024)
#define I40E_DEFAULT_NUM_DESCRIPTORS 512
#define I40E_REQ_DESCRIPTOR_MULTIPLE 32
#define I40E_MIN_NUM_DESCRIPTORS 64