Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • L libpciaccess
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • lib
  • libpciaccess
  • Merge requests
  • !3

clean up FreeBSD pci methods and incorporate local patches

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Niclas Zeising requested to merge zeising/libpciaccess:zeising/freebsd into master Jun 15, 2019
  • Overview 3
  • Commits 9
  • Pipelines 0
  • Changes 4

This is a fairly big merge request, that cleans up the FreeBSD libpciaccess methods, and incorporates local patches we've had in our ports tree for ages, as well as add some new functionality. I have tried to separate white space changes, since our local patches had a bunch of those, and incorporating those as well made it easier to push everything. Our local patches add support for legacy I/O methods for new architectures, using ioctl()s rather than inb/outb, and tries to fix things for sparc64.

New stuff not previously in the FreeBSD ports tree: I've cleaned up so that we no longer support old versions of FreeBSD, but a the same time, this makes the code easier to read through. This includes getting rid of the autoconf check for pci_io.pi_sel.pc_domain, pc_domain has been part of this struct for a long time. I also removed the old probe methods that didn't use the PCIOCGETBAR ioctl, which has been part of FreeBSD for 10 years. I've also added a new method for has_kernel_driver, using the PCIOCATTACHED ioctl().

This is a fairly big change, and perhaps should have been broken in several merge requests, however the changes build on each other, making it hard to separate.

Edited Jun 16, 2019 by Niclas Zeising
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: zeising/freebsd