// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. * Copyright (C) 2019-2024 Linaro Ltd. */ #include <linux/io.h> #include <linux/platform_device.h> #include "ipa.h" #include "ipa_reg.h" /* Is this register ID valid for the current IPA version? */ static bool ipa_reg_id_valid(struct ipa *ipa, enum ipa_reg_id reg_id) { … } const struct reg *ipa_reg(struct ipa *ipa, enum ipa_reg_id reg_id) { … } static const struct regs *ipa_regs(enum ipa_version version) { … } int ipa_reg_init(struct ipa *ipa, struct platform_device *pdev) { … } void ipa_reg_exit(struct ipa *ipa) { … }