summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/liquidio/octeon_device.h
diff options
context:
space:
mode:
authorFelix Manlunas2016-12-30 02:04:47 +0100
committerDavid S. Miller2016-12-30 04:26:03 +0100
commit15d3afcc051f74d04a285c08594629172a1a9131 (patch)
tree421f3786660ff2904956c38b2e78e7957598bc62 /drivers/net/ethernet/cavium/liquidio/octeon_device.h
parentnet: dsa: Implement ndo_get_phys_port_id (diff)
downloadkernel-qcow2-linux-15d3afcc051f74d04a285c08594629172a1a9131.tar.gz
kernel-qcow2-linux-15d3afcc051f74d04a285c08594629172a1a9131.tar.xz
kernel-qcow2-linux-15d3afcc051f74d04a285c08594629172a1a9131.zip
liquidio: optimize reads from Octeon PCI console
Reads from Octeon PCI console are inefficient because before each read operation, a dynamic mapping to Octeon DRAM is set up. This patch replaces the repeated setup of a dynamic mapping with a one-time setup of a static mapping. Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com> Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com> Signed-off-by: Derek Chickles <derek.chickles@cavium.com> Signed-off-by: Satanand Burla <satananda.burla@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio/octeon_device.h')
-rw-r--r--drivers/net/ethernet/cavium/liquidio/octeon_device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.h b/drivers/net/ethernet/cavium/liquidio/octeon_device.h
index 18f6836250a6..c301a3852482 100644
--- a/drivers/net/ethernet/cavium/liquidio/octeon_device.h
+++ b/drivers/net/ethernet/cavium/liquidio/octeon_device.h
@@ -477,6 +477,12 @@ struct octeon_device {
/* Console caches */
struct octeon_console console[MAX_OCTEON_MAPS];
+ /* Console named block info */
+ struct {
+ u64 dram_region_base;
+ int bar1_index;
+ } console_nb_info;
+
/* Coprocessor clock rate. */
u64 coproc_clock_rate;