Re: [PATCH] sparse_irq aka dyn_irq v13

From: H. Peter Anvin
Date: Sun Nov 16 2008 - 23:43:19 EST


Mike Travis wrote:
>
> X was changed quite a while ago to domain/bus/dev/func, which was a lot easier to
> deal with than trying to "offset" the bus with domain * some large number + bus.
> Currently max nodes is 512 so it deserves it's own field. ;-)
>
> Btw, are you suggesting combining device and function? That might be inadvertently
> squeezing something that shouldn't be.
>

devfn = (device << 3) + function

It's a standard construct inside Linux.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/