Skip to content

RFC: Consolidate peripheral creation and management #93

Description

@vacantron

The current peripheral management is a bit cumbersome to extend for new devices or additional harts. Since most common device operations are init, update, mem_read, and mem_write, we could extract these functionalities to ensure a simpler and more consistent approach.

As a result, I've made some modifications to improve the integration. Please check them out here: vacantron#1

In this demonstration, the start and end addresses of the peripheral's memory ranges are hardcoded. This issue could be solved in the future by using libfdt to parse the device tree blob.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions