NTB: add new parameter to peer_db_addr() db_bit and db_data
authorLeonid Ravich <lravich@gmail.com>
Tue, 12 Feb 2019 20:09:28 +0000 (22:09 +0200)
committerJon Mason <jdmason@kudzu.us>
Wed, 13 Feb 2019 16:03:18 +0000 (11:03 -0500)
commitebb09b33c60c46fd4f7ffa0af9e693eebe765d1b
treed41b706a6f27e5b4d9270cf3e62b6a4249037ab3
parentc59666bb32b91da84b1d3df0e88789de9e827f61
NTB: add new parameter to peer_db_addr() db_bit and db_data

NTB door bell usage depends on NTB hardware.

ex: intel NTB gen1 has one peer door bell register which can be controlled
by the bitmap writen to it, while Intel NTB gen3 has a registers
per door bell and the data trigering the each door bell is always 1.

therefore exposing only peer door bell address forcing the user
to be aware of such low level details

Signed-off-by: Leonid Ravich <Leonid.Ravich@emc.com>
Acked-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/intel/ntb_hw_gen1.c
drivers/ntb/hw/intel/ntb_hw_gen1.h
drivers/ntb/hw/intel/ntb_hw_gen3.c
drivers/ntb/hw/mscc/ntb_hw_switchtec.c
include/linux/ntb.h