mbox series

[net-next,0/8] net: ipa: determine GSI register offsets differently

Message ID 20230210193655.460225-1-elder@linaro.org
Headers show
Series net: ipa: determine GSI register offsets differently | expand

Message

Alex Elder Feb. 10, 2023, 7:36 p.m. UTC
This series changes the way GSI register offset are specified, using
the "reg" mechanism currently used for IPA registers.  A follow-on
series will extend this work so fields within GSI registers are also
specified this way.

The first patch rearranges the GSI register initialization code so
it is similar to the way it's done for the IPA registers.  The
second identifies all the GSI registers in an enumerated type.
The third introduces "gsi_reg-v3.1.c" and uses the "reg" code to
define one GSI register offset.  The second-to-last patch just
adds "gsi_reg-v3.5.1.c", because that version introduces a new
register not previously defined.  All the rest just define the
rest of the GSI register offsets using the "reg" mechanism.

Note that, to have continued lines align with an open parenthesis,
new files created in this series cause some checkpatch warnings.

					-Alex

Alex Elder (8):
  net: ipa: introduce gsi_reg_init()
  net: ipa: introduce GSI register IDs
  net: ipa: start creating GSI register definitions
  net: ipa: add more GSI register definitions
  net: ipa: define IPA v3.1 GSI event ring register offsets
  net: ipa: define IPA v3.1 GSI interrupt register offsets
  net: ipa: add "gsi_v3.5.1.c"
  net: ipa: define IPA remaining GSI register offsets

 drivers/net/ipa/Makefile             |   9 +-
 drivers/net/ipa/gsi.c                | 340 ++++++++++++++++++---------
 drivers/net/ipa/gsi.h                |   4 +-
 drivers/net/ipa/gsi_reg.c            | 168 +++++++++++++
 drivers/net/ipa/gsi_reg.h            | 258 ++++++++------------
 drivers/net/ipa/reg/gsi_reg-v3.1.c   | 201 ++++++++++++++++
 drivers/net/ipa/reg/gsi_reg-v3.5.1.c | 204 ++++++++++++++++
 7 files changed, 903 insertions(+), 281 deletions(-)
 create mode 100644 drivers/net/ipa/gsi_reg.c
 create mode 100644 drivers/net/ipa/reg/gsi_reg-v3.1.c
 create mode 100644 drivers/net/ipa/reg/gsi_reg-v3.5.1.c