Re: Xfree86 and PCI domains on psarc.
- To: "David S. Miller" <email@example.com>
- Cc: Ben Collins <firstname.lastname@example.org>, email@example.com
- Subject: Re: Xfree86 and PCI domains on psarc.
- From: Anton Blanchard <firstname.lastname@example.org>
- Date: Thu, 1 Jan 2004 21:23:57 +1100
- Message-id: <20040101102357.GK28023@krispykreme>
- In-reply-to: <email@example.com>
- References: <firstname.lastname@example.org> <email@example.com> <20031231021045.GK5570@phunnypharm.org> <firstname.lastname@example.org>
> Willy showed me his pciutils sysfs hacks, that's all.
> He and I both agreed that really xfree86 should be using libpci to get
> at this kind of stuff, in the long term.
I just looked at the new X server (www.freedesktop.org). Its still using
the mmap(/dev/mem) hack and doesnt understand pci domains but the good
news is its _much_ simpler than XFree86 and we stand a good chance of
fixing it properly.
Really we need to fix libpci to understand pci domains (I just looked
into it, we really should add a domain field into /proc/bus/pci/devices).
If we also write libpci wrappers for the /proc/bus/pci ioctl code that
should solve all our problems.
Im not attached to any particular method of getting at this info
(/proc/bus/pci vs willy's sysfs stuff) but we need to have it all
abstracted by libpci or our lives will suck the next time we make an