// SPDX-License-Identifier: GPL-2.0 /* Copyright (C) 2023-2024 Linaro Ltd. */ #include <linux/io.h> #include <linux/platform_device.h> #include "gsi.h" #include "gsi_reg.h" #include "reg.h" /* Is this register ID valid for the current GSI version? */ static bool gsi_reg_id_valid(struct gsi *gsi, enum gsi_reg_id reg_id) { … } const struct reg *gsi_reg(struct gsi *gsi, enum gsi_reg_id reg_id) { … } static const struct regs *gsi_regs(struct gsi *gsi) { … } /* Sets gsi->virt and I/O maps the "gsi" memory range for registers */ int gsi_reg_init(struct gsi *gsi, struct platform_device *pdev) { … } /* Inverse of gsi_reg_init() */ void gsi_reg_exit(struct gsi *gsi) { … }