more generic IRQ support

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1445 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
bellard 2005-06-05 14:50:39 +00:00
parent cc1daa40f1
commit 54fa5af546
3 changed files with 46 additions and 27 deletions

View file

@ -179,6 +179,12 @@ void pic_set_irq(int irq, int level)
pic_update_irq();
}
/* this function should be used to have the controller context */
void pic_set_irq_new(void *opaque, int irq, int level)
{
pic_set_irq(irq, level);
}
/* acknowledge interrupt 'irq' */
static inline void pic_intack(PicState *s, int irq)
{