NTB: switchtec_ntb: Implement scratchpad registers
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 3 Aug 2017 18:19:52 +0000 (12:19 -0600)
committerJon Mason <jdmason@kudzu.us>
Sun, 19 Nov 2017 01:37:12 +0000 (20:37 -0500)
commitb9a4acac282eff60cba800bdbc5a3b57c33c10be
treef2378cf90434a7b25f4fe715203403657ec4b06b
parent6619bf954984e625f5ba46e810ed08054309efab
NTB: switchtec_ntb: Implement scratchpad registers

Seeing there is no dedicated hardware for this, we simply add
these as entries in the shared memory window. Thus, we could support
any number of them but 128 seems like enough, for now.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Stephen Bates <sbates@raithlin.com>
Reviewed-by: Kurt Schwemmer <kurt.schwemmer@microsemi.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/mscc/ntb_hw_switchtec.c