net: ipa: introduce gsi_reg_init()
authorAlex Elder <elder@linaro.org>
Fri, 10 Feb 2023 19:36:48 +0000 (13:36 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2023 09:56:16 +0000 (09:56 +0000)
commit3c506add35c74acbe5a42d0a86963d11bef10d25
tree958e385464f1331b54e23ad9c03ecc18e2f8739a
parent4fab64126891d413f207dacd5762a839b3470315
net: ipa: introduce gsi_reg_init()

Create a new source file "gsi_reg.c", and in it, introduce a new
function to encapsulate initializing GSI registers, including
looking up and I/O mapping their memory.

Create gsi_reg_exit() as the inverse of the init function.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/Makefile
drivers/net/ipa/gsi.c
drivers/net/ipa/gsi_reg.c [new file with mode: 0644]
drivers/net/ipa/gsi_reg.h