Subject: Re: genfb and virtual addresses
To: Michael Lorenz <>
From: Martin Husemann <>
List: tech-kern
Date: 11/12/2007 01:25:37
On Sat, Nov 10, 2007 at 08:33:25PM -0500, Michael Lorenz wrote:
> So, the question is - am I missing some obvious way to translate a  
> physical ( or kernel virtual ) address into a bus address using just  
> what we get in pci_attach_args ?

If so, I'm missing it too.

> Or is there a nicer way to make the  
> memory range's physical address available in a generic, PCI  
> controller agnostic way?

We could add "bus base address" to the pci attach args - but I'm sure someone
will find ways to abuse it, so your suggestion (which limits exposure)
could be considered stylistically better.