Mark Kettenis wrote:
> We should allways use mmio instead of io if possible. The cascading
> if statements are a bit ugly, but I can't come up with a better solution.
mapped = 0;
if (pcimap() == 0)
mapped = 1;
if (!mapped && pcimap() == 0)
mapped = 1;
if (!mapped)
printf("no mapping worked");
Not a lot prettier, but avoids neverending indentation, and perhaps clarifies
that we're basically trying the same thing with different arguments instead of
descending into some bizarre error handling rabbit hole.