]> 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)
commitbbe99c6c89185a361560259875b878e60fe8365a
treef2378cf90434a7b25f4fe715203403657ec4b06b
parent2c795a49d30f656c1bb5561f80ebe6735e07ea47
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