1 #ifndef _POWERPC_SYSDEV_MSI_BITMAP_H
2 #define _POWERPC_SYSDEV_MSI_BITMAP_H
5 * Copyright 2008, Michael Ellerman, IBM Corporation.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; version 2 of the
18 struct device_node
*of_node
;
19 unsigned long *bitmap
;
21 unsigned int irq_count
;
22 bool bitmap_from_slab
;
25 int msi_bitmap_alloc_hwirqs(struct msi_bitmap
*bmp
, int num
);
26 void msi_bitmap_free_hwirqs(struct msi_bitmap
*bmp
, unsigned int offset
,
28 void msi_bitmap_reserve_hwirq(struct msi_bitmap
*bmp
, unsigned int hwirq
);
30 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap
*bmp
);
32 int msi_bitmap_alloc(struct msi_bitmap
*bmp
, unsigned int irq_count
,
33 struct device_node
*of_node
);
34 void msi_bitmap_free(struct msi_bitmap
*bmp
);
36 #endif /* _POWERPC_SYSDEV_MSI_BITMAP_H */