Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D drivers
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • 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
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-osredox-os
  • drivers
  • Merge requests
  • !80

Draft: Pcid scheme

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open 4lDO2 requested to merge 4lDO2/drivers:pcid-scheme into master May 26, 2022
  • Overview 0
  • Commits 10
  • Pipelines 0
  • Changes 20

This MR refactors pcid by separating it into two binaries: (1) pcid, which will enumerate the bus and then run as a traditional scheme-based driver daemon, and (2) pcid-spawner, which uses information from the pci: scheme to find matching drivers from a config file and spawn them. The pipe-based communication mechanism now uses a bidirectional pipe from the pci: scheme to replace the old pipe2-based one.

The motivation for this MR is to separate the driver logic from the subdriver spawning logic, and, a PCI scheme will probably also be useful for e.g. lspci, but mostly to have a better interface when acpid needs to be able to read from/write to PCI configuration space. In the future pcid-spawner might evolve into a more general driver manager, possibly more closely involved with init. If/when kernel!194 is merged, the scheme can also provide IRQ handles directly from the kernel within a PCI device's "directory".

Edited May 26, 2022 by 4lDO2
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: pcid-scheme