Changeset cede6f8 in mainline
- Timestamp:
- 2018-05-24T17:54:02Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b085bbaa
- Parents:
- 31cf8c3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/virtio/virtio.c
r31cf8c3c rcede6f8 130 130 ddf_msg(LVL_NOTE, "notification register: %p", q->notify); 131 131 132 /* Enable the queue */ 133 pio_write_le16(&cfg->queue_enable, 1); 134 ddf_msg(LVL_NOTE, "virtq %d set", num); 135 132 136 return rc; 133 137 } … … 135 139 void virtio_virtq_teardown(virtio_dev_t *vdev, uint16_t num) 136 140 { 141 virtio_pci_common_cfg_t *cfg = vdev->common_cfg; 142 143 /* Disable the queue */ 144 pio_write_le16(&cfg->queue_enable, 0); 145 137 146 virtq_t *q = &vdev->queues[num]; 138 147 if (q->size)
Note:
See TracChangeset
for help on using the changeset viewer.