]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
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)
commit5afc8b84eb7b29e4646d6e8ca7e6d7196031d6f7
tree34382fe914af703cbe1bf921c6a2ddac040f91e3
parent3eb4afbfceb44750d9afb832e6c992adec9fc571
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