1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2022 Linaro Ltd.
9 #include <linux/types.h>
14 * ipa_filtered_valid() - Validate a filter table endpoint bitmap
16 * @filtered: Filter table endpoint bitmap to check
18 * Return: true if all regions are valid, false otherwise
20 bool ipa_filtered_valid(struct ipa *ipa, u64 filtered);
23 * ipa_table_hash_support() - Return true if hashed tables are supported
26 static inline bool ipa_table_hash_support(struct ipa *ipa)
28 return ipa->version != IPA_VERSION_4_2;
32 * ipa_table_reset() - Reset filter and route tables entries to "none"
34 * @modem: Whether to reset modem or AP entries
36 void ipa_table_reset(struct ipa *ipa, bool modem);
39 * ipa_table_hash_flush() - Synchronize hashed filter and route updates
42 int ipa_table_hash_flush(struct ipa *ipa);
45 * ipa_table_setup() - Set up filter and route tables
48 * There is no need for a matching ipa_table_teardown() function.
50 int ipa_table_setup(struct ipa *ipa);
53 * ipa_table_config() - Configure filter and route tables
56 * There is no need for a matching ipa_table_deconfig() function.
58 void ipa_table_config(struct ipa *ipa);
61 * ipa_table_init() - Do early initialization of filter and route tables
64 int ipa_table_init(struct ipa *ipa);
67 * ipa_table_exit() - Inverse of ipa_table_init()
70 void ipa_table_exit(struct ipa *ipa);
73 * ipa_table_mem_valid() - Validate sizes of table memory regions
75 * @filter: Whether to check filter or routing tables
77 bool ipa_table_mem_valid(struct ipa *ipa, bool filter);
79 #endif /* _IPA_TABLE_H_ */