From: Ben Hutchings Date: Tue, 18 Sep 2012 23:56:47 +0000 (+0100) Subject: sfc: Get rid of per-NIC-type phys_addr_channels and mem_map_size X-Git-Tag: v3.12-rc1~132^2~168^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b105798fa5597f248256fa03ec25c2fbef922f92;p=pandora-kernel.git sfc: Get rid of per-NIC-type phys_addr_channels and mem_map_size EF10 functions don't have a fixed BAR size, and the minimum is not large enough for all the queues we might want to allocate. We have to find out the BAR size at run-time, and therefore phys_addr_channels and mem_map_size cannot be defined per-NIC-type. Change efx_nic_type::mem_map_size to a function pointer which is called to find the wanted memory map size (before probe). Replace efx_nic_type::phys_addr_channels with efx_nic::max_channels, to be initialised by the probe function. Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed