Changeset 341df5f in mainline for uspace/lib/virtio/virtio-pci.h


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

Factor our generic virtio device initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/virtio/virtio-pci.h

    rcbcb34c r341df5f  
    5757#define VIRTIO_DEV_STATUS_DEVICE_NEEDS_RESET    64
    5858#define VIRTIO_DEV_STATUS_FAILED                128
     59
     60#define VIRTIO_FEATURES_0_31    0
    5961
    6062/** Common configuration structure layout according to VIRTIO version 1.0 */
     
    179181extern void virtio_virtq_teardown(virtio_dev_t *, uint16_t);
    180182
     183extern errno_t virtio_device_setup_start(virtio_dev_t *, uint32_t);
     184extern void virtio_device_setup_fail(virtio_dev_t *);
     185extern void virtio_device_setup_finalize(virtio_dev_t *);
     186
    181187extern errno_t virtio_pci_dev_initialize(ddf_dev_t *, virtio_dev_t *);
    182188extern errno_t virtio_pci_dev_cleanup(virtio_dev_t *);
Note: See TracChangeset for help on using the changeset viewer.