1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _POWERPC_SYSDEV_MSI_BITMAP_H
3 #define _POWERPC_SYSDEV_MSI_BITMAP_H
6 * Copyright 2008, Michael Ellerman, IBM Corporation.
13 struct device_node
*of_node
;
14 unsigned long *bitmap
;
16 unsigned int irq_count
;
17 bool bitmap_from_slab
;
20 int msi_bitmap_alloc_hwirqs(struct msi_bitmap
*bmp
, int num
);
21 void msi_bitmap_free_hwirqs(struct msi_bitmap
*bmp
, unsigned int offset
,
23 void msi_bitmap_reserve_hwirq(struct msi_bitmap
*bmp
, unsigned int hwirq
);
25 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap
*bmp
);
27 int msi_bitmap_alloc(struct msi_bitmap
*bmp
, unsigned int irq_count
,
28 struct device_node
*of_node
);
29 void msi_bitmap_free(struct msi_bitmap
*bmp
);
31 #endif /* _POWERPC_SYSDEV_MSI_BITMAP_H */