Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish porting libpciaccess #5122

Open
kallisti5 opened this issue Jun 17, 2020 · 1 comment
Open

Finish porting libpciaccess #5122

kallisti5 opened this issue Jun 17, 2020 · 1 comment

Comments

@kallisti5
Copy link
Member

kallisti5 commented Jun 17, 2020

libpciaccess is required for libdrm_intel which is used for the old i915 3d-accelerated mesa renderer.

For now, we build drm with libdrm_intel disabled as i965 doesn't require it.

There is a partial port of libpciaccess in-tree which is pretty much the FreeBSD source code with freebsd renamed Haiku (and some other work). It also doesn't even compile the haiku_pci.c source code.

I began work on a real/functional haiku_pci.c before realizing that i915 is the only consumer of it (and we could skip it for now)

Attached is the partial work using Haiku's Poke driver to get raw PCI bus access from userspace.

The code populates the pci_sys struct with the current PCI devices attached to the system. Not implemented is raw access to the individual devices, memory mapping, etc.

Output of scanpci showing the initial device discovery code working is attached as well.

@kallisti5
Copy link
Member Author

libpciaccess-haiku.zip

kallisti5 added a commit that referenced this issue Jun 17, 2020
* See #5122 for more
  information.
* haiku_pci.c needs written using our "poke" driver.
* Partial version at ticket above.
* Not really needed, unless we need libdrm_intel for i915
X547 pushed a commit to X547/haikuports that referenced this issue Jul 15, 2020
* See haikuports#5122 for more
  information.
* haiku_pci.c needs written using our "poke" driver.
* Partial version at ticket above.
* Not really needed, unless we need libdrm_intel for i915
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant