[haiku] Re: ralinkwifi driver RT2561/RT61 (irq issue)

  • From: Peter Nadas <gif@xxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Mon, 28 Feb 2011 20:53:55 +0100

> This is the code part that handles allocation:
> 
>       psc->irq_rid = 0;
>       psc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &psc->irq_rid,
>           RF_ACTIVE | RF_SHAREABLE);
>       if (psc->irq == NULL) {
>               device_printf(dev, "could not allocate interrupt resource\n");
>               return ENXIO;
>       }
> 
> ....
> The driver compiled but I don't think this would help me as I'm getting the 
> error from bus_alloc_resource_any,
> so psc->irq will be NULL.

If there's anyone with the knowledge to help me assign an irq manually with the 
ralinkwifi driver,
please give me a clue. Is there any driver development docs for Haiku?

Best regards,
Peter


Other related posts: