Wow.. again.. brilliant support - thanks guys.
Yes - it did work, I am now getting interrupts - I don't know if I missed something in the docs.
To anyone following this discussion here's how I enabled interrupts from the SL811HS to the NIOS-II core..
// you need this:
//----------------------------------------------------------------------------------
volatile unsigned int *pAddrSel = (unsigned int*) (USB_BASE);
// write a single byte to the controller at addr
void Write ( unsigned int addr, unsigned int value )
{
pAddrSel[0] = addr;
pAddrSel[1] = value;
}
.
.
then somewhere in your code...
.
.
// enable the interrupts to come through
IOWR_ALTERA_AVALON_PIO_DATA(USB_BASE + 8, 0x04);
// register an interrupt handler for the USB interrupts
alt_irq_register (USB_IRQ, NULL, handle_USB_interrupts);
// enable all interrupts from the controller
Write ( REG_INTERRUPT_ENABLE, 0x7f );
that's it...