/* To use txn_XXX() interfaces, get a Virtual IRQ first. Then use that to get the Transaction address and data.  */
int cpu_claim_irq(unsigned int irq, struct irq_chip *type, void *data)
/* To use txn_XXX() interfaces, get a Virtual IRQ first. Then use that to get the Transaction address and data.  */
int cpu_claim_irq(unsigned int irq, struct irq_chip *type, void *data)
{
	if (irq_desc[irq].action)
		return -EBUSY;
	if (irq_desc[irq].chip != &cpu_interrupt_type)
		return -EBUSY;
	if (type) {
		irq_desc[irq].chip = type;
		irq_desc[irq].chip_data = data;
		cpu_interrupt_type.enable(irq);
	}
	return 0;
}