Changeset eda41a9e in mainline for uspace/lib/virtio/virtio.c


Ignore:
Timestamp:
2018-05-22T19:06:50Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0180c67
Parents:
2d4faf7
git-author:
Jakub Jermar <jakub@…> (2018-05-06 06:39:52)
git-committer:
Jakub Jermar <jakub@…> (2018-05-22 19:06:50)
Message:

Calculate the notification address for each virtq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/virtio/virtio.c

    r2d4faf7 reda41a9e  
    119119            num, q->virt, (void *) q->phys, q->size);
    120120
     121        /* Determine virtq's notification address */
     122        q->notify = vdev->notify_base +
     123            pio_read_16(&cfg->queue_notif_off) * vdev->notify_off_multiplier;
     124
     125        ddf_msg(LVL_NOTE, "notification register: %p", q->notify);
     126
    121127        return rc;
    122128}
     
    171177        pio_write_8(&cfg->device_status, status);
    172178
    173         /* 6. Test if the device supports our feature subset */ 
     179        /* 6. Test if the device supports our feature subset */
    174180        status = pio_read_8(&cfg->device_status);
    175181        if (!(status & VIRTIO_DEV_STATUS_FEATURES_OK))
Note: See TracChangeset for help on using the changeset viewer.