event/dlb2: add v2.5 HW init
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Sat, 1 May 2021 19:03:39 +0000 (14:03 -0500)
committerJerin Jacob <jerinj@marvell.com>
Mon, 3 May 2021 09:46:30 +0000 (11:46 +0200)
commit0d65f8f9e359b0407517b4e5e0d4ef5531703bee
treed4de792c29e82cae7802accd089a4bc68363e65e
parent7da19335cf326e2f515f7f27e2a2d2d26521e782
event/dlb2: add v2.5 HW init

Add support for DLB v2.5 probe-time hardware init,
and sets up a framework for incorporating the remaining
changes required to support DLB v2.5.

DLB v2.0 and DLB v2.5 are similar in many respects, but their
register offsets and definitions are different. As a result of these,
differences, the low level hardware functions must take the device
version into consideration. This requires that the hardware version be
passed to many of the low level functions, so that the PMD can
take the appropriate action based on the device version.

To ease the transition and keep the individual patches small, three
temporary files are added in this commit. These files have "new"
in their names.  The files with "new" contain changes specific to a
consolidated PMD that supports both DLB v2.0 and DLB 2.5. Their sister
files of the same name (minus "new") contain the old DLB v2.0 specific
code. The intent is to remove code from the original files as that code
is ported to the combined DLB 2.0/2.5 PMD model and added to the "new"
files in a series of commits. At end of the patch series, the old files
will be empty and the "new" files will have the logic needed
to implement a single PMD that supports both DLB v2.0 and DLB v2.5.
At that time, the original DLB v2.0 specific files will be deleted,
and the "new" files will be renamed and replace them.

Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
drivers/event/dlb2/dlb2_priv.h
drivers/event/dlb2/meson.build
drivers/event/dlb2/pf/base/dlb2_hw_types_new.h [new file with mode: 0644]
drivers/event/dlb2/pf/base/dlb2_osdep.h
drivers/event/dlb2/pf/base/dlb2_resource.c
drivers/event/dlb2/pf/base/dlb2_resource.h
drivers/event/dlb2/pf/base/dlb2_resource_new.c [new file with mode: 0644]
drivers/event/dlb2/pf/base/dlb2_resource_new.h [new file with mode: 0644]
drivers/event/dlb2/pf/dlb2_main.c
drivers/event/dlb2/pf/dlb2_main.h
drivers/event/dlb2/pf/dlb2_pf.c