#ifndef _POWERPC_SYSDEV_MSI_BITMAP_H#define _POWERPC_SYSDEV_MSI_BITMAP_H/* * Copyright 2008, Michael Ellerman, IBM Corporation. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; version 2 of the * License. * */#include <linux/of.h>#include <asm/irq.h>structmsi_bitmap{structdevice_node*of_node;unsignedlong*bitmap;spinlock_tlock;unsignedintirq_count;};intmsi_bitmap_alloc_hwirqs(structmsi_bitmap*bmp,intnum);voidmsi_bitmap_free_hwirqs(structmsi_bitmap*bmp,unsignedintoffset,unsignedintnum);voidmsi_bitmap_reserve_hwirq(structmsi_bitmap*bmp,unsignedinthwirq);intmsi_bitmap_reserve_dt_hwirqs(structmsi_bitmap*bmp);intmsi_bitmap_alloc(structmsi_bitmap*bmp,unsignedintirq_count,structdevice_node*of_node);voidmsi_bitmap_free(structmsi_bitmap*bmp);#endif /* _POWERPC_SYSDEV_MSI_BITMAP_H */