On Thu, Nov 13, 2008 at 02:52:19PM +0800, [EMAIL PROTECTED] wrote:
>          Recently I study libpciaccess, found pci_device_map_range
> function, when map the same physical address and the same size will
> failed. 
> 
>     If we use libpciaccess and want support two screen which share one
> pci, they are mmio base is the same physical address and the size is the
> same, when the second screeninit goto pci_device_map_range, screeninit
> will failed.

If you're doing clone mode within one driver, you shouldn't need to map
the device twice.  Map the device memory once and use the same mapping from
both screens.  I'm pretty sure that's how other drviers do it.

Just out of curiosity, what device are you working on?

>      And we can not light device.
> 
>      I want to ask two question:
> 
>          1. Does the libpciaccess support two screen share one pci ?
> 
>          2. If not support, we can do same issue in 2D driver , but I
> can see the nv and intel do nothing , it confused me a lot.
_______________________________________________
xorg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to