NTB: epf: Allow more flexibility in the memory BAR map method
authorFrank Li <Frank.Li@nxp.com>
Tue, 22 Feb 2022 16:23:53 +0000 (10:23 -0600)
committerJon Mason <jdmason@kudzu.us>
Tue, 9 Aug 2022 21:54:03 +0000 (17:54 -0400)
commite75d5ae8ab88b7ffb3d1d56124b003f3555f74b4
tree5fbed223605cbe304e2301ae0b3d94d33f8be389
parent4284c88fff0efc4e418abb53d78e02dc4f099d6c
NTB: epf: Allow more flexibility in the memory BAR map method

Support the below BAR configuration methods for epf NTB.

BAR 0: config and scratchpad
BAR 2: doorbell
BAR 4: memory map windows

Set difference BAR number information into struct ntb_epf_data. So difference
VID/PID can choose different BAR configurations. There are difference
BAR map method between epf NTB and epf vNTB Endpoint function.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/epf/ntb_hw_epf.c