1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (C) 2023, Intel Corporation. */
9 bool dynamic; /* allocation type flag */
12 struct ice_irq_tracker {
13 struct xarray entries;
14 u16 num_entries; /* total vectors available */
15 u16 num_static; /* preallocated entries */
18 int ice_init_interrupt_scheme(struct ice_pf *pf);
19 void ice_clear_interrupt_scheme(struct ice_pf *pf);
21 struct msi_map ice_alloc_irq(struct ice_pf *pf, bool dyn_only);
22 void ice_free_irq(struct ice_pf *pf, struct msi_map map);
23 int ice_get_max_used_msix_vector(struct ice_pf *pf);