]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Add functions to read memory via PCIE memory window
authorVipul Pandya <vipul@chelsio.com>
Wed, 26 Sep 2012 02:39:37 +0000 (02:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2012 21:55:50 +0000 (17:55 -0400)
commit8c8f9692402d7cc2003e1a94fa75bf90bff9bef7
tree34382fe914af703cbe1bf921c6a2ddac040f91e3
parentb393d792dd3fb19daaea6331c43c304e1bb691d7
cxgb4: Add functions to read memory via PCIE memory window

This patch implements two new functions t4_mem_win_read and t4_memory_read.
These new functions can be used to read memory via the PCIE memory window.
Please note, for proper execution of these functions PCIE_MEM_ACCESS_BASE_WIN
registers must be setup correctly like how setup_memwin in the cxgb4 driver
does it.

Signed-off-by: Jay Hernandez <jay@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4_hw.h