]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7ad77226bc247f1492cf954ec642eba54507520
treef2378cf90434a7b25f4fe715203403657ec4b06b
parent0e3a3a4ef6f032c3dd17f4fa54bee1b2388a530c
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