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

libmetal/nuttx/io.c: width matched access when read/write size = 1,2,4,8 #279

Merged
merged 1 commit into from
Feb 23, 2024

Commits on Feb 18, 2024

  1. libmetal/nuttx/io.c: width matched access when read/write size = 1,2,4,8

    Follow the virtio spec v1.2:
    The driver MUST only use 32 bit wide and aligned reads and writes to access
    the control registers described in table 4.1. For the device-specific
    configuration space, the driver MUST use 8 bit wide accesses for 8 bit
    wide fields, 16 bit wide and aligned accesses for 16 bit wide fields
    and 32 bit wide and aligned accesses for 32 and 64 bit wide fields.
    
    Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
    Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
    CV-Bowen committed Feb 18, 2024
    Configuration menu
    Copy the full SHA
    b73d64e View commit details
    Browse the repository at this point in the history