net: enetc: build enetc_pf_common.c as a separate module

Compile enetc_pf_common.c as a standalone module to allow shared usage
between ENETC v1 and v4 PF drivers. Add struct enetc_pf_ops to register
different hardware operation interfaces for both ENETC v1 and v4 PF
drivers.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Wei Fang 2024-10-30 17:39:17 +08:00 • committed by David S. Miller
commit 3774409fd4
6 changed files with 89 additions and 16 deletions